|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nak.cleaning.SimulatorGUI
public class SimulatorGUI
GUI for Simulator
| Field Summary | |
|---|---|
org.eclipse.swt.widgets.Shell |
sShell
|
| Constructor Summary | |
|---|---|
SimulatorGUI(Simulator sim)
|
|
| Method Summary | |
|---|---|
void |
changeBatteryLabel(int bLevel)
Updates the batteryLabel |
void |
changeLoadAmounLabel(int loadAmount)
Updates the loadAmounLabel |
void |
clear()
|
void |
createSShell()
This method initializes sShell |
void |
moveRobot(java.awt.Point targetP,
Direction direction)
Moves the robot to the specified point. |
void |
printOut(java.lang.String str)
Prints out the string. |
void |
run()
Redraws at intervals |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public org.eclipse.swt.widgets.Shell sShell
| Constructor Detail |
|---|
public SimulatorGUI(Simulator sim)
| Method Detail |
|---|
public void createSShell()
public void run()
run in interface java.lang.Runnablepublic void printOut(java.lang.String str)
public void clear()
public void moveRobot(java.awt.Point targetP,
Direction direction)
public void changeBatteryLabel(int bLevel)
public void changeLoadAmounLabel(int loadAmount)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||