|
||||||||||
| 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. |
Integer |
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. |
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 RenderFontpublic int getWidth(String text)
RenderFont
getWidth in interface RenderFonttext - the text to measure.
public void render(String text,
int x,
int y,
Color fontColor,
float size)
public Integer getCharacterAdvance(char currentCharacter,
char nextCharacter,
float size)
RenderFont
getCharacterAdvance in interface RenderFontcurrentCharacter - 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 | |||||||||