Class SvgGraphics

java.lang.Object
net.sourceforge.plantuml.klimt.drawing.svg.SvgGraphics

public class SvgGraphics extends Object
  • Field Details

  • Constructor Details

    • SvgGraphics

      public SvgGraphics(long seed, SvgOption option)
  • 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

      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(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)
    • getMetadataHex

      public static String getMetadataHex(String comment)
    • addCommentMetadata

      public void addCommentMetadata(String metadata)
    • addComment

      public void addComment(String comment)
    • addScriptTag

      public void addScriptTag(String url)
    • addScript

      public void addScript(String scriptTextPath)
    • addStyle

      public void addStyle(String cssStylePath)
    • openLink

      public void openLink(String url, String title, String target)
    • closeLink

      public void closeLink()
    • startGroup

      public void startGroup(Map<UGroupType,String> typeIdents)
    • closeGroup

      public void closeGroup()