org.apache.batik.bridge

Class SVGGElementBridge

public class SVGGElementBridge extends AbstractGraphicsNodeBridge

Bridge class for the <g> element.
Constructor Summary
SVGGElementBridge()
Constructs a new bridge for the <g> element.
Method Summary
GraphicsNodecreateGraphicsNode(BridgeContext ctx, Element e)
Creates a GraphicsNode according to the specified parameters.
BridgegetInstance()
Returns a new instance of this bridge.
StringgetLocalName()
Returns 'g'.
voidhandleDOMNodeInsertedEvent(MutationEvent evt)
Invoked when an MutationEvent of type 'DOMNodeInserted' is fired.
protected 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 <g> element is a container.

Constructor Detail

SVGGElementBridge

public SVGGElementBridge()
Constructs a new bridge for the <g> element.

Method Detail

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

getInstance

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

getLocalName

public String getLocalName()
Returns 'g'.

handleDOMNodeInsertedEvent

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

handleElementAdded

protected 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 <g> element is a container.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.