|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectVroombaRunner
public class VroombaRunner
Tests Vroomba objects. Can run in GUI or console mode.
| Constructor Summary | |
|---|---|
VroombaRunner()
Builds a GUI window with two panes: a Room on the left and controls/output on the right. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent ae)
Invoked whenever a component is selected that has this
registered as its ActionListener. |
void |
clean()
Runs the cleaning animation for this Room. |
void |
loadNewRoom()
Loads a new Room from a user-selected file into the leftPane of the window. |
static void |
main(String[] args)
Determines whether to run in text or GUI mode. |
protected void |
refreshRoom()
Refreshes the GUI by clearing the output panel and reloading the last file loaded. |
void |
stateChanged(ChangeEvent e)
Listens for changes in the GUI. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VroombaRunner()
| Method Detail |
|---|
public static void main(String[] args)
public void actionPerformed(ActionEvent ae)
this
registered as its ActionListener.
actionPerformed in interface ActionListenerpublic void stateChanged(ChangeEvent e)
stateChanged in interface ChangeListenerpublic void clean()
public void loadNewRoom()
protected void refreshRoom()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||