API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.font. GlyphVector View Source
Author(s)
Charlton Innovations, Inc.
Since
Version
19 Mar 1998
Serial
Hierarchy
 Object
      GlyphVector
Implements
 Cloneable
Subclasses
Description
publicabstract abstract class GlyphVector
  A GlyphVector object is a collection of glyphs containing geometric information for the placement of each glyph in a transformed coordinate space which corresponds to the device on which the GlyphVector is ultimately displayed.
See also:    Font GlyphMetrics TextLayout
Constructors
public GlyphVector ()
Methods
Hide/Show inherited methods
publicabstract boolean equals (GlyphVector set)
  Tests if the specified GlyphVector exactly equals this GlyphVector.
publicabstract Font getFont ()
  Returns the Font associated with this GlyphVector.
publicabstract FontRenderContext getFontRenderContext ()
  Returns the FontRenderContext associated with this GlyphVector.
public int getGlyphCharIndex (int glyphIndex)
  Returns the character index of the specified glyph.
public int getGlyphCharIndices (int beginGlyphIndex, int numEntries, int[] codeReturn)
  Returns the character indices of the specified glyphs.
publicabstract int getGlyphCode (int glyphIndex)
  Returns the glyphcode of the specified glyph.
publicabstract int getGlyphCodes (int beginGlyphIndex, int numEntries, int[] codeReturn)
  Returns an array of glyphcodes for the specified glyphs.
publicabstract GlyphJustificationInfo getGlyphJustificationInfo (int glyphIndex)
  Returns the justification information for the glyph at the specified index into this GlyphVector.
publicabstract Shape getGlyphLogicalBounds (int glyphIndex)
  Returns the logical bounds of the specified glyph within this GlyphVector.
publicabstract GlyphMetrics getGlyphMetrics (int glyphIndex)
  Returns the metrics of the glyph at the specified index into this GlyphVector.
publicabstract Shape getGlyphOutline (int glyphIndex)
  Returns a Shape whose interior corresponds to the visual representation of the specified glyph within this GlyphVector.
public Shape getGlyphOutline (int glyphIndex, float x, float y)
  Returns a Shape whose interior corresponds to the visual representation of the specified glyph within this GlyphVector, offset to x, y.
public Rectangle getGlyphPixelBounds (int index, FontRenderContext renderFRC, float x, float y)
  Returns the pixel bounds of the glyph at index when this GlyphVector is rendered in a Graphics with the given FontRenderContext at the given location.
publicabstract Point2D getGlyphPosition (int glyphIndex)
  Returns the position of the specified glyph relative to the origin of this GlyphVector.
publicabstract float getGlyphPositions (int beginGlyphIndex, int numEntries, float[] positionReturn)
  Returns an array of glyph positions for the specified glyphs.
publicabstract AffineTransform getGlyphTransform (int glyphIndex)
  Returns the transform of the specified glyph within this GlyphVector.
publicabstract Shape getGlyphVisualBounds (int glyphIndex)
  Returns the visual bounds of the specified glyph within the GlyphVector.
public int getLayoutFlags ()
  Returns flags describing the global state of the GlyphVector.
publicabstract Rectangle2D getLogicalBounds ()
  Returns the logical bounds of this GlyphVector.
publicabstract int getNumGlyphs ()
  Returns the number of glyphs in this GlyphVector.
publicabstract Shape getOutline ()
  Returns a Shape whose interior corresponds to the visual representation of this GlyphVector.
publicabstract Shape getOutline (float x, float y)
  Returns a Shape whose interior corresponds to the visual representation of this GlyphVector when rendered at x, y.
public Rectangle getPixelBounds (FontRenderContext renderFRC, float x, float y)
  Returns the pixel bounds of this GlyphVector when rendered in a graphics with the given FontRenderContext at the given location.
publicabstract Rectangle2D getVisualBounds ()
  Returns the visual bounds of this GlyphVector The visual bounds is the bounding box of the outline of this GlyphVector.
publicabstract void performDefaultLayout ()
  Assigns default positions to each glyph in this GlyphVector.
publicabstract void setGlyphPosition (int glyphIndex, Point2D newPos)
  Sets the position of the specified glyph within this GlyphVector.
publicabstract void setGlyphTransform (int glyphIndex, AffineTransform newTX)
  Sets the transform of the specified glyph within this GlyphVector.
Fields
Hide/Show inherited fields
publicfinalstatic int FLAG_COMPLEX_GLYPHS = "8"
  A flag used with getLayoutFlags that indicates that this GlyphVector has a complex glyph-to-char mapping (one that does not map glyphs to chars one-to-one in strictly ascending or descending order matching the run direction).
publicfinalstatic int FLAG_HAS_POSITION_ADJUSTMENTS = "2"
  A flag used with getLayoutFlags that indicates that this GlyphVector has position adjustments.
publicfinalstatic int FLAG_HAS_TRANSFORMS = "1"
  A flag used with getLayoutFlags that indicates that this GlyphVector has per-glyph transforms.
publicfinalstatic int FLAG_MASK = "15"
  A mask for supported flags from getLayoutFlags.
publicfinalstatic int FLAG_RUN_RTL = "4"
  A flag used with getLayoutFlags that indicates that this GlyphVector has a right-to-left run direction.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar