|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
com.antelmann.game.puzzle.JTilePuzzle
public class JTilePuzzle
implements the GUI wrapper for the TilePuzzle
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Fields inherited from interface com.antelmann.game.JGamePlay |
|---|
gameFrameX, gameFrameY, historyFrameX, historyFrameY, legalMovesFrameX, legalMovesFrameY, prototypeCellValue, redoFrameX, redoFrameY, windowHeight, windowLocationX, windowLocationY, windowWidth |
| Constructor Summary | |
|---|---|
JTilePuzzle()
|
|
JTilePuzzle(TilePuzzle game,
Player player,
int level)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
|
AutoPlay |
getAutoPlay()
AutoPlay() returns the underlying game - to allow the calling functions to perform operations on the game itself. |
int |
getColumnCount()
|
Container |
getContainer(GameGUI frame)
getContainer() returns the GUI component used to display the game representation. |
String |
getDefaultFileExtension()
getDefaultFileExtension() defines the String used as a file type when saving files; it should correspond to getFileFlter. |
FileFilter |
getFileFilter()
getFileFilter() provides the option to filter for certain file types when saving or loading games. |
Container |
getHelp()
getHelp() is to return a component (such as JLabel, JTextArea, etc) that can be displayed if a user selects the game specific help menu from a JGameFrame. |
JMenu |
getMenu()
getMenu() provides the option to display a game specific menu within the overall JMenuBar of the JGameFrame. |
JGamePlay |
getNewGame()
getNewGame() will initialize a new game and return the JGamePlay wrapper associated with the new game. |
int |
getRowCount()
|
String |
getStatusMessage()
getStatusMessage () is used to display a game specific status message, giving some information about the running game. |
String |
getTitle()
getTitle() returns a string used in JGameFrame to be displayed in the title bar of the top JFrame. |
Object |
getValueAt(int row,
int column)
|
JGamePlay |
setGame(AutoPlay play)
setGame(AbstractGameBoard board) returns a JGamePlay object that embedds the given AutoPlay game. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JTilePuzzle()
public JTilePuzzle(TilePuzzle game,
Player player,
int level)
| Method Detail |
|---|
public String getTitle()
JGamePlay
getTitle in interface JGamePlaypublic String getStatusMessage()
JGamePlay
getStatusMessage in interface JGamePlaypublic Container getContainer(GameGUI frame)
JGamePlay
getContainer in interface JGamePlayframe - the object to be used to alter the game status
by using the interfacepublic AutoPlay getAutoPlay()
JGamePlay
getAutoPlay in interface JGamePlaypublic FileFilter getFileFilter()
JGamePlay
getFileFilter in interface JGamePlaypublic String getDefaultFileExtension()
JGamePlay
getDefaultFileExtension in interface JGamePlaypublic JMenu getMenu()
JGamePlay
getMenu in interface JGamePlaypublic JGamePlay getNewGame()
JGamePlay
getNewGame in interface JGamePlay
public JGamePlay setGame(AutoPlay play)
throws GameRuntimeException
JGamePlay
setGame in interface JGamePlayGameRuntimeExceptionpublic Container getHelp()
JGamePlay
getHelp in interface JGamePlaypublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic int getColumnCount()
getColumnCount in interface TableModelpublic int getRowCount()
getRowCount in interface TableModel
public Object getValueAt(int row,
int column)
getValueAt in interface TableModel
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||