Class Word

java.lang.Object
engine.fontMeshCreator.Word

public class Word extends Object
During the loading of a text this represents one word in the text.
  • 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

      protected void addCharacter(Character character)
      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

      protected List<Character> getCharacters()
      Returns:
      The list of characters in the word.
    • getWordWidth

      protected double getWordWidth()
      Returns:
      The width of the word in terms of screen size.