|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjpicedt.format.output.pstricks.AbstractCurveFormatter
public class 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 | |
---|---|
java.lang.String |
format()
Return a String representing this curve in the PsTricks format. |
protected java.lang.String |
formatCurve()
this is a convenience call to either formatPsCustom() or formatPsBezier() or formatPsLine(). |
protected java.lang.String |
formatPsBezier()
If the curve contains a single Bezier segment: \\psbezier... |
protected java.lang.String |
formatPsCurve()
Format for pscurve |
protected java.lang.String |
formatPsCustom()
If the curve has more than one segment, and it's not a polygon. |
protected java.lang.String |
formatPsDots()
\\psdots(x1,y1)...(xn,yn) |
protected java.lang.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 java.lang.String format()
formatPsCustom()
or formatPsDots()
depending on the value of POLYDOTS_STYLE attribute.
format
in interface Formatter
protected java.lang.String formatCurve()
protected java.lang.String formatPsBezier()
protected java.lang.String formatPsLine()
protected java.lang.String formatPsCurve()
protected java.lang.String formatPsCustom()
protected java.lang.String formatPsDots()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |