org.apache.batik.bridge.svg12

Class XBLContentElementBridge

public class XBLContentElementBridge extends AbstractGraphicsNodeBridge

Bridge class for the <xbl:content> element.
Nested Class Summary
protected classXBLContentElementBridge.ContentChangedListener
Class to respond to content selection changes and cause GVT rebuilds.
Field Summary
protected XBLContentElementBridge.ContentChangedListenercontentChangedListener
The event listener for content element selection changes.
protected ContentManagercontentManager
The ContentManager object used for the content element selection change events.
Constructor Summary
XBLContentElementBridge()
Constructs a new bridge for the <xbl:content> element.
Method Summary
CompositeGraphicsNodebuildCompositeGraphicsNode(BridgeContext ctx, Element e, CompositeGraphicsNode cgn)
Creates a GraphicsNode from the input element and populates the input CompositeGraphicsNode
voidbuildGraphicsNode(BridgeContext ctx, Element e, GraphicsNode node)
Builds using the specified BridgeContext and element, the specified graphics node.
GraphicsNodecreateGraphicsNode(BridgeContext ctx, Element e)
Creates a GraphicsNode according to the specified parameters.
voiddispose()
Dispose this bridge by removing the ContentSelectionChangedListener object.
booleangetDisplay(Element e)
Returns true if the graphics node has to be displayed, false otherwise.
BridgegetInstance()
Returns a new instance of this bridge.
StringgetLocalName()
Returns 'content'.
StringgetNamespaceURI()
Returns the XBL namespace.
protected GraphicsNodeinstantiateGraphicsNode()
Creates a CompositeGraphicsNode.
booleanisComposite()
Returns false as the <xbl:content> element's selected nodes are built all in this class.

Field Detail

contentChangedListener

protected XBLContentElementBridge.ContentChangedListener contentChangedListener
The event listener for content element selection changes.

contentManager

protected ContentManager contentManager
The ContentManager object used for the content element selection change events.

Constructor Detail

XBLContentElementBridge

public XBLContentElementBridge()
Constructs a new bridge for the <xbl:content> element.

Method Detail

buildCompositeGraphicsNode

public CompositeGraphicsNode buildCompositeGraphicsNode(BridgeContext ctx, Element e, CompositeGraphicsNode cgn)
Creates a GraphicsNode from the input element and populates the input CompositeGraphicsNode

Parameters: ctx the bridge context to use e the element that describes the graphics node to build cgn the CompositeGraphicsNode where the use graphical content will be appended. The composite node is emptied before appending new content.

buildGraphicsNode

public void buildGraphicsNode(BridgeContext ctx, Element e, GraphicsNode node)
Builds using the specified BridgeContext and element, the specified graphics node.

Parameters: ctx the bridge context to use e the element that describes the graphics node to build node the graphics node to build

createGraphicsNode

public GraphicsNode createGraphicsNode(BridgeContext ctx, Element e)
Creates a GraphicsNode according to the specified parameters.

Parameters: ctx the bridge context to use e the element that describes the graphics node to build

Returns: a graphics node that represents the specified element

dispose

public void dispose()
Dispose this bridge by removing the ContentSelectionChangedListener object.

getDisplay

public boolean getDisplay(Element e)
Returns true if the graphics node has to be displayed, false otherwise.

getInstance

public Bridge getInstance()
Returns a new instance of this bridge.

getLocalName

public String getLocalName()
Returns 'content'.

getNamespaceURI

public String getNamespaceURI()
Returns the XBL namespace.

instantiateGraphicsNode

protected GraphicsNode instantiateGraphicsNode()
Creates a CompositeGraphicsNode.

isComposite

public boolean isComposite()
Returns false as the <xbl:content> element's selected nodes are built all in this class.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.