org.apache.batik.bridge

Interface DocumentBridge

public interface DocumentBridge extends Bridge

Interface for bridge classes that operate on Document nodes.
Method Summary
voidbuildGraphicsNode(BridgeContext ctx, Document doc, RootGraphicsNode node)
Builds using the specified BridgeContext and element, the specified graphics node.
RootGraphicsNodecreateGraphicsNode(BridgeContext ctx, Document doc)
Creates a GraphicsNode according to the specified parameters.

Method Detail

buildGraphicsNode

public void buildGraphicsNode(BridgeContext ctx, Document doc, RootGraphicsNode node)
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 use doc the document node that describes the graphics node to build node the graphics node to build

createGraphicsNode

public RootGraphicsNode createGraphicsNode(BridgeContext ctx, Document doc)
Creates a GraphicsNode 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 use doc the document node that describes the graphics node to build

Returns: a graphics node that represents the specified document node

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.