|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjpicedt.format.output.latex.LatexFormatter
LaTeX formater
| Nested Class Summary | |
class |
LatexFormatter.DrawingFormatter
|
| Field Summary | |
protected static String |
fileWrapperEpilog
|
protected static String |
fileWrapperProlog
|
| Fields inherited from interface jpicedt.graphic.io.formatter.FormatterFactory |
MAKE_STANDALONE_FILE |
| Constructor Summary | |
LatexFormatter()
Constructor using default properties values |
|
| Method Summary | |
void |
appendThicknessString(StringBuffer buf,
Element obj)
Create a string representation of the thickness command for the given PicObjet in the LaTeX format, and append it to the given StringBuffer. |
StringBuffer |
arrowToLatexString(PicPoint loc,
PicPoint dir)
Create a string representation of an arrow in the LaTeX format using \\vector's. |
static void |
configure(Properties preferences)
Configure static fields using the given Properties object |
Formatter |
createFormatter(Drawing d,
Object outputConstraint)
|
Formatter |
createFormatter(Element e)
|
Point |
getXYNearestSlope(double slope,
boolean isVector)
|
String |
lineToLatexString(double x0,
double y0,
double x1,
double y1,
Arrow leftArrow,
Arrow rightArrow,
double dash)
Computes a LaTeX string for a line segment, given its two end-points and decoration parameters. |
String |
lineToLatexString(PicPoint pt0,
PicPoint pt1,
Arrow leftArrow,
Arrow rightArrow,
double dash)
Computes a LaTeX string for a line segment, given its two end-points and decoration parameters. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static String fileWrapperProlog
protected static String fileWrapperEpilog
| Constructor Detail |
public LatexFormatter()
| Method Detail |
public static void configure(Properties preferences)
public Formatter createFormatter(Element e)
createFormatter in interface FormatterFactory
public Formatter createFormatter(Drawing d,
Object outputConstraint)
createFormatter in interface FormatterFactoryoutputConstraint - constraint used by the factory to create a specific Formatter on-the-fly
createFormatter(Element e) on the elements
of the drawing, plus creating auxiliary
public void appendThicknessString(StringBuffer buf,
Element obj)
Create a string representation of the thickness command for the given PicObjet in the LaTeX format, and append it to the given StringBuffer.
Such a command should preceed every object command. This string is CR-terminated.
public String lineToLatexString(PicPoint pt0,
PicPoint pt1,
Arrow leftArrow,
Arrow rightArrow,
double dash)
pt0 - the start point of the line segmentpt1 - the end point of the line segmentleftArrow - first arrow (we make no distinction b/w Arrow types, that is, we simply draw an arrow by using \\vector)rightArrow - second arrowdash - The dash step in mm ; must be .le. 0 if there's no dash
public String lineToLatexString(double x0,
double y0,
double x1,
double y1,
Arrow leftArrow,
Arrow rightArrow,
double dash)
x0 - The X coordinate (in mm) of the start point of the line segmenty0 - The Y coordinate (in mm) of the start point of the line segmentx1 - The X coordinate (in mm) of the end point of the line segmenty1 - The Y coordinate (in mm) of the end point of the line segmentleftArrow - first arrow (we make no distinction b/w Arrow types, that is, we simply draw an arrow by using \\vector)rightArrow - second arrowdash - The dash step in mm ; must be .le. 0 if there's no dash
public StringBuffer arrowToLatexString(PicPoint loc,
PicPoint dir)
loc - the location of the arrow, in mm (i.e. in the LaTeX coordinate system)dir - a vector that indicates the direction of the slope
public Point getXYNearestSlope(double slope,
boolean isVector)
slope - the slope to be matched by y/x (can be either positive or negative, or Double.POSITIVE_INFINITY)isVector - if true, x and y range from 1 to 4 ; from 1 to 6 otherwise
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||