org.apache.batik.bridge

Class SVGPolygonElementBridge

public class SVGPolygonElementBridge extends SVGDecoratedShapeElementBridge

Bridge class for the <polygon> element.
Field Summary
protected static ShapeDEFAULT_SHAPE
default shape for the update of 'points' when the value is the empty string.
Constructor Summary
SVGPolygonElementBridge()
Constructs a new bridge for the <polygon> element.
Method Summary
protected voidbuildShape(BridgeContext ctx, Element e, ShapeNode shapeNode)
Constructs a polygon according to the specified parameters.
BridgegetInstance()
Returns a new instance of this bridge.
StringgetLocalName()
Returns 'polygon'.
voidhandleAnimatedAttributeChanged(AnimatedLiveAttributeValue alav)
Invoked when the animated value of an animatable attribute has changed.
protected voidhandleCSSPropertyChanged(int property)

Field Detail

DEFAULT_SHAPE

protected static final Shape DEFAULT_SHAPE
default shape for the update of 'points' when the value is the empty string.

Constructor Detail

SVGPolygonElementBridge

public SVGPolygonElementBridge()
Constructs a new bridge for the <polygon> element.

Method Detail

buildShape

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

getInstance

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

getLocalName

public String getLocalName()
Returns 'polygon'.

handleAnimatedAttributeChanged

public void handleAnimatedAttributeChanged(AnimatedLiveAttributeValue alav)
Invoked when the animated value of an animatable attribute has changed.

handleCSSPropertyChanged

protected void handleCSSPropertyChanged(int property)
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.