Class SVGArc

All Implemented Interfaces:
XMLConstants, SVGSyntax, CSSConstants, SVGConstants

public class SVGArc extends SVGGraphicObjectConverter
Utility class that converts an Arc2D object into a corresponding SVG element, i.e., a path with an elliptical arc and optionally lines..
Version:
$Id: SVGArc.java 1733416 2016-03-03 07:07:13Z gadams $
  • Field Details

    • svgLine

      private SVGLine svgLine
      Line converter used for degenerate cases
    • svgEllipse

      private SVGEllipse svgEllipse
      Ellipse converter for 360 degree arcs.
  • Constructor Details

    • SVGArc

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

    • toSVG

      public Element toSVG(Arc2D arc)
      Parameters:
      arc - the Arc2D object to be converted