etomica.graphics
Class DeviceControllerButton

java.lang.Object
  extended by etomica.graphics.Device
      extended by etomica.graphics.DeviceButton
          extended by etomica.graphics.DeviceControllerButton
All Implemented Interfaces:
GraphicalElement, Dimensioned

public class DeviceControllerButton
extends DeviceButton

Button that attaches to a controller to toggle its pause/resume state. Performs toggling of button label with state.


Nested Class Summary
 
Nested classes/interfaces inherited from class etomica.graphics.Device
Device.ActionSet
 
Field Summary
 
Fields inherited from class etomica.graphics.DeviceButton
button, targetAction
 
Fields inherited from class etomica.graphics.Device
controller, unit
 
Constructor Summary
DeviceControllerButton(Controller controller)
           
 
Method Summary
 IController getController()
           
 void reset()
          Sets label of button to display "Start".
 void setController(Controller c)
           
 
Methods inherited from class etomica.graphics.DeviceButton
getAction, getButton, getEtomicaInfo, getLabel, graphic, main, press, setAction, setLabel
 
Methods inherited from class etomica.graphics.Device
doAction, getDimension, getPostAction, getPreAction, getUnit, graphic, setController, setPostAction, setPreAction, setUnit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceControllerButton

public DeviceControllerButton(Controller controller)
Method Detail

setController

public final void setController(Controller c)

getController

public IController getController()
Overrides:
getController in class Device
Returns:
Returns the controller.

reset

public void reset()
Sets label of button to display "Start".