org.apache.batik.bridge

Class SVGRectElementBridge

public class SVGRectElementBridge extends SVGShapeElementBridge

Bridge class for the <rect> element.
Constructor Summary
SVGRectElementBridge()
Constructs a new bridge for the <rect> element.
Method Summary
protected voidbuildShape(BridgeContext ctx, Element e, ShapeNode shapeNode)
Constructs a rectangle according to the specified parameters.
protected ShapePaintercreateShapePainter(BridgeContext ctx, Element e, ShapeNode shapeNode)
BridgegetInstance()
Returns a new instance of this bridge.
StringgetLocalName()
Returns 'rect'.
voidhandleAnimatedAttributeChanged(AnimatedLiveAttributeValue alav)
Invoked when the animated value of an animatable attribute has changed.

Constructor Detail

SVGRectElementBridge

public SVGRectElementBridge()
Constructs a new bridge for the <rect> element.

Method Detail

buildShape

protected void buildShape(BridgeContext ctx, Element e, ShapeNode shapeNode)
Constructs a rectangle according to the specified parameters.

Parameters: ctx the bridge context to use e the element that describes a rect element shapeNode the shape node to initialize

createShapePainter

protected ShapePainter createShapePainter(BridgeContext ctx, Element e, ShapeNode shapeNode)

getInstance

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

getLocalName

public String getLocalName()
Returns 'rect'.

handleAnimatedAttributeChanged

public void handleAnimatedAttributeChanged(AnimatedLiveAttributeValue alav)
Invoked when the animated value of an animatable attribute has changed.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.