public class DeviceTrioControllerButton extends Device
Modifier and Type | Class | Description |
---|---|---|
protected class |
DeviceTrioControllerButton.ComponentEventControllerButton |
Inner class that catches action of simulation panel
|
Device.ActionSet
controller, unit
Constructor | Description |
---|---|
DeviceTrioControllerButton(Simulation simulation,
Space space,
Controller controller) |
Contructs device with buttons that affect the given simulation.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.ArrayList<DataPump> |
getDataStreamPumps() |
Returns an ArrayList of DataPumps that are headers for the data streams.
|
DeviceButton |
getReinitButton() |
|
DeviceButton |
getResetAveragesButton() |
|
DeviceRunControls |
getRunControls() |
|
java.lang.String |
getShape() |
|
SimulationRestart |
getSimRestart() |
|
Simulation |
getSimulation() |
Returns the simulation affected by the buttons.
|
java.awt.Component |
graphic() |
Returns the JPanel that contains the buttons.
|
static void |
main(java.lang.String[] args) |
main method to show how to work with this class
|
void |
reset() |
Sets controller toggle button to read "Start"
|
void |
setShape(java.lang.String s) |
Sets display shape of the device.
|
doAction, getController, getDimension, getPostAction, getPreAction, getUnit, setController, setPostAction, setPreAction, setUnit
public DeviceTrioControllerButton(Simulation simulation, Space space, Controller controller)
public java.util.ArrayList<DataPump> getDataStreamPumps()
public Simulation getSimulation()
public java.awt.Component graphic()
public DeviceRunControls getRunControls()
public DeviceButton getReinitButton()
public DeviceButton getResetAveragesButton()
public void reset()
public void setShape(java.lang.String s)
public java.lang.String getShape()
public SimulationRestart getSimRestart()
public static void main(java.lang.String[] args)