Package org.apache.batik.bridge
Interface DocumentBridge
- All Superinterfaces:
Bridge
- All Known Implementing Classes:
SVGDocumentBridge
Interface for bridge classes that operate on Document nodes.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buildGraphicsNode
(BridgeContext ctx, Document doc, RootGraphicsNode node) Builds using the specified BridgeContext and element, the specified graphics node.createGraphicsNode
(BridgeContext ctx, Document doc) Creates aGraphicsNode
according to the specified parameters.Methods inherited from interface org.apache.batik.bridge.Bridge
getInstance, getLocalName, getNamespaceURI
-
Method Details
-
createGraphicsNode
Creates aGraphicsNode
according to the specified parameters. This is called before children have been added to the returned GraphicsNode (obviously since you construct and return it).- Parameters:
ctx
- the bridge context to usedoc
- the document node that describes the graphics node to build- Returns:
- a graphics node that represents the specified document node
-
buildGraphicsNode
Builds using the specified BridgeContext and element, the specified graphics node. This is called after all the children of the node have been constructed and added, so it is safe to do work that depends on being able to see your children nodes in this method.- Parameters:
ctx
- the bridge context to usedoc
- the document node that describes the graphics node to buildnode
- the graphics node to build
-