All Packages Class Hierarchy This Package Previous Next Index
Class scrobble.WordBuilder
java.lang.Object
|
+----scrobble.WordBuilder
- public class WordBuilder
- extends Object
WordBuilder.java
-
word
- The Word that is been built.
-
WordBuilder()
- Creates a new WordBuilder
-
getComponent()
- Return a Panel that represents the word.
-
getWord()
- Return the built Word.
-
putLetter(Letter)
- Puts a letter in the WordBuilder
-
putSquarePositioner(SquarePositioner)
- Puts a squarepositioner in the WordBuilder (It will be used when a player will click on a square)
-
removeElement(Object)
- Remove a specified letter or a squarepositionner of the word that is been built.
-
removeElementAt(int)
- Remove a letter or a squarepositionner at the position index of the word that is been built.
word
Word word
- The Word that is been built.
WordBuilder
public WordBuilder()
- Creates a new WordBuilder
putLetter
public void putLetter(Letter newLetter)
- Puts a letter in the WordBuilder
- Parameters:
- newLetter - the new letter contained by the WordBuilder.
putSquarePositioner
public void putSquarePositioner(SquarePositioner newSquare)
- Puts a squarepositioner in the WordBuilder (It will be used when a player will click on a square)
- Parameters:
- newSquare - the new squarepositioner contained by the WordBuilder.
getWord
public Word getWord()
- Return the built Word.
getComponent
public Component getComponent()
- Return a Panel that represents the word.
removeElementAt
public void removeElementAt(int index)
- Remove a letter or a squarepositionner at the position index of the word that is been built.
- Parameters:
- index - the index of the letter or the squarepositionner to be removed.
removeElement
public void removeElement(Object object)
- Remove a specified letter or a squarepositionner of the word that is been built.
- Parameters:
- object - the object of the letter or the squarepositionner to be removed.
All Packages Class Hierarchy This Package Previous Next Index