|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjpicedt.format.output.pstricks.AbstractCurveFormatter
Format an AbstractCurve, or any subclass of it, using PsTricks macros.
These are "rendered" to PsTricks using a \\pscustom
command that lumps
several Bezier curves together in a single Pstricks object.
Field Summary | |
protected AbstractCurve |
curve
the Element this formatter acts upon |
protected PstricksFormatter |
factory
the producing factory |
Fields inherited from interface jpicedt.format.output.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, RESCALING_TEX_FUNCTION |
Constructor Summary | |
AbstractCurveFormatter(AbstractCurve curve,
PstricksFormatter factory)
|
Method Summary | |
String |
format()
Return a String representing this curve in the PsTricks format. |
protected String |
formatCurve()
this is a convenience call to either formatPsCustom() or formatPsBezier() or formatPsLine(). |
protected String |
formatPsBezier()
If the curve contains a single Bezier segment: \\psbezier... |
protected String |
formatPsCurve()
Format for pscurve |
protected String |
formatPsCustom()
If the curve has more than one segment, and it's not a polygon. |
protected String |
formatPsDots()
\\psdots(x1,y1)...(xn,yn) |
protected String |
formatPsLine()
Polygon: \\psline... |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected AbstractCurve curve
protected PstricksFormatter factory
Constructor Detail |
public AbstractCurveFormatter(AbstractCurve curve, PstricksFormatter factory)
Method Detail |
public String format()
formatPsCustom()
or formatPsDots()
depending on the value of POLYDOTS_STYLE attribute.
format
in interface Formatter
protected String formatCurve()
protected String formatPsBezier()
protected String formatPsLine()
protected String formatPsCurve()
protected String formatPsCustom()
protected String formatPsDots()
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |