org.apache.batik.bridge
public class SVGSwitchElementBridge extends SVGGElementBridge
Field Summary | |
---|---|
protected Element | selectedChild
The child element that was chosen for rendering according to the
test attributes. |
Constructor Summary | |
---|---|
SVGSwitchElementBridge()
Constructs a new bridge for the <switch> element. |
Method Summary | |
---|---|
GraphicsNode | createGraphicsNode(BridgeContext ctx, Element e)
Creates a GraphicsNode according to the specified parameters.
|
void | dispose()
Disposes this BridgeUpdateHandler and releases all resources. |
Bridge | getInstance()
Returns a new instance of this bridge. |
String | getLocalName()
Returns 'switch'. |
protected void | handleChildElementRemoved(Element e)
Responds to the removal of a child element by re-evaluating the
test attributes. |
protected void | handleElementAdded(CompositeGraphicsNode gn, Node parent, Element childElt)
Responds to the insertion of a child element by re-evaluating the
test attributes. |
boolean | isComposite()
Returns true as the <switch> element is not a container. |
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