|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.util.BitMapFont
public final class BitMapFont
Can be used to use any kind of bitmap fonts.
Copyright Enough Software 2004 - 2008
| Method Summary | |
|---|---|
int |
charWidth(char c)
Retrieves the width of the given character |
int |
getFontHeight()
Retrieves the height of this bitmap font |
static BitMapFont |
getInstance(java.lang.String url)
Gets the instance of the specified font. |
BitMapFontViewer |
getViewer(java.lang.String input)
Creates a viewer object for the given string. |
static void |
removeInstance(java.lang.String url)
Removes the instance of the specified font from the internal cache. |
int |
stringWidth(java.lang.String str)
Retrieves the width of the given text |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public BitMapFontViewer getViewer(java.lang.String input)
input - the input which should be shown.
public static BitMapFont getInstance(java.lang.String url)
url - the url of the font
public static void removeInstance(java.lang.String url)
url - the url of the fontpublic int charWidth(char c)
c - the character
public int stringWidth(java.lang.String str)
str - the text
public int getFontHeight()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||