net.sourceforge.plantuml.svg
Class SvgGraphics
java.lang.Object
net.sourceforge.plantuml.svg.SvgGraphics
public class SvgGraphics
- extends Object
Method Summary |
void |
closeLink()
|
void |
closepath()
|
String |
createSvgGradient(String color1,
String color2,
char policy)
|
void |
createXml(OutputStream os)
|
void |
curveto(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
|
protected void |
ensureVisible(double x,
double y)
|
void |
fill(int windingRule)
|
Element |
getDefs()
|
Element |
getG()
|
void |
lineto(double x,
double y)
|
void |
moveto(double x,
double y)
|
void |
newpath()
|
void |
openLink(String url,
String title)
|
void |
paintBackcolorGradient(ColorMapper mapper,
HtmlColorGradient gr)
|
void |
quadto(double x1,
double y1,
double x2,
double y2)
|
void |
setFillColor(String fill)
|
void |
setHidden(boolean hidden)
|
void |
setStrokeColor(String stroke)
|
void |
setStrokeWidth(String strokeWidth,
String strokeDasharray)
|
void |
svgArcEllipse(double rx,
double ry,
double x1,
double y1,
double x2,
double y2)
|
void |
svgEllipse(double x,
double y,
double xRadius,
double yRadius,
double deltaShadow)
|
void |
svgImage(BufferedImage image,
double x,
double y)
|
void |
svgLine(double x1,
double y1,
double x2,
double y2,
double deltaShadow)
|
void |
svgPath(double x,
double y,
UPath path,
double deltaShadow)
|
void |
svgPolygon(double deltaShadow,
double... points)
|
void |
svgRectangle(double x,
double y,
double width,
double height,
double rx,
double ry,
double deltaShadow)
|
void |
text(String text,
double x,
double y,
String fontFamily,
int fontSize,
String fontWeight,
String fontStyle,
String textDecoration,
double textLength,
Map<String,String> attributes)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SvgGraphics
public SvgGraphics()
SvgGraphics
public SvgGraphics(String backcolor)
ensureVisible
protected final void ensureVisible(double x,
double y)
paintBackcolorGradient
public void paintBackcolorGradient(ColorMapper mapper,
HtmlColorGradient gr)
svgEllipse
public void svgEllipse(double x,
double y,
double xRadius,
double yRadius,
double deltaShadow)
svgArcEllipse
public void svgArcEllipse(double rx,
double ry,
double x1,
double y1,
double x2,
double y2)
createSvgGradient
public String createSvgGradient(String color1,
String color2,
char policy)
setFillColor
public final void setFillColor(String fill)
setStrokeColor
public final void setStrokeColor(String stroke)
setStrokeWidth
public final void setStrokeWidth(String strokeWidth,
String strokeDasharray)
closeLink
public void closeLink()
openLink
public void openLink(String url,
String title)
getG
public final Element getG()
svgRectangle
public void svgRectangle(double x,
double y,
double width,
double height,
double rx,
double ry,
double deltaShadow)
svgLine
public void svgLine(double x1,
double y1,
double x2,
double y2,
double deltaShadow)
svgPolygon
public void svgPolygon(double deltaShadow,
double... points)
text
public void text(String text,
double x,
double y,
String fontFamily,
int fontSize,
String fontWeight,
String fontStyle,
String textDecoration,
double textLength,
Map<String,String> attributes)
getDefs
public final Element getDefs()
createXml
public void createXml(OutputStream os)
throws TransformerException
- Throws:
TransformerException
svgPath
public void svgPath(double x,
double y,
UPath path,
double deltaShadow)
newpath
public void newpath()
moveto
public void moveto(double x,
double y)
lineto
public void lineto(double x,
double y)
closepath
public void closepath()
curveto
public void curveto(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
quadto
public void quadto(double x1,
double y1,
double x2,
double y2)
fill
public void fill(int windingRule)
svgImage
public void svgImage(BufferedImage image,
double x,
double y)
throws IOException
- Throws:
IOException
setHidden
public void setHidden(boolean hidden)
Copyright © 2013. All Rights Reserved.