org.apache.batik.bridge
public class SVGPathElementBridge extends SVGDecoratedShapeElementBridge implements SVGPathContext
| Field Summary | |
|---|---|
| protected static Shape | DEFAULT_SHAPE
default shape for the update of 'd' when
the value is the empty string. |
| protected PathLength | pathLength
The cached PathLength object used for computing the path length. |
| protected Shape | pathLengthShape
The cached Shape used for computing the path length. |
| Constructor Summary | |
|---|---|
| SVGPathElementBridge()
Constructs a new bridge for the <path> element. | |
| Method Summary | |
|---|---|
| protected void | buildShape(BridgeContext ctx, Element e, ShapeNode shapeNode)
Constructs a path according to the specified parameters.
|
| Bridge | getInstance()
Returns a new instance of this bridge. |
| String | getLocalName()
Returns 'path'. |
| protected PathLength | getPathLengthObj()
Returns the PathLength object that tracks the length of the path. |
| int | getPathSegAtLength(float distance)
Returns the index of the path segment at the given distance along the
path. |
| Point2D | getPointAtLength(float distance)
Returns the point at the given distance along the path. |
| float | getTotalLength()
Returns the total length of the path. |
| void | handleAnimatedAttributeChanged(AnimatedLiveAttributeValue alav)
Invoked when the animated value of an animatable attribute has changed. |
| protected void | handleCSSPropertyChanged(int property) |
Parameters: ctx the bridge context to use e the element that describes a rect element shapeNode the shape node to initialize