Class SVGPaint

    • Constructor Detail

      • SVGPaint

        public SVGPaint​(SVGGeneratorContext generatorContext)
        Parameters:
        generatorContext - the context.
    • Method Detail

      • getDefinitionSet

        public java.util.List getDefinitionSet()
        Specified by:
        getDefinitionSet in interface SVGConverter
        Returns:
        Set of Elements defining the Paints this converter has processed since it was created
      • getTexturePaintConverter

        public SVGTexturePaint getTexturePaintConverter()
      • getCustomPaintConverter

        public SVGCustomPaint getCustomPaintConverter()
      • getColorConverter

        public SVGColor getColorConverter()
      • toSVG

        public SVGDescriptor toSVG​(GraphicContext gc)
        Converts part or all of the input GraphicContext into a set of attribute/value pairs and related definitions
        Specified by:
        toSVG in interface SVGConverter
        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:
        SVGDescriptor
      • toSVG

        public SVGPaintDescriptor toSVG​(java.awt.Paint paint)
        Parameters:
        paint - Paint to be converted to SVG
        Returns:
        a descriptor of the corresponding SVG paint