org.apache.batik.bridge.svg12

Class XBLShadowTreeElementBridge

public class XBLShadowTreeElementBridge extends AbstractGraphicsNodeBridge

Bridge class for the <xbl:shadowTree> element.
Constructor Summary
XBLShadowTreeElementBridge()
Constructs a new bridge for the <xbl:shadowTree> element.
Method Summary
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.
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 'shadowTree'.
StringgetNamespaceURI()
Returns the XBL namespace.
voidhandleDOMNodeInsertedEvent(MutationEvent evt)
Invoked when an MutationEvent of type 'DOMNodeInserted' is fired.
voidhandleElementAdded(CompositeGraphicsNode gn, Node parent, Element childElt)
Invoked when an MutationEvent of type 'DOMNodeInserted' is fired.
protected GraphicsNodeinstantiateGraphicsNode()
Creates a CompositeGraphicsNode.
booleanisComposite()
Returns true as the <xbl:template> element is a container.

Constructor Detail

XBLShadowTreeElementBridge

public XBLShadowTreeElementBridge()
Constructs a new bridge for the <xbl:shadowTree> element.

Method Detail

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

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 'shadowTree'.

getNamespaceURI

public String getNamespaceURI()
Returns the XBL namespace.

handleDOMNodeInsertedEvent

public void handleDOMNodeInsertedEvent(MutationEvent evt)
Invoked when an MutationEvent of type 'DOMNodeInserted' is fired.

handleElementAdded

public void handleElementAdded(CompositeGraphicsNode gn, Node parent, Element childElt)
Invoked when an MutationEvent of type 'DOMNodeInserted' is fired.

instantiateGraphicsNode

protected GraphicsNode instantiateGraphicsNode()
Creates a CompositeGraphicsNode.

isComposite

public boolean isComposite()
Returns true as the <xbl:template> element is a container.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.