Home » apache-harmony-6.0-src-r917296-snapshot » org.apache.harmony.awt.gl.font » [javadoc | source]
org.apache.harmony.awt.gl.font
public class: FontMetricsImpl [javadoc | source]
java.lang.Object
   java.awt.FontMetrics
      org.apache.harmony.awt.gl.font.FontMetricsImpl

All Implemented Interfaces:
    Serializable

FontMetrics implementation
Fields inherited from java.awt.FontMetrics:
font
Constructor:
 public FontMetricsImpl(Font fnt) 
    Creates new FontMericsImpl object described by the specified Font.
    Parameters:
    fnt - the specified Font object
Method from org.apache.harmony.awt.gl.font.FontMetricsImpl Summary:
charWidth,   charWidth,   getAscent,   getDescent,   getFontPeer,   getLeading,   getMaxAdvance,   getMaxAscent,   getMaxDecent,   getMaxDescent,   getWidths,   stringWidth
Methods from java.awt.FontMetrics:
bytesWidth,   charWidth,   charWidth,   charsWidth,   getAscent,   getDescent,   getFont,   getFontRenderContext,   getHeight,   getLeading,   getLineMetrics,   getLineMetrics,   getLineMetrics,   getLineMetrics,   getMaxAdvance,   getMaxAscent,   getMaxCharBounds,   getMaxDecent,   getMaxDescent,   getStringBounds,   getStringBounds,   getStringBounds,   getStringBounds,   getWidths,   hasUniformLineMetrics,   stringWidth,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.harmony.awt.gl.font.FontMetricsImpl Detail:
 public int charWidth(int ch) 
    Returns the advance width of the specified char of the Font describing this FontMetricsImpl object.
 public int charWidth(char ch) 
    Returns the advance width of the specified char of the Font describing this FontMetricsImpl object.
 public int getAscent() 
    Returns the ascent of the Font describing this FontMetricsImpl object.
 public int getDescent() 
    Returns the descent of the Font describing this FontMetricsImpl object.
 public FontPeerImpl getFontPeer() 
    Returns FontPeer implementation of the Font describing this FontMetricsImpl object.
 public int getLeading() 
    Returns the leading of the Font describing this FontMetricsImpl object.
 public int getMaxAdvance() 
    Returns the maximum advance of the Font describing this FontMetricsImpl object.
 public int getMaxAscent() 
    Returns the maximum ascent of the Font describing this FontMetricsImpl object.
 public int getMaxDecent() 
    Returns the maximum descent of the Font describing this FontMetricsImpl object.
 public int getMaxDescent() 
    Returns the maximum descent of the Font describing this FontMetricsImpl object.
 public int[] getWidths() 
    Returns the advance widths of the first 256 characters in the Font describing this FontMetricsImpl object.
 public int stringWidth(String str) 
    Returns the total advance width of the specified string in the metrics of the Font describing this FontMetricsImpl object.