|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Font
The proprites of any font implementation
| Method Summary | |
|---|---|
void |
drawString(float x,
float y,
java.lang.String text)
Draw a string to the screen |
void |
drawString(float x,
float y,
java.lang.String text,
Color col)
Draw a string to the screen |
void |
drawString(float x,
float y,
java.lang.String text,
Color col,
int startIndex,
int endIndex)
Draw part of a string to the screen. |
int |
getHeight(java.lang.String str)
Get the height of the given string |
int |
getLineHeight()
Get the maximum height of any line drawn by this font |
int |
getWidth(java.lang.String str)
Get the width of the given string |
| Method Detail |
|---|
int getWidth(java.lang.String str)
str - The string to obtain the rendered with of
int getHeight(java.lang.String str)
str - The string to obtain the rendered with of
int getLineHeight()
void drawString(float x,
float y,
java.lang.String text)
x - The x location at which to draw the stringy - The y location at which to draw the stringtext - The text to be displayed
void drawString(float x,
float y,
java.lang.String text,
Color col)
x - The x location at which to draw the stringy - The y location at which to draw the stringtext - The text to be displayedcol - The colour to draw with
void drawString(float x,
float y,
java.lang.String text,
Color col,
int startIndex,
int endIndex)
x - The x location at which to draw the stringy - The y location at which to draw the stringtext - The text to be displayedcol - The colour to draw withstartIndex - The index of the first character to drawendIndex - The index of the last character from the string to draw
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||