public class RenderableChar extends java.lang.Object implements Renderable
| Constructor and Description |
|---|
RenderableChar(Font f,
char c)
Creates an instance giving the character to render using an
AbstractTransform. |
| Modifier and Type | Method and Description |
|---|---|
char |
getChar()
Gets the character to render.
|
Font |
getFont()
Gets the font used to render the character.
|
int |
getHeight()
Gets the area height to render.
|
int |
getWidth()
Gets the area width to render.
|
public RenderableChar(Font f, char c)
AbstractTransform. The renderable area is
defined by the character representation in the giving font. The font ratio (Font.setRatios(float, float))
is not used and reseted.f - the font which contains the character to renderc - the character to renderpublic Font getFont()
public char getChar()
public int getWidth()
RenderablegetWidth in interface Renderablepublic int getHeight()
RenderablegetHeight in interface Renderable