|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IViewCtrlAdapter
The adapter interface the model uses to communicate to the view.
| Method Summary | |
|---|---|
void |
addKeyCmd(String keyName,
ILambda cmd)
Asks the GUI to associate the given key with the given behavior. |
Component |
getCanvas()
|
int |
getCanvasHeight()
Gets the height of the GUI component upon which the balls are painted. |
int |
getCanvasWidth()
Gets the width of the GUI component upon which the balls are painted. |
IPlayer |
getSelectedPlayer()
Returns the currently selected player on the GUI. |
void |
update()
Method that is called when the model wishes the view to update. |
| Method Detail |
|---|
void update()
Component getCanvas()
int getCanvasWidth()
int getCanvasHeight()
void addKeyCmd(String keyName,
ILambda cmd)
keyName - The name of the virtual key, less the leading "VK_". See the Java documentation for "KeyEvent"cmd - The behavior to be associated with the key. The ILambda's apply() method will be called with the key's name when that key is pressed.IPlayer getSelectedPlayer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||