org.apache.batik.bridge
Interface GraphicsNodeBridge
- All Superinterfaces:
- Bridge
- All Known Implementing Classes:
- AbstractGraphicsNodeBridge, SVGSVGElementBridge, SVGSwitchElementBridge, SVGTextElementBridge, SVGUseElementBridge
- public interface GraphicsNodeBridge
- extends Bridge
Bridge class for creating, building, and updating a GraphicsNode
according to an Element.
createGraphicsNode
public GraphicsNode createGraphicsNode(BridgeContext ctx,
Element e)
- 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 usee
- the element that describes the graphics node to build- Returns:
- a graphics node that represents the specified element
buildGraphicsNode
public void buildGraphicsNode(BridgeContext ctx,
Element e,
GraphicsNode 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 usee
- the element that describes the graphics node to buildnode
- the graphics node to build
update
public void update(BridgeMutationEvent evt)
- Performs an update according to the specified event.
- Parameters:
evt
- the event describing the update to perform
isComposite
public boolean isComposite()
- Returns true if the bridge handles container element, false
otherwise.
Copyright © 2001 Apache Software Foundation. All Rights Reserved.