org.apache.batik.dom.svg

Interface SVGPathContext

public interface SVGPathContext extends SVGContext

Context class for the SVG path element to support extra methods.
Method Summary
intgetPathSegAtLength(float distance)
Returns the index of the path segment at the given distance along the path.
Point2DgetPointAtLength(float distance)
Returns the point at the given distance along the path.
floatgetTotalLength()
Returns the total length of the path.

Method Detail

getPathSegAtLength

public int getPathSegAtLength(float distance)
Returns the index of the path segment at the given distance along the path.

getPointAtLength

public Point2D getPointAtLength(float distance)
Returns the point at the given distance along the path.

getTotalLength

public float getTotalLength()
Returns the total length of the path.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.