Class SVGPolygon

All Implemented Interfaces:
XMLConstants, SVGSyntax, CSSConstants, SVGConstants

public class SVGPolygon extends SVGGraphicObjectConverter
Utility class that converts a Polygon object into an SVG element.
  • Constructor Details

    • SVGPolygon

      public SVGPolygon(SVGGeneratorContext generatorContext)
      Parameters:
      generatorContext - used to build Elements
  • Method Details

    • toSVG

      public Element toSVG(Polygon polygon)
      Parameters:
      polygon - polygon object to convert to SVG