Class SvgGraphics
java.lang.Object
net.sourceforge.plantuml.klimt.drawing.svg.SvgGraphics
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addComment
(String comment) void
addCommentMetadata
(String metadata) void
Closes the current SVG group element.void
Closes the currently active link and updates the pending elements accordingly.void
createSvgGradient
(String color1, String color2, char policy) void
void
curveto
(double x1, double y1, double x2, double y2, double x3, double y3) void
drawPathIterator
(double x, double y, PathIterator path) protected final void
ensureVisible
(double x, double y) void
fill
(int windingRule) final Element
getG()
static String
getMetadataHex
(String comment) void
lineto
(double x, double y) void
moveto
(double x, double y) void
newpath()
void
Opens a new link and adds it to the list of active links.void
quadto
(double x1, double y1, double x2, double y2) final void
setFillColor
(String fill) final void
setFillColor
(String fill, HColor.TransparentFillBehavior transparentFillBehaviour) void
setHidden
(boolean hidden) final void
setStrokeColor
(String stroke) final void
setStrokeWidth
(double strokeWidth, String strokeDasharray) void
startGroup
(Map<UGroupType, String> typeIdents) 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
void
svgLine
(double x1, double y1, double x2, double y2, double deltaShadow) void
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, String textBackColor)
-
Field Details
-
META_HEADER
- See Also:
-
-
Constructor Details
-
SvgGraphics
-
-
Method Details
-
ensureVisible
protected final void ensureVisible(double x, double y) -
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
-
setFillColor
-
setFillColor
public final void setFillColor(String fill, HColor.TransparentFillBehavior transparentFillBehaviour) -
setStrokeColor
-
setStrokeWidth
-
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
-
createXml
- Throws:
TransformerException
IOException
-
svgPath
-
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
-
svgImage
- Throws:
IOException
-
svgImage
-
setHidden
public void setHidden(boolean hidden) -
getMetadataHex
-
addCommentMetadata
-
addComment
-
openLink
Opens a new link and adds it to the list of active links. -
closeLink
public void closeLink()Closes the currently active link and updates the pending elements accordingly. -
closeGroup
public void closeGroup()Closes the current SVG group element. -
startGroup
-