|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.batik.ext.awt.font.TextPathLayout
PathLayout can layout text along a Shape, usually a Path object.
There are a number of improvements that could be made to this class. I'll try to list some of them:
| Field Summary | |
static int |
ADJUST_GLYPHS
Use the entire glyph to adjust for textLength. |
static int |
ADJUST_SPACING
Use the spacing between the glyphs to adjust for textLength. |
static int |
ALIGN_END
Align the text at the end of the path. |
static int |
ALIGN_MIDDLE
Align the text at the middle of the path. |
static int |
ALIGN_START
Align the text at the start of the path. |
| Constructor Summary | |
TextPathLayout()
|
|
| Method Summary | |
static java.awt.Shape |
layoutGlyphVector(java.awt.font.GlyphVector glyphs,
java.awt.Shape path)
Wraps the GlyphVector around the given path. |
static java.awt.Shape |
layoutGlyphVector(java.awt.font.GlyphVector glyphs,
java.awt.Shape path,
int align)
Wraps the GlyphVector around the given path. |
static java.awt.Shape |
layoutGlyphVector(java.awt.font.GlyphVector glyphs,
java.awt.Shape path,
int align,
float startOffset,
float textLength,
int lengthAdjustMode)
Wraps the GlyphVector around the given path. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int ALIGN_START
public static final int ALIGN_MIDDLE
public static final int ALIGN_END
public static final int ADJUST_SPACING
public static final int ADJUST_GLYPHS
| Constructor Detail |
public TextPathLayout()
| Method Detail |
public static java.awt.Shape layoutGlyphVector(java.awt.font.GlyphVector glyphs,
java.awt.Shape path,
int align,
float startOffset,
float textLength,
int lengthAdjustMode)
glyphs - The GlyphVector to layout.path - The path (or shape) to wrap aroundalign - The text alignment to use. Should be one
of ALIGN_START, ALIGN_MIDDLE or ALIGN_END.startOffset - The offset from the start of the path for the initial
text position.textLength - The length that the text should fill.lengthAdjustMode - The method used to expand or contract
the text to meet the textLength.
public static java.awt.Shape layoutGlyphVector(java.awt.font.GlyphVector glyphs,
java.awt.Shape path,
int align)
glyphs - The GlyphVector to layout.path - The path (or shape) to wrap aroundalign - The text alignment to use. Should be one
of ALIGN_START, ALIGN_MIDDLE or ALIGN_END.
public static java.awt.Shape layoutGlyphVector(java.awt.font.GlyphVector glyphs,
java.awt.Shape path)
glyphs - The GlyphVector to layout.path - The path (or shape) to wrap around
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||