|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.ui.FontMetrics
public class FontMetrics
The metrics of a font: that is, a typeface at a certain size and in a certain style.
Constructor Summary | ||
---|---|---|
FontMetrics()
Empty constructor. |
Method Summary | ||
---|---|---|
int |
getAscent()
Gets the height of standard ascenders (Latin capital letters) in pixels. |
|
int |
getAverageCharWidth()
Gets the average width of a character in pixels, for the purpose of calculating the size of a text field. |
|
int |
getDescent()
Gets the depth of standard descenders (usually of the Latin letters p, q, y) in pixels. |
|
int |
getHeight()
Gets the height of the font in pixels. |
|
int |
getLeadingAbove()
Gets the standard leading above the line in pixels. |
|
int |
getLeadingBelow()
Gets the standard leading below the line in pixels. |
|
int |
getMaxAscent()
Gets the maximum ascent of any character in pixels. |
|
int |
getMaxCharWidth()
Gets the maximum width of a character in pixels. |
|
int |
getMaxDescent()
Gets the maximum descent of any character in pixels. |
|
int |
getSpaceWidth()
Gets the width of a word space in pixels. |
|
int |
getUnderlineOffset()
Gets the distance of underline below baseline in pixels. |
|
int |
getUnderlineWeight()
Gets the standard underline weight in pixels. |
|
void |
reset()
Set all metrics to their standard values. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FontMetrics()
Method Detail |
---|
public int getHeight()
public int getAscent()
public int getMaxAscent()
public int getDescent()
public int getMaxDescent()
public int getUnderlineOffset()
public int getUnderlineWeight()
public int getLeadingAbove()
public int getLeadingBelow()
public int getSpaceWidth()
public int getMaxCharWidth()
public int getAverageCharWidth()
public void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal