|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.gvt.text.TextPath
public class TextPath
A text path describes a path along which some text will be rendered.
Constructor Summary | |
---|---|
TextPath(java.awt.geom.GeneralPath path)
Constructs a TextPath based on the specified path. |
Method Summary | |
---|---|
float |
angleAtLength(float length)
Returns the angle at the specified length along the path. |
float |
getStartOffset()
Returns the start offset of this text path. |
float |
lengthOfPath()
Returns the total length of the path. |
java.awt.geom.Point2D |
pointAtLength(float length)
Returns the point that is at the specified length along the path. |
void |
setStartOffset(float startOffset)
Sets the offset along the path where the first glyph should be rendered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextPath(java.awt.geom.GeneralPath path)
path
- The general path along which text is to be laid.Method Detail |
---|
public void setStartOffset(float startOffset)
startOffset
- An offset from the start of the path.public float getStartOffset()
public float lengthOfPath()
public float angleAtLength(float length)
length
- The length along the path.
public java.awt.geom.Point2D pointAtLength(float length)
length
- The length along the path.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |