![]() |
Bukkit
1.4.7-R1.0
|
Represents a bitmap font drawable to a map. More...
Inheritance diagram for org.bukkit.map.MapFont:Classes | |
| class | CharacterSprite |
| Represents the graphics for a single character in a MapFont. More... | |
Public Member Functions | |
| void | setChar (char ch, CharacterSprite sprite) |
| Set the sprite for a given character. | |
| CharacterSprite | getChar (char ch) |
| Get the sprite for a given character. | |
| int | getWidth (String text) |
| Get the width of the given text as it would be rendered using this font. | |
| int | getHeight () |
| Get the height of this font. | |
| boolean | isValid (String text) |
| Check whether the given text is valid. | |
Protected Attributes | |
| boolean | malleable = true |
Represents a bitmap font drawable to a map.
Definition at line 8 of file MapFont.java.
| CharacterSprite org.bukkit.map.MapFont.getChar | ( | char | ch | ) |
Get the sprite for a given character.
| ch | The character to get the sprite for. |
Definition at line 38 of file MapFont.java.
| int org.bukkit.map.MapFont.getHeight | ( | ) |
Get the height of this font.
Definition at line 65 of file MapFont.java.
| int org.bukkit.map.MapFont.getWidth | ( | String | text | ) |
Get the width of the given text as it would be rendered using this font.
| text | The text. |
Definition at line 48 of file MapFont.java.
References org.bukkit.map.MapFont.isValid().
| boolean org.bukkit.map.MapFont.isValid | ( | String | text | ) |
Check whether the given text is valid.
| text | The text. |
Definition at line 75 of file MapFont.java.
Referenced by org.bukkit.map.MapFont.getWidth().
| void org.bukkit.map.MapFont.setChar | ( | char | ch, |
| CharacterSprite | sprite | ||
| ) |
Set the sprite for a given character.
| ch | The character to set the sprite for. |
| sprite | The CharacterSprite to set. |
| IllegalStateException | if this font is static. |
Definition at line 21 of file MapFont.java.
References org.bukkit.map.MapFont.CharacterSprite.getHeight(), and org.bukkit.map.MapFont.malleable.
|
protected |
Definition at line 12 of file MapFont.java.
Referenced by org.bukkit.map.MapFont.setChar().