SUMMARY:
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
org.apache.batik.swing.gvt.AbstractJGVTComponent
org.apache.batik.swing.gvt.JGVTComponent
org.apache.batik.swing.svg.AbstractJSVGComponent
org.apache.batik.swing.svg.JSVGComponent
org.apache.batik.swing.JSVGCanvas
- All Implemented Interfaces:
- java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
- Direct Known Subclasses:
- JSVGViewerFrame.Canvas
public class JSVGCanvas
- extends JSVGComponent
This class represents a general-purpose swing SVG component. The
JSVGCanvas does not provided additional functionalities compared to
the JSVGComponent but simply provides an API conformed to the
JavaBean specification. The only major change between the
JSVGComponent and this component is that interactors and text
selection are activated by default.
- See Also:
- Serialized Form
JSVGCanvas
public JSVGCanvas()
- Creates a new JSVGCanvas.
JSVGCanvas
public JSVGCanvas(SVGUserAgent ua,
boolean eventsEnabled,
boolean selectableText)
- Creates a new JSVGCanvas.
- Parameters:
ua
- a SVGUserAgent instance or null.eventsEnabled
- Whether the GVT tree should be reactive to mouse
and key events.selectableText
- Whether the text should be selectable.