|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.ui.TextMetrics
public final class TextMetrics
Metrics returned when drawing or measuring text.
Constructor Summary | ||
---|---|---|
TextMetrics()
Empty constructor. |
Method Summary | ||
---|---|---|
int |
getAdvanceX()
Gets the horizontal component of the change in the drawing position caused by drawing the text. |
|
int |
getAdvanceY()
Gets the vertical component of the change in the drawing position caused by drawing the text. |
|
int |
getAscent()
Gets the ideal ascent for the text, in pixels. |
|
int |
getBoundsBottom()
Gets the bottom edge of the bounding box of the inked pixels of all the glyphs drawn. |
|
int |
getBoundsLeft()
Gets the left edge of the bounding box of the inked pixels of all the glyphs drawn. |
|
int |
getBoundsRight()
Gets the right edge of the bounding box of the inked pixels of all the glyphs drawn. |
|
int |
getBoundsTop()
Gets the top edge of the bounding box of the inked pixels of all the glyphs drawn. |
|
int |
getDescent()
Gets the ideal descent for the text, in pixels. |
|
int |
getNextAdvanceX()
If not all characters could be drawn, gets the horizontal component of the advance if another character group were drawn. |
|
int |
getNextAdvanceY()
If not all characters could be drawn, gets the vertical component of the advance if another character group were drawn. |
|
int |
getNextNumberOfCharactersDrawn()
If not all characters could be drawn, gets the number of characters that would be drawn if another character group were drawn. |
|
int |
getNextOriginX()
Gets the x coordinate of the position at which to start drawing the next part of the text, taking into account kerning if not all characters were drawn. |
|
int |
getNextOriginY()
Gets the y coordinate of the position at which to start drawing the next part of the text, taking into account kerning if not all characters were drawn. |
|
int |
getNumberOfCharactersDrawn()
Gets the number of characters drawn. |
|
boolean |
needsBidiReordering()
Returns information about whether bidirectional reordering was needed (or actually done, if reordering was turned on). |
|
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 TextMetrics()
Method Detail |
---|
public int getAdvanceX()
public int getAdvanceY()
public int getBoundsLeft()
public int getBoundsTop()
public int getBoundsRight()
public int getBoundsBottom()
public int getNumberOfCharactersDrawn()
public int getNextAdvanceX()
public int getNextAdvanceY()
public int getNextNumberOfCharactersDrawn()
public int getNextOriginX()
public int getNextOriginY()
public boolean needsBidiReordering()
public int getAscent()
public int getDescent()
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