org.apache.batik.bridge

Class SVGLineElementBridge

public class SVGLineElementBridge extends SVGDecoratedShapeElementBridge

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

Constructor Detail

SVGLineElementBridge

public SVGLineElementBridge()
Constructs a new bridge for the <line> element.

Method Detail

buildShape

protected void buildShape(BridgeContext ctx, Element e, ShapeNode shapeNode)
Constructs a line 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

createFillStrokePainter

protected ShapePainter createFillStrokePainter(BridgeContext ctx, Element e, ShapeNode shapeNode)
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 e the element that describes the shape painter to use shapeNode the shape node that is interested in its shape painter

getInstance

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

getLocalName

public String getLocalName()
Returns 'line'.

handleAnimatedAttributeChanged

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