org.apache.batik.ext.awt.font
public class TextPathLayout extends 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. |
Method Summary | |
---|---|
static Shape | layoutGlyphVector(GlyphVector glyphs, Shape path, int align, float startOffset, float textLength, int lengthAdjustMode)
Wraps the GlyphVector around the given path. |
static Shape | layoutGlyphVector(GlyphVector glyphs, Shape path, int align)
Wraps the GlyphVector around the given path.
|
static Shape | layoutGlyphVector(GlyphVector glyphs, Shape path)
Wraps the GlyphVector around the given path.
|
Parameters: glyphs The GlyphVector to layout. path The path (or shape) to wrap around align 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.
Returns: A shape that is the outline of the glyph vector wrapped along the path
Parameters: glyphs The GlyphVector to layout. path The path (or shape) to wrap around align The text alignment to use. Should be one of ALIGN_START, ALIGN_MIDDLE or ALIGN_END.
Returns: A shape that is the outline of the glyph vector wrapped along the path
Parameters: glyphs The GlyphVector to layout. path The path (or shape) to wrap around
Returns: A shape that is the outline of the glyph vector wrapped along the path