| java.lang.Object org.apache.batik.bridge.AbstractSVGBridge org.apache.batik.bridge.AnimatableSVGBridge org.apache.batik.bridge.AbstractGraphicsNodeBridge org.apache.batik.bridge.SVGShapeElementBridge
All known Subclasses: org.apache.batik.bridge.SVGRectElementBridge, org.apache.batik.bridge.SVGDecoratedShapeElementBridge, org.apache.batik.bridge.SVGEllipseElementBridge, org.apache.batik.bridge.SVGCircleElementBridge,
SVGShapeElementBridge | abstract public class SVGShapeElementBridge extends AbstractGraphicsNodeBridge (Code) | | The base bridge class for shapes. Subclasses bridge ShapeNode.
author: Thierry Kormann version: $Id: SVGShapeElementBridge.java 475477 2006-11-15 22:44:28Z cam $ |
Field Summary | |
protected boolean | hasNewShapePainter This flag bit indicates if a new shape painter has already been created. |
hasNewShapePainter | protected boolean hasNewShapePainter(Code) | | This flag bit indicates if a new shape painter has already been created.
Avoid creating one ShapePainter per CSS property change
|
SVGShapeElementBridge | protected SVGShapeElementBridge()(Code) | | Constructs a new bridge for SVG shapes.
|
buildGraphicsNode | public void buildGraphicsNode(BridgeContext ctx, Element e, GraphicsNode node)(Code) | | Builds using the specified BridgeContext and element, the
specified graphics node.
Parameters: ctx - the bridge context to use Parameters: e - the element that describes the graphics node to build Parameters: node - the graphics node to build |
buildShape | abstract protected void buildShape(BridgeContext ctx, Element e, ShapeNode node)(Code) | | Initializes the specified ShapeNode's shape defined by the
specified Element and using the specified bridge context.
Parameters: ctx - the bridge context to use Parameters: e - the element that describes the shape node to build Parameters: node - the shape node to initialize |
createGraphicsNode | public GraphicsNode createGraphicsNode(BridgeContext ctx, Element e)(Code) | | Creates a graphics node using the specified BridgeContext and
for the specified element.
Parameters: ctx - the bridge context to use Parameters: e - the element that describes the graphics node to build a graphics node that represents the specified element |
createShapePainter | protected ShapePainter createShapePainter(BridgeContext ctx, Element e, ShapeNode shapeNode)(Code) | | Creates the shape painter associated to the specified element.
This implementation creates a shape painter considering the
various fill and stroke properties.
Parameters: ctx - the bridge context to use Parameters: e - the element that describes the shape painter to use Parameters: shapeNode - the shape node that is interested in its shape painter |
handleCSSEngineEvent | public void handleCSSEngineEvent(CSSEngineEvent evt)(Code) | | Invoked when CSS properties have changed on an element.
Parameters: evt - the CSSEngine event that describes the update |
handleCSSPropertyChanged | protected void handleCSSPropertyChanged(int property)(Code) | | Invoked for each CSS property that has changed.
|
handleGeometryChanged | protected void handleGeometryChanged()(Code) | | Invoked when the geometry of an graphical element has changed.
|
instantiateGraphicsNode | protected GraphicsNode instantiateGraphicsNode()(Code) | | Creates a ShapeNode.
|
isComposite | public boolean isComposite()(Code) | | Returns false as shapes are not a container.
|
Methods inherited from org.apache.batik.bridge.AbstractGraphicsNodeBridge | protected void associateSVGContext(BridgeContext ctx, Element e, GraphicsNode node)(Code)(Java Doc) public void buildGraphicsNode(BridgeContext ctx, Element e, GraphicsNode node)(Code)(Java Doc) protected void checkBBoxChange()(Code)(Java Doc) protected AffineTransform computeTransform(SVGTransformable te, BridgeContext ctx)(Code)(Java Doc) public GraphicsNode createGraphicsNode(BridgeContext ctx, Element e)(Code)(Java Doc) public void dispose()(Code)(Java Doc) protected void disposeTree(Node node)(Code)(Java Doc) protected void disposeTree(Node node, boolean removeContext)(Code)(Java Doc) protected void fireBBoxChangeEvent()(Code)(Java Doc) protected void fireShapeChangeEvent()(Code)(Java Doc) public Rectangle2D getBBox()(Code)(Java Doc) public AffineTransform getCTM()(Code)(Java Doc) public boolean getDisplay(Element e)(Code)(Java Doc) public float getFontSize()(Code)(Java Doc) public AffineTransform getGlobalTransform()(Code)(Java Doc) public float getPixelToMM()(Code)(Java Doc) public float getPixelUnitToMillimeter()(Code)(Java Doc) public AffineTransform getScreenTransform()(Code)(Java Doc) public float getViewportHeight()(Code)(Java Doc) public float getViewportWidth()(Code)(Java Doc) public void handleAnimatedAttributeChanged(AnimatedLiveAttributeValue alav)(Code)(Java Doc) public void handleCSSEngineEvent(CSSEngineEvent evt)(Code)(Java Doc) protected void handleCSSPropertyChanged(int property)(Code)(Java Doc) public void handleDOMAttrModifiedEvent(MutationEvent evt)(Code)(Java Doc) public void handleDOMCharacterDataModified(MutationEvent evt)(Code)(Java Doc) public void handleDOMNodeInsertedEvent(MutationEvent evt)(Code)(Java Doc) public void handleDOMNodeRemovedEvent(MutationEvent evt)(Code)(Java Doc) protected void handleGeometryChanged()(Code)(Java Doc) public void handleOtherAnimationChanged(String type)(Code)(Java Doc) protected void initializeDynamicSupport(BridgeContext ctx, Element e, GraphicsNode node)(Code)(Java Doc) abstract protected GraphicsNode instantiateGraphicsNode()(Code)(Java Doc) public void setScreenTransform(AffineTransform at)(Code)(Java Doc) protected void setTransform(GraphicsNode n, Element e, BridgeContext ctx)(Code)(Java Doc)
|
|
|