|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Text
| Method Summary | |
|---|---|
int |
charWidth(char c)
Returns the width, in pixels, of the specified character. |
int |
getAscent()
Returns the height, in pixels, of the distance from the baseline to top of the tallest character (including accents that are not common in english. |
int |
getDescent()
Returns the height, in pixels, of the distance from bottom of the lowest descending character to the baseline. |
int |
getLineHeight()
Returns the sum of the text height and line spacing. |
int |
getLineSpacing()
Returns the number of blank vertical pixels to add between adjacent lines to give them additional spacing. |
int |
getMidPoint()
Returns the mid point, in pixels, between the baseline and the top of the characters. |
java.lang.String |
getName()
Return the name of this text style. |
int |
getTextHeight()
Returns the height, in pixels, for a normal line of text - where there is some space between two lines of text. |
int |
stringHeight(java.lang.String text,
int maxWidth)
Returns the height in pixels when the specified text is wrapped at the specified width |
int |
stringWidth(java.lang.String text)
Returns the width of the specified in pixels. |
int |
stringWidth(java.lang.String message,
int maxWidth)
|
| Method Detail |
|---|
int charWidth(char c)
int getAscent()
int getDescent()
int getMidPoint()
java.lang.String getName()
int getTextHeight()
int getLineHeight()
getLineHeight(),
getLineSpacing()int getLineSpacing()
int stringWidth(java.lang.String text)
int stringHeight(java.lang.String text,
int maxWidth)
int stringWidth(java.lang.String message,
int maxWidth)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||