org.apache.batik.bridge
public class SVGUseElementBridge extends AbstractGraphicsNodeBridge
| Nested Class Summary | |
|---|---|
| static class | SVGUseElementBridge.CursorMouseOverListener
To handle a mouseover on an anchor and set the cursor. |
| protected class | SVGUseElementBridge.ReferencedElementMutationListener
Used to handle modifications to the referenced content |
| Field Summary | |
|---|---|
| protected SVGUseElementBridge.ReferencedElementMutationListener | l
Used to handle mutation of the referenced content. |
| protected BridgeContext | subCtx
The bridge context for the referenced document. |
| Constructor Summary | |
|---|---|
| SVGUseElementBridge()
Constructs a new bridge for the <use> element. | |
| Method Summary | |
|---|---|
| CompositeGraphicsNode | buildCompositeGraphicsNode(BridgeContext ctx, Element e, CompositeGraphicsNode gn)
Creates a GraphicsNode from the input element and
populates the input CompositeGraphicsNode
|
| void | buildGraphicsNode(BridgeContext ctx, Element e, GraphicsNode node)
Builds using the specified BridgeContext and element, the
specified graphics node.
|
| protected AffineTransform | computeTransform(SVGTransformable e, BridgeContext ctx)
Returns an AffineTransform that is the transformation to
be applied to the node. |
| GraphicsNode | createGraphicsNode(BridgeContext ctx, Element e)
Creates a GraphicsNode according to the specified parameters.
|
| void | dispose() |
| Bridge | getInstance()
Returns a new instance of this bridge. |
| String | getLocalName()
Returns 'use'. |
| void | handleAnimatedAttributeChanged(AnimatedLiveAttributeValue alav)
Invoked when the animated value of an animatable attribute has changed. |
| protected GraphicsNode | instantiateGraphicsNode()
Creates the GraphicsNode depending on the GraphicsNodeBridge
implementation. |
| boolean | isComposite()
Returns false as the <use> element is a not container. |
Parameters: ctx the bridge context to use e the element that describes the graphics node to build gn the CompositeGraphicsNode where the use graphical content will be appended. The composite node is emptied before appending new content.
Parameters: ctx the bridge context to use e the element that describes the graphics node to build node the graphics node to build
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