|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--bill.apps.wordfind.WordFind
This class controls the checking of the letter list for words.
Constructor Summary | |
WordFind()
Class creator. |
Method Summary | |
void |
findWords()
Controls the finding of words in the game grid. |
String |
getWordFile()
Word list file name getter. |
int |
getWordListSize()
Determines the number of words that are contained in the word list. |
void |
init()
|
boolean |
isValidWord(String word)
Checks if the specified word is valid. |
boolean |
isWordMakeable(String word)
Checks to see if the specified word can be spelled out using the puzzle grid. |
void |
setFoundWordsList(JList list)
|
void |
setHeight(int height)
|
void |
setLetters(String letters)
Sets up the puzzle board of letters that we will search for words. |
void |
setMaxLength(int maxLength)
|
void |
setMinLength(int minLength)
|
void |
setWidth(int width)
|
void |
setWordList(WordList wordList)
Word list setter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WordFind()
Method Detail |
public void init()
public void setWidth(int width)
public void setHeight(int height)
public void setMaxLength(int maxLength)
public void setMinLength(int minLength)
public void setFoundWordsList(JList list)
public int getWordListSize()
public void setWordList(WordList wordList)
wordList
- The word list to be usedpublic boolean isValidWord(String word)
word
- The word to check the validity of.true
if the word is valid, returns
false
otherwise.public void setLetters(String letters)
letters
- String of letters to use in setting up the board.public String getWordFile()
public boolean isWordMakeable(String word)
word
- The word to check for.true
is returned, otherwise
false is returned.
public void findWords()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |