Package net.sourceforge.plantuml.tikz
Class TikzGraphics
- java.lang.Object
-
- net.sourceforge.plantuml.tikz.TikzGraphics
-
public class TikzGraphics extends Object
-
-
Constructor Summary
Constructors Constructor Description TikzGraphics(double scale, boolean withPreamble, ColorMapper mapper)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendRaw(double x, double y, String formula)
void
arc(double x, double y, int angleStart, int angleEnd, double radius)
void
closeLink()
void
createData(OutputStream os)
void
drawPathIterator(double x, double y, PathIterator path)
void
drawSingleCharacter(double x, double y, char c)
void
ellipse(double x, double y, double width, double height)
static String
format(double x)
void
line(double x1, double y1, double x2, double y2)
void
openLink(String url, String title)
void
polygon(double[] points)
void
rectangle(double x, double y, double width, double height)
void
rectangleRound(double x, double y, double width, double height, double r)
void
setFillColor(HColor c)
void
setGradientColor(HColor c1, HColor c2, char policy)
void
setStrokeColor(HColor c)
void
setStrokeWidth(double thickness, String dash)
void
text(double x, double y, String text, boolean underline, boolean italic, boolean bold)
void
upath(double x, double y, UPath path)
-
-
-
Constructor Detail
-
TikzGraphics
public TikzGraphics(double scale, boolean withPreamble, ColorMapper mapper)
-
-
Method Detail
-
createData
public void createData(OutputStream os) throws IOException
- Throws:
IOException
-
rectangle
public void rectangle(double x, double y, double width, double height)
-
format
public static String format(double x)
-
text
public void text(double x, double y, String text, boolean underline, boolean italic, boolean bold)
-
appendRaw
public void appendRaw(double x, double y, String formula)
-
line
public void line(double x1, double y1, double x2, double y2)
-
polygon
public void polygon(double[] points)
-
rectangleRound
public void rectangleRound(double x, double y, double width, double height, double r)
-
upath
public void upath(double x, double y, UPath path)
-
ellipse
public void ellipse(double x, double y, double width, double height)
-
arc
public void arc(double x, double y, int angleStart, int angleEnd, double radius)
-
drawSingleCharacter
public void drawSingleCharacter(double x, double y, char c)
-
drawPathIterator
public void drawPathIterator(double x, double y, PathIterator path)
-
setFillColor
public void setFillColor(HColor c)
-
setStrokeColor
public void setStrokeColor(HColor c)
-
setStrokeWidth
public void setStrokeWidth(double thickness, String dash)
-
closeLink
public void closeLink()
-
-