public class TextPath
extends java.lang.Object
Constructor and Description |
---|
TextPath(java.awt.geom.GeneralPath path)
Constructs a TextPath based on the specified path.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public TextPath(java.awt.geom.GeneralPath path)
path
- The general path along which text is to be laid.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.Copyright © 2022 Apache Software Foundation. All Rights Reserved.