|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jpicedt.graphic.io.formatter.AbstractFormatter jpicedt.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 |
element
the Element this formatter acts upon |
protected PstricksFormatter |
factory
the producing factory |
Constructor Summary | |
---|---|
AbstractCurveFormatter(AbstractCurve element,
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 author: Vincent |
protected String |
formatPsCustom()
If the curve has more than one segment, and it's not a polygon. |
protected String |
formatPsDots()
\\psdots(x1,y1)... |
protected String |
formatPsLine()
Polygon: \\psline... |
Element |
getElement()
Renvoie l' Element sujet du formattage. |
Methods inherited from class jpicedt.graphic.io.formatter.AbstractFormatter |
---|
revertedArrowsAttribute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AbstractCurve element
protected PstricksFormatter factory
Constructor Detail |
---|
public AbstractCurveFormatter(AbstractCurve element, PstricksFormatter factory)
Method Detail |
---|
public Element getElement()
Formatter
Element
sujet du formattage.
public String format()
formatPsCustom()
or formatPsDots()
depending on the value of POLYDOTS_STYLE attribute.
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 |