All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class scrobble.WordBuilder

java.lang.Object
   |
   +----scrobble.WordBuilder

public class WordBuilder
extends Object
WordBuilder.java


Variable Index

 o word
The Word that is been built.

Constructor Index

 o WordBuilder()
Creates a new WordBuilder

Method Index

 o getComponent()
Return a Panel that represents the word.
 o getWord()
Return the built Word.
 o putLetter(Letter)
Puts a letter in the WordBuilder
 o putSquarePositioner(SquarePositioner)
Puts a squarepositioner in the WordBuilder (It will be used when a player will click on a square)
 o removeElement(Object)
Remove a specified letter or a squarepositionner of the word that is been built.
 o removeElementAt(int)
Remove a letter or a squarepositionner at the position index of the word that is been built.

Variables

 o word
 Word word
The Word that is been built.

Constructors

 o WordBuilder
 public WordBuilder()
Creates a new WordBuilder

Methods

 o putLetter
 public void putLetter(Letter newLetter)
Puts a letter in the WordBuilder

Parameters:
newLetter - the new letter contained by the WordBuilder.
 o 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.
 o getWord
 public Word getWord()
Return the built Word.

 o getComponent
 public Component getComponent()
Return a Panel that represents the word.

 o 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.
 o 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