Class SVGClip

All Implemented Interfaces:
XMLConstants, ErrorConstants, SVGConverter, SVGSyntax, CSSConstants, SVGConstants

public class SVGClip extends AbstractSVGConverter
Utility class that converts a Path object into an SVG clip
  • Field Details

    • ORIGIN

      public static final Shape ORIGIN
      Constant used for some degenerate cases
    • NO_CLIP

      public static final SVGClipDescriptor NO_CLIP
      Descriptor to use where there is no clip on an element
  • Constructor Details

    • SVGClip

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

    • toSVG

      public SVGDescriptor toSVG(GraphicContext gc)
      Converts part or all of the input GraphicContext into a set of attribute/value pairs and related definitions.
      Parameters:
      gc - GraphicContext to be converted
      Returns:
      descriptor of the attributes required to represent some or all of the GraphicContext state, along with the related definitions
      See Also: