java.lang.Object
jpicedt.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 :
- stuff can be any of the following :
\\psframebox[param]{text}}
\\pscirclebox[param]{text}}
\\psovalbox[param]{text}}
- refpoint = B|b|t for vertical and l|r for horizontal (B = baseline)
- rotation = any angle in degree or U,L,D,R,N,W,S or E.
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 $
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 |
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 |
obj
private jpicedt.graphic.model.PicText obj
- the Element this formatter acts upon
factory
private PstricksFormatter factory
PicTextFormatter
public PicTextFormatter(jpicedt.graphic.model.PicText obj,
PstricksFormatter factory)
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