org.apache.batik.gvt.font
public class MultiGlyphVector extends Object implements GVTGlyphVector
Constructor Summary | |
---|---|
MultiGlyphVector(List gvs) |
Method Summary | |
---|---|
void | draw(Graphics2D g2d, AttributedCharacterIterator aci)
Draws the glyph vector. |
Rectangle2D | getBounds2D(AttributedCharacterIterator aci)
Returns the bounds of this GlyphVector. |
int | getCharacterCount(int startGlyphIndex, int endGlyphIndex)
Returns the number of chars represented by the glyphs within the
specified range.
|
GVTFont | getFont()
Returns the Font associated with this GlyphVector. |
FontRenderContext | getFontRenderContext()
Returns the FontRenderContext associated with this GlyphVector. |
Rectangle2D | getGeometricBounds()
Returns the geometric bounds of this GlyphVector. |
Rectangle2D | getGlyphCellBounds(int glyphIndex)
Returns the bounding box of the specified glyph, considering only the
glyph's metrics (ascent, descent, advance) rather than the actual glyph
shape. |
int | getGlyphCode(int glyphIndex)
Returns the glyphcode of the specified glyph. |
int[] | getGlyphCodes(int beginGlyphIndex, int numEntries, int[] codeReturn)
Returns an array of glyphcodes for the specified glyphs. |
GlyphJustificationInfo | getGlyphJustificationInfo(int glyphIndex)
Returns the justification information for the glyph at the specified
index into this GlyphVector. |
Shape | getGlyphLogicalBounds(int glyphIndex)
Returns the logical bounds of the specified glyph within this
GlyphVector. |
GVTGlyphMetrics | getGlyphMetrics(int glyphIndex)
Returns the metrics of the glyph at the specified index into this
GlyphVector. |
Shape | getGlyphOutline(int glyphIndex)
Returns a Shape whose interior corresponds to the visual representation
of the specified glyph within this GlyphVector. |
Point2D | getGlyphPosition(int glyphIndex)
Returns the position of the specified glyph within this GlyphVector. |
float[] | getGlyphPositions(int beginGlyphIndex, int numEntries, float[] positionReturn)
Returns an array of glyph positions for the specified glyphs |
AffineTransform | getGlyphTransform(int glyphIndex)
Gets the transform of the specified glyph within this GlyphVector. |
Shape | getGlyphVisualBounds(int glyphIndex)
Returns the visual bounds of the specified glyph within the GlyphVector. |
Rectangle2D | getLogicalBounds()
Returns the logical bounds of this GlyphVector. |
int | getNumGlyphs()
Returns the number of glyphs in this GlyphVector. |
Shape | getOutline()
Returns a Shape whose interior corresponds to the visual representation
of this GlyphVector. |
Shape | getOutline(float x, float y)
Returns a Shape whose interior corresponds to the visual representation
of this GlyphVector, offset to x, y. |
boolean | isGlyphVisible(int glyphIndex)
Returns true if specified glyph will be drawn. |
void | performDefaultLayout() |
void | setGlyphPosition(int glyphIndex, Point2D newPos)
Sets the position of the specified glyph within this GlyphVector. |
void | setGlyphTransform(int glyphIndex, AffineTransform newTX)
Sets the transform of the specified glyph within this GlyphVector. |
void | setGlyphVisible(int glyphIndex, boolean visible)
Tells the glyph vector whether or not to draw the specified glyph. |
Parameters: startGlyphIndex The index of the first glyph in the range. endGlyphIndex The index of the last glyph in the range.
Returns: The number of chars.