| java.lang.Object java.awt.FontMetrics org.apache.harmony.awt.gl.font.FontMetricsImpl
FontMetricsImpl | public class FontMetricsImpl extends FontMetrics (Code) | | FontMetrics implementation
|
Constructor Summary | |
public | FontMetricsImpl(Font fnt) Creates new FontMericsImpl object described by the specified Font. |
Method Summary | |
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. |
FontMetricsImpl | public FontMetricsImpl(Font fnt)(Code) | | Creates new FontMericsImpl object described by the specified Font.
Parameters: fnt - the specified Font object |
charWidth | public int charWidth(int ch)(Code) | | Returns the advance width of the specified char of the Font
describing this FontMetricsImpl object.
Parameters: ch - the char which width is to be returned the advance width of the specified char of the Font describing this FontMetricsImpl object |
charWidth | public int charWidth(char ch)(Code) | | Returns the advance width of the specified char of the Font
describing this FontMetricsImpl object.
Parameters: ch - the char which width is to be returned the advance width of the specified char of the Font describing this FontMetricsImpl object |
getAscent | public int getAscent()(Code) | | Returns the ascent of the Font describing this FontMetricsImpl object.
|
getDescent | public int getDescent()(Code) | | Returns the descent of the Font describing this FontMetricsImpl object.
|
getFontPeer | public FontPeerImpl getFontPeer()(Code) | | Returns FontPeer implementation of the Font describing this
FontMetricsImpl object.
a FontPeer object, that is the platform dependent FontPeer implementation for the Font describing this FontMetricsImpl object. |
getLeading | public int getLeading()(Code) | | Returns the leading of the Font describing this FontMetricsImpl object.
|
getMaxAdvance | public int getMaxAdvance()(Code) | | Returns the maximum advance of the Font describing this
FontMetricsImpl object.
|
getMaxAscent | public int getMaxAscent()(Code) | | Returns the maximum ascent of the Font describing this
FontMetricsImpl object.
|
getMaxDecent | public int getMaxDecent()(Code) | | Returns the maximum descent of the Font describing this
FontMetricsImpl object.
|
getMaxDescent | public int getMaxDescent()(Code) | | Returns the maximum descent of the Font describing this
FontMetricsImpl object.
|
getWidths | public int[] getWidths()(Code) | | Returns the advance widths of the first 256 characters in the Font
describing this FontMetricsImpl object.
|
stringWidth | public int stringWidth(String str)(Code) | | Returns the total advance width of the specified string in the metrics
of the Font describing this FontMetricsImpl object.
Parameters: str - the String which width is to be measured the total advance width of the specified string in the metrics of the Font describing this FontMetricsImpl object |
Methods inherited from java.awt.FontMetrics | public int bytesWidth(byte data, int off, int len)(Code)(Java Doc) public int charWidth(int codePoint)(Code)(Java Doc) public int charWidth(char ch)(Code)(Java Doc) public int charsWidth(char data, int off, int len)(Code)(Java Doc) public int getAscent()(Code)(Java Doc) public int getDescent()(Code)(Java Doc) public Font getFont()(Code)(Java Doc) public FontRenderContext getFontRenderContext()(Code)(Java Doc) public int getHeight()(Code)(Java Doc) public int getLeading()(Code)(Java Doc) public LineMetrics getLineMetrics(String str, Graphics context)(Code)(Java Doc) public LineMetrics getLineMetrics(String str, int beginIndex, int limit, Graphics context)(Code)(Java Doc) public LineMetrics getLineMetrics(char[] chars, int beginIndex, int limit, Graphics context)(Code)(Java Doc) public LineMetrics getLineMetrics(CharacterIterator ci, int beginIndex, int limit, Graphics context)(Code)(Java Doc) public int getMaxAdvance()(Code)(Java Doc) public int getMaxAscent()(Code)(Java Doc) public Rectangle2D getMaxCharBounds(Graphics context)(Code)(Java Doc) public int getMaxDecent()(Code)(Java Doc) public int getMaxDescent()(Code)(Java Doc) public Rectangle2D getStringBounds(String str, Graphics context)(Code)(Java Doc) public Rectangle2D getStringBounds(String str, int beginIndex, int limit, Graphics context)(Code)(Java Doc) public Rectangle2D getStringBounds(char[] chars, int beginIndex, int limit, Graphics context)(Code)(Java Doc) public Rectangle2D getStringBounds(CharacterIterator ci, int beginIndex, int limit, Graphics context)(Code)(Java Doc) public int[] getWidths()(Code)(Java Doc) public boolean hasUniformLineMetrics()(Code)(Java Doc) public int stringWidth(String str)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|