|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for all GVT GlyphVector classes.
Method Summary | |
void |
draw(java.awt.Graphics2D graphics2D,
java.text.AttributedCharacterIterator aci)
Draws the glyph vector. |
java.awt.geom.Rectangle2D |
getBounds2D(java.text.AttributedCharacterIterator aci)
Returns a tight bounds on the GylphVector including stroking. |
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. |
java.awt.font.FontRenderContext |
getFontRenderContext()
Returns the FontRenderContext associated with this GlyphVector. |
java.awt.geom.Rectangle2D |
getGeometricBounds()
Returns the visual bounds of this GlyphVector The visual bounds is the tightest rectangle enclosing all non-background pixels in the rendered representation of this GlyphVector. |
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. |
java.awt.font.GlyphJustificationInfo |
getGlyphJustificationInfo(int glyphIndex)
Returns the justification information for the glyph at the specified index into this GlyphVector. |
java.awt.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. |
java.awt.Shape |
getGlyphOutline(int glyphIndex)
Returns a Shape whose interior corresponds to the visual representation of the specified glyph within this GlyphVector. |
java.awt.geom.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 |
java.awt.geom.AffineTransform |
getGlyphTransform(int glyphIndex)
Gets the transform of the specified glyph within this GlyphVector. |
java.awt.Shape |
getGlyphVisualBounds(int glyphIndex)
Returns the visual bounds of the specified glyph within the GlyphVector. |
java.awt.geom.Rectangle2D |
getLogicalBounds()
Returns the logical bounds of this GlyphVector. |
int |
getNumGlyphs()
Returns the number of glyphs in this GlyphVector. |
java.awt.Shape |
getOutline()
Returns a Shape whose interior corresponds to the visual representation of this GlyphVector. |
java.awt.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()
Assigns default positions to each glyph in this GlyphVector. |
void |
setGlyphPosition(int glyphIndex,
java.awt.geom.Point2D newPos)
Sets the position of the specified glyph within this GlyphVector. |
void |
setGlyphTransform(int glyphIndex,
java.awt.geom.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. |
Method Detail |
public GVTFont getFont()
public java.awt.font.FontRenderContext getFontRenderContext()
public int getGlyphCode(int glyphIndex)
public int[] getGlyphCodes(int beginGlyphIndex, int numEntries, int[] codeReturn)
public java.awt.font.GlyphJustificationInfo getGlyphJustificationInfo(int glyphIndex)
public java.awt.Shape getGlyphLogicalBounds(int glyphIndex)
public GVTGlyphMetrics getGlyphMetrics(int glyphIndex)
public java.awt.Shape getGlyphOutline(int glyphIndex)
public java.awt.geom.Point2D getGlyphPosition(int glyphIndex)
public float[] getGlyphPositions(int beginGlyphIndex, int numEntries, float[] positionReturn)
public java.awt.geom.AffineTransform getGlyphTransform(int glyphIndex)
public java.awt.Shape getGlyphVisualBounds(int glyphIndex)
public java.awt.geom.Rectangle2D getLogicalBounds()
public int getNumGlyphs()
public java.awt.Shape getOutline()
public java.awt.Shape getOutline(float x, float y)
public java.awt.geom.Rectangle2D getGeometricBounds()
public java.awt.geom.Rectangle2D getBounds2D(java.text.AttributedCharacterIterator aci)
aci
- Required to get painting attributes of glyphVector.public void performDefaultLayout()
public void setGlyphPosition(int glyphIndex, java.awt.geom.Point2D newPos)
public void setGlyphTransform(int glyphIndex, java.awt.geom.AffineTransform newTX)
public void setGlyphVisible(int glyphIndex, boolean visible)
public boolean isGlyphVisible(int glyphIndex)
public int getCharacterCount(int startGlyphIndex, int endGlyphIndex)
startGlyphIndex
- The index of the first glyph in the range.endGlyphIndex
- The index of the last glyph in the range.public void draw(java.awt.Graphics2D graphics2D, java.text.AttributedCharacterIterator aci)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |