Package engine.fontMeshCreator
Class Word
java.lang.Object
engine.fontMeshCreator.Word
During the loading of a text this represents one word in the text.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCharacter
(Character character) Adds a character to the end of the current word and increases the screen-space width of the word.protected double
-
Constructor Details
-
Word
protected Word(double fontSize) Create a new empty word.- Parameters:
fontSize
- - the font size of the text which this word is in.
-
-
Method Details
-
addCharacter
Adds a character to the end of the current word and increases the screen-space width of the word.- Parameters:
character
- - the character to be added.
-
getCharacters
- Returns:
- The list of characters in the word.
-
getWordWidth
protected double getWordWidth()- Returns:
- The width of the word in terms of screen size.
-