org.apache.batik.util.awt.svg
Class SwingSVGPrettyPrint

java.lang.Object
  |
  +--org.apache.batik.util.awt.svg.SwingSVGPrettyPrint

public abstract class SwingSVGPrettyPrint
extends java.lang.Object

This class offers a way to create an SVG document with grouping that reflects the Swing composite structure (container/components).


Constructor Summary
SwingSVGPrettyPrint()
           
 
Method Summary
static void print(javax.swing.JComponent cmp, SVGGraphics2D svgGen)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Returns:
an SVG fragment containing an SVG equivalent of the Swing component tree.


Copyright © 2000 Apache Software Foundation. All Rights Reserved.