org.nak.cleaner
Class SimulatorGUI

java.lang.Object
  extended by org.nak.cleaner.SimulatorGUI
All Implemented Interfaces:
java.lang.Runnable

public class SimulatorGUI
extends java.lang.Object
implements java.lang.Runnable

GUI for Simulator

Version:
1.2 otherRobot -> Obstacle delete updateThread
Author:
h-nakagawa

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

sShell

public org.eclipse.swt.widgets.Shell sShell
Constructor Detail

SimulatorGUI

public SimulatorGUI(Simulator sim)
Method Detail

createSShell

public void createSShell()
This method initializes sShell


run

public void run()
Redraws at intervals

Specified by:
run in interface java.lang.Runnable

printOut

public void printOut(java.lang.String str)
Prints out the string.


clear

public void clear()

moveRobot

public void moveRobot(java.awt.Point targetP,
                      Direction direction)
Moves the robot to the specified point.


changeBatteryLabel

public void changeBatteryLabel(int bLevel)
Updates the batteryLabel


changeLoadAmounLabel

public void changeLoadAmounLabel(int loadAmount)
Updates the loadAmounLabel