|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.map.MapFont
public class MapFont
Represents a bitmap font drawable to a map.
Nested Class Summary | |
---|---|
static class |
MapFont.CharacterSprite
Represents the graphics for a single character in a MapFont. |
Field Summary | |
---|---|
protected boolean |
malleable
|
Constructor Summary | |
---|---|
MapFont()
|
Method Summary | |
---|---|
MapFont.CharacterSprite |
getChar(char ch)
Get the sprite for a given character. |
int |
getHeight()
Get the height of this font. |
int |
getWidth(String text)
Get the width of the given text as it would be rendered using this font. |
boolean |
isValid(String text)
Check whether the given text is valid. |
void |
setChar(char ch,
MapFont.CharacterSprite sprite)
Set the sprite for a given character. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean malleable
Constructor Detail |
---|
public MapFont()
Method Detail |
---|
public void setChar(char ch, MapFont.CharacterSprite sprite)
ch
- The character to set the sprite for.sprite
- The CharacterSprite to set.
IllegalStateException
- if this font is static.public MapFont.CharacterSprite getChar(char ch)
ch
- The character to get the sprite for.
public int getWidth(String text)
text
- The text.
public int getHeight()
public boolean isValid(String text)
text
- The text.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |