org.apache.batik.extension.svg

Class BatikStarElementBridge

public class BatikStarElementBridge extends SVGDecoratedShapeElementBridge implements BatikExtConstants

Bridge class for a star element.
Constructor Summary
BatikStarElementBridge()
Constructs a new bridge for the <rect> element.
Method Summary
protected voidbuildShape(BridgeContext ctx, Element e, ShapeNode shapeNode)
Constructs a star polygone according to the specified parameters.
protected static intconvertSides(Element filterElement, String attrName, int defaultValue, BridgeContext ctx)
Stolen from AbstractSVGFilterPrimitiveElementBridge.
BridgegetInstance()
Returns a new instance of this bridge.
StringgetLocalName()
Returns 'rect'.
StringgetNamespaceURI()
Returns the SVG namespace URI.

Constructor Detail

BatikStarElementBridge

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

Method Detail

buildShape

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

convertSides

protected static int convertSides(Element filterElement, String attrName, int defaultValue, BridgeContext ctx)
Stolen from AbstractSVGFilterPrimitiveElementBridge. Converts on the specified filter primitive element, the specified attribute that represents an integer and with the specified default value.

Parameters: filterElement the filter primitive element attrName the name of the attribute defaultValue the default value of the attribute ctx the BridgeContext to use for error information

getInstance

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

getLocalName

public String getLocalName()
Returns 'rect'.

getNamespaceURI

public String getNamespaceURI()
Returns the SVG namespace URI.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.