Package net.sourceforge.plantuml.svg
Class SvgGraphics
- java.lang.Object
-
- net.sourceforge.plantuml.svg.SvgGraphics
-
public class SvgGraphics extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
MD5_HEADER
-
Constructor Summary
Constructors Constructor Description SvgGraphics(String backcolor, boolean svgDimensionStyle, Dimension2D minDim, double scale, String hover, long seed, String preserveAspectRatio, LengthAdjust lengthAdjust)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addComment(String comment)
void
closeGroup()
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)
void
drawPathIterator(double x, double y, PathIterator path)
protected void
ensureVisible(double x, double y)
void
fill(int windingRule)
Element
getG()
static String
getMD5Hex(String comment)
void
lineto(double x, double y)
void
moveto(double x, double y)
void
newpath()
void
openLink(String url, String title, String target)
void
paintBackcolorGradient(ColorMapper mapper, HColorGradient gr)
void
quadto(double x1, double y1, double x2, double y2)
void
setFillColor(String fill)
void
setFillColor(String fill, String fillDark)
void
setHidden(boolean hidden)
void
setStrokeColor(String stroke)
void
setStrokeColor(String stroke, String strokeDark)
void
setStrokeWidth(double strokeWidth, String strokeDasharray)
void
startGroup(UGroupType type, String ident)
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
svgImage(UImageSvg 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, String id, String codeLine)
void
text(String text, double x, double y, String fontFamily, int fontSize, String fontWeight, String fontStyle, String textDecoration, double textLength, Map<String,String> attributes, String textBackColor)
-
-
-
Field Detail
-
MD5_HEADER
public static final String MD5_HEADER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SvgGraphics
public SvgGraphics(String backcolor, boolean svgDimensionStyle, Dimension2D minDim, double scale, String hover, long seed, String preserveAspectRatio, LengthAdjust lengthAdjust)
-
-
Method Detail
-
ensureVisible
protected final void ensureVisible(double x, double y)
-
paintBackcolorGradient
public void paintBackcolorGradient(ColorMapper mapper, HColorGradient 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)
-
setFillColor
public final void setFillColor(String fill)
-
setStrokeColor
public final void setStrokeColor(String stroke)
-
setStrokeWidth
public final void setStrokeWidth(double strokeWidth, String strokeDasharray)
-
getG
public final Element getG()
-
svgRectangle
public void svgRectangle(double x, double y, double width, double height, double rx, double ry, double deltaShadow, String id, String codeLine)
-
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, String textBackColor)
-
createXml
public void createXml(OutputStream os) throws TransformerException, IOException
- Throws:
TransformerException
IOException
-
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)
-
drawPathIterator
public void drawPathIterator(double x, double y, PathIterator path)
-
svgImage
public void svgImage(BufferedImage image, double x, double y) throws IOException
- Throws:
IOException
-
svgImage
public void svgImage(UImageSvg image, double x, double y)
-
setHidden
public void setHidden(boolean hidden)
-
addComment
public void addComment(String comment)
-
closeLink
public void closeLink()
-
startGroup
public void startGroup(UGroupType type, String ident)
-
closeGroup
public void closeGroup()
-
-