API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.font. GlyphMetrics View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      GlyphMetrics
Implements
Subclasses
Description
publicfinal class GlyphMetrics
  The GlyphMetrics class represents infomation for a single glyph.
See also:    Font GlyphVector
Constructors
public GlyphMetrics (boolean horizontal, float advanceX, float advanceY, Rectangle2D bounds, byte glyphType)
  Constructs a GlyphMetrics object.
public GlyphMetrics (float advance, Rectangle2D bounds, byte glyphType)
  Constructs a GlyphMetrics object.
Methods
Hide/Show inherited methods
public float getAdvance ()
  Returns the advance of the glyph along the baseline (either horizontal or vertical).
public float getAdvanceX ()
  Returns the x-component of the advance of the glyph.
public float getAdvanceY ()
  Returns the y-component of the advance of the glyph.
public Rectangle2D getBounds2D ()
  Returns the bounds of the glyph.
public float getLSB ()
  Returns the left (top) side bearing of the glyph.
public float getRSB ()
  Returns the right (bottom) side bearing of the glyph.
public int getType ()
  Returns the raw glyph type code.
public boolean isCombining ()
  Returns true if this is a combining glyph.
public boolean isComponent ()
  Returns true if this is a component glyph.
public boolean isLigature ()
  Returns true if this is a ligature glyph.
public boolean isStandard ()
  Returns true if this is a standard glyph.
public boolean isWhitespace ()
  Returns true if this is a whitespace glyph.
Fields
Hide/Show inherited fields
publicfinalstatic byte COMBINING = "2"
  Indicates a glyph that represents a combining character, such as an umlaut.
publicfinalstatic byte COMPONENT = "3"
  Indicates a glyph with no corresponding character in the backing store.
publicfinalstatic byte LIGATURE = "1"
  Indicates a glyph that represents multiple characters as a ligature, for example 'fi' or 'ffi'.
publicfinalstatic byte STANDARD = "0"
Indicates a glyph that represents a single standard character.
publicfinalstatic byte WHITESPACE = "4"
  Indicates a glyph with no visual representation.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar