|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjpicedt.graphic.io.formatter.AbstractFormatter
jpicedt.format.output.eepic.AbstractCurveFormatter
public class AbstractCurveFormatter
Format an AbstractCurve, or any subclass of it, to the eepic format. Basically, a single \\path macro is used if the curve is a polygon, so that filling works properly. Otherwise we make use of \\qbezier, \\path and/or \\dashline macros.
| Field Summary | |
|---|---|
protected AbstractCurve |
curve
the Element this formater acts upon |
protected EepicFormatter |
factory
|
| Constructor Summary | |
|---|---|
AbstractCurveFormatter(AbstractCurve curve,
EepicFormatter factory)
|
|
| Method Summary | |
|---|---|
String |
format()
Returns a string representing this AbstractCurve using \\line and \\qbezier LaTeX macros only. |
protected String |
formatCurve(StringBuffer buf)
formats curves containing at least one non-straight segment |
protected String |
formatPolygon(StringBuffer buf)
Formats curves containing straight segments only |
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 curve
protected EepicFormatter factory
| Constructor Detail |
|---|
public AbstractCurveFormatter(AbstractCurve curve,
EepicFormatter factory)
| Method Detail |
|---|
public Element getElement()
FormatterElement sujet du formattage.
public String format()
protected String formatCurve(StringBuffer buf)
protected String formatPolygon(StringBuffer buf)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||