|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.hermetica.magician.fonts.GLBitmapFont
This class should be subclassed to provide class-based portable fonts that can be used in Magician.
Field Summary | |
static java.lang.String |
VERSION
Version information |
Constructor Summary | |
GLBitmapFont()
|
Method Summary | |
void |
drawCharacter(byte charToDraw)
Draws a character in the current font |
void |
drawCharacter(char charToDraw)
Draws a character in the current font |
void |
drawCharacter(int charToDraw)
Draws a character in the current font |
void |
drawString(byte[] stringToDraw)
Draws the specified string in the current font |
void |
drawString(char[] stringToDraw)
Draws the specified string in the current font |
void |
drawString(java.lang.String stringToDraw)
Draws the specified string in the current font |
int |
getCharacterHeight(char character)
Returns the height of the specified character |
int |
getCharacterWidth(char character)
Returns the width of the specified character |
GLBitmapChar |
getCharData(char character)
Returns the data for the given character in the font |
int |
getFirstChar()
Returns the first character index in the font |
GLBitmapChar[] |
getFontData()
Returns the font data for this font |
java.lang.String |
getName()
Returns the name of the font |
int |
getNumChars()
Returns the number of characters in the font |
void |
setFirstChar(int firstChar)
Sets the first character in the font |
void |
setFontData(GLBitmapChar[] fontData)
Sets the font data at the given index |
void |
setName(java.lang.String name)
Sets the name of the font |
void |
setNumChars(int numChars)
Sets the number of characters in the font |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String VERSION
Constructor Detail |
public GLBitmapFont()
Method Detail |
public final java.lang.String getName()
public final void setName(java.lang.String name)
public final GLBitmapChar[] getFontData()
public final void setFontData(GLBitmapChar[] fontData)
public final int getNumChars()
public final void setNumChars(int numChars)
public final int getFirstChar()
public final void setFirstChar(int firstChar)
public final int getCharacterWidth(char character)
public final int getCharacterHeight(char character)
public final void drawCharacter(byte charToDraw)
charToDraw
- The character in the font to drawpublic final void drawCharacter(int charToDraw)
charToDraw
- The character in the font to drawpublic void drawCharacter(char charToDraw)
charToDraw
- The character in the font to drawpublic final void drawString(java.lang.String stringToDraw)
stringToDraw
- The string to drawpublic final void drawString(char[] stringToDraw)
stringToDraw
- The string to drawpublic final void drawString(byte[] stringToDraw)
stringToDraw
- The string to drawpublic final GLBitmapChar getCharData(char character)
character
- The character to fetch the bitmap data for
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |