com.jmex.angelfont
Class BitmapFont

java.lang.Object
  extended by com.jmex.angelfont.BitmapFont

public class BitmapFont
extends java.lang.Object

Represents a font within jME that is generated with the AngelCode Bitmap Font Generator

Author:
dhdd, Andreas Grabner, Momoko_Fan (enhancements), Core_Dump, dhdd (\n for new line feature)

Nested Class Summary
static class BitmapFont.Align
           
 
Constructor Summary
BitmapFont()
           
 
Method Summary
 BitmapCharacterSet getCharSet()
           
 Texture getFontTexture()
           
 float getLineHeight(StringBlock sb)
          Gets the line height of a StringBlock.
 void setCharSet(BitmapCharacterSet charSet)
           
 void setFontTexture(Texture fontTexture)
           
 float updateText(StringBlock block, QuadList target, boolean rightToLeft)
          The method updates a BitmapText and restricts it to a rectangle, given in StringBlock.textBox
 void updateTextRect(StringBlock block, QuadList target)
          The method updates a BitmapText and restricts it to a rectangle, given in StringBlock.textBox
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitmapFont

public BitmapFont()
Method Detail

updateText

public float updateText(StringBlock block,
                        QuadList target,
                        boolean rightToLeft)
The method updates a BitmapText and restricts it to a rectangle, given in StringBlock.textBox

Parameters:
block - the StringBlock that holds the necessary information for the update of the text
target - the QuadList holds all the FontQuads that each represent a character
rightToLeft - indicates weather the text should be written from right to left
Returns:

updateTextRect

public void updateTextRect(StringBlock block,
                           QuadList target)
The method updates a BitmapText and restricts it to a rectangle, given in StringBlock.textBox

Parameters:
block - the StringBlock that holds the necessary information for the update of the text
target - the QuadList holds all the FontQuads that each represent a character

getLineHeight

public float getLineHeight(StringBlock sb)
Gets the line height of a StringBlock.

Parameters:
sb -
Returns:

setCharSet

public void setCharSet(BitmapCharacterSet charSet)

getCharSet

public BitmapCharacterSet getCharSet()

getFontTexture

public Texture getFontTexture()

setFontTexture

public void setFontTexture(Texture fontTexture)


Copyright 2003-2009 jMonkeyEngine