Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jpicedt.format.pstricks
Class PicTextFormatter  view PicTextFormatter download PicTextFormatter.java

java.lang.Object
  extended byjpicedt.format.pstricks.PicTextFormatter
All Implemented Interfaces:
jpicedt.graphic.io.formatter.Formatter, jpicedt.graphic.model.PicObjectConstants, PstricksConstants

public class PicTextFormatter
extends java.lang.Object
implements jpicedt.graphic.io.formatter.Formatter, jpicedt.graphic.model.PicObjectConstants, PstricksConstants

A formatter for PicText objects in the PsTricks format :
\\rput[refpoint]{rotation}(x,y){stuff}
where :

The following are built from "frame", "oval" or "circle", but are allegedly more efficient :
\\psdblframebox[param]{stuff} % same as psframebox with doubleline=true
\\psshadowbox[param]{stuff} % same as psframebox with shadow=true
\\cput[shadow=true](x,y){a cput with a shadow} % same as pscirclebox, yet more efficient
We don't use them so far.

Version:
$Id: PicTextFormatter.java,v 1.3 2002/08/05 16:44:10 reynal Exp $

Field Summary
private  PstricksFormatter factory
           
private  jpicedt.graphic.model.PicText obj
          the Element this formatter acts upon
 
Fields inherited from interface jpicedt.graphic.model.PicObjectConstants
CROSSHATCH, CROSSHATCH_FILLED, DASH_OPAQUE, DASH_TRANSPARENT, DASH1, DASH2, DASH3, DASHED, DIMEN, DOT_SEP, DOT_SEP1, DOT_SEP2, DOT_SEP3, DOTTED, DOUBLE_COLOR, DOUBLE_LINE, DOUBLE_SEP, FILL_COLOR, FILL_STYLE, HATCH_ANGLE, HATCH_COLOR, HATCH_SEP, HATCH_WIDTH, HLINES, HLINES_FILLED, INNER, LEFT_ARROW, LINE_COLOR, LINE_STYLE, LINE_WIDTH, MaxAttributeNameIndex, MIDDLE, NONE, OUTER, POLYGON_DOTS, POLYGON_SOLID, POLYGON_STYLE, PS_POINT, RIGHT_ARROW, SHADOW, SHADOW_ANGLE, SHADOW_COLOR, SHADOW_SIZE, SOLID, VLINES, VLINES_FILLED
 
Fields inherited from interface jpicedt.format.pstricks.PstricksConstants
CR_LF, DEFAULT_FILE_WRAPPER_EPILOG, DEFAULT_FILE_WRAPPER_PROLOG, KEY_FILE_WRAPPER_EPILOG, KEY_FILE_WRAPPER_PROLOG, PST_ARROWS, PST_ARROWS_LEFT, PST_ARROWS_RIGHT, PST_COLORNAMES, PST_COLORS
 
Constructor Summary
PicTextFormatter(jpicedt.graphic.model.PicText obj, PstricksFormatter factory)
           
 
Method Summary
 java.lang.String format()
          Create a String representing an Element in the format of this formatter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

obj

private jpicedt.graphic.model.PicText obj
the Element this formatter acts upon


factory

private PstricksFormatter factory
Constructor Detail

PicTextFormatter

public PicTextFormatter(jpicedt.graphic.model.PicText obj,
                        PstricksFormatter factory)
Method Detail

format

public java.lang.String format()
Description copied from interface: jpicedt.graphic.io.formatter.Formatter
Create a String representing an Element in the format of this formatter

Specified by:
format in interface jpicedt.graphic.io.formatter.Formatter