Class SwingSVGPrettyPrint

  • All Implemented Interfaces:
    XMLConstants, SVGSyntax, CSSConstants, SVGConstants

    public abstract class SwingSVGPrettyPrint
    extends java.lang.Object
    implements SVGSyntax
    This class offers a way to create an SVG document with grouping that reflects the Swing composite structure (container/components).
    • Constructor Detail

      • SwingSVGPrettyPrint

        public SwingSVGPrettyPrint()
    • Method Detail

      • print

        public static void print​(javax.swing.JComponent cmp,
                                 SVGGraphics2D svgGen)
        Parameters:
        cmp - Swing component to be converted to SVG
        svgGen - SVGraphics2D to use to paint Swing components