org.apache.batik.bridge
public class SVGDocumentBridge extends Object implements DocumentBridge, BridgeUpdateHandler, SVGContext
Field Summary | |
---|---|
protected BridgeContext | ctx
The bridge context. |
protected Document | document
The document node this bridge is associated with. |
protected RootGraphicsNode | node
The graphics node constructed by this bridge. |
Constructor Summary | |
---|---|
SVGDocumentBridge()
Constructs a new bridge the SVG document. |
Method Summary | |
---|---|
void | buildGraphicsNode(BridgeContext ctx, Document doc, RootGraphicsNode node)
Builds using the specified BridgeContext and element, the
specified graphics node. |
RootGraphicsNode | createGraphicsNode(BridgeContext ctx, Document doc)
Creates a GraphicsNode according to the specified parameters.
|
void | dispose()
Disposes this BridgeUpdateHandler and releases all resources. |
Rectangle2D | getBBox() |
AffineTransform | getCTM() |
float | getFontSize() |
AffineTransform | getGlobalTransform() |
Bridge | getInstance()
Returns a new instance of this bridge. |
String | getLocalName()
Returns the local name of the element this Bridge is dedicated
to. |
String | getNamespaceURI()
Returns the namespace URI of the element this Bridge is
dedicated to. |
float | getPixelToMM()
Returns the size of a px CSS unit in millimeters.
|
float | getPixelUnitToMillimeter()
Returns the size of a px CSS unit in millimeters. |
AffineTransform | getScreenTransform() |
float | getViewportHeight() |
float | getViewportWidth() |
void | handleAnimatedAttributeChanged(AnimatedLiveAttributeValue alav)
Invoked when the animated value of an animated attribute has changed. |
void | handleCSSEngineEvent(CSSEngineEvent evt)
Invoked when an CSSEngineEvent is fired. |
void | handleDOMAttrModifiedEvent(MutationEvent evt)
Invoked when an MutationEvent of type 'DOMAttrModified' is fired. |
void | handleDOMCharacterDataModified(MutationEvent evt)
Invoked when an MutationEvent of type 'DOMCharacterDataModified'
is fired. |
void | handleDOMNodeInsertedEvent(MutationEvent evt)
Invoked when an MutationEvent of type 'DOMNodeInserted' is fired. |
void | handleDOMNodeRemovedEvent(MutationEvent evt)
Invoked when an MutationEvent of type 'DOMNodeRemoved' is fired. |
void | handleOtherAnimationChanged(String type)
Invoked when an 'other' animation value has changed. |
void | setScreenTransform(AffineTransform at) |
Parameters: ctx the bridge context to use doc the document node that describes the graphics node to build node the graphics node to build
Parameters: ctx the bridge context to use doc the document node that describes the graphics node to build
Returns: a graphics node that represents the specified document node
null
, as a Document node has no local name.null
, as a Document node has no
namespace URI.See Also: getPixelUnitToMillimeter