|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lessvoid.nifty.elements.render.TextRenderer.RenderFontNull
public class TextRenderer.RenderFontNull
RenderFont Null Object.
Constructor Summary | |
---|---|
TextRenderer.RenderFontNull()
|
Method Summary | |
---|---|
void |
dispose()
This RenderFont is not needed anymore. |
int |
getCharacterAdvance(char currentCharacter,
char nextCharacter,
float size)
Return the advance of the given character including kerning information. |
int |
getHeight()
The height of the font in pixel. |
int |
getWidth(String text)
Get width in pixel of given text. |
int |
getWidth(String text,
float scale)
Get width in pixel of given text. |
void |
render(String text,
int x,
int y,
Color fontColor,
float size)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextRenderer.RenderFontNull()
Method Detail |
---|
public int getHeight()
RenderFont
getHeight
in interface RenderFont
public int getWidth(String text)
RenderFont
getWidth
in interface RenderFont
text
- the text to measure.
public int getWidth(String text, float scale)
RenderFont
getWidth
in interface RenderFont
text
- the text to measure.scale
- size
public void render(String text, int x, int y, Color fontColor, float size)
public int getCharacterAdvance(char currentCharacter, char nextCharacter, float size)
RenderFont
getCharacterAdvance
in interface RenderFont
currentCharacter
- current characternextCharacter
- next charactersize
- font size
public void dispose()
RenderFont
dispose
in interface RenderFont
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |