DeviceBox
, DeviceButton
, DeviceButtonGroup
, DeviceButtonSingle
, DeviceCellNum3DSlider
, DeviceCellNumXYSlider
, DeviceCheckBox
, DeviceEigenvaluesSlider
, DeviceRunControls
, DeviceSelector
, DeviceSlider
, DeviceSpinner
, DeviceThermoSelector
, DeviceThermoSlider
, DeviceThermoSliderGEMC
, DeviceToggleRadioButtons
, DeviceTrioControllerButton
, DeviceWaveVectorSlider
public abstract class Device
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
protected static class |
Device.ActionSet |
Modifier and Type | Field | Description |
---|---|---|
protected Controller |
controller |
|
protected Unit |
unit |
Constructor | Description |
---|---|
Device() |
|
Device(Controller controller) |
Modifier and Type | Method | Description |
---|---|---|
protected java.util.concurrent.CompletableFuture<java.lang.Void> |
doAction(IAction action) |
Method called by subclasses to execute the action of the device.
|
Controller |
getController() |
|
Dimension |
getDimension() |
|
IAction |
getPostAction() |
|
IAction |
getPreAction() |
Returns the action to be performed before the primary action executed
by the device.
|
Unit |
getUnit() |
|
abstract java.awt.Component |
graphic() |
|
void |
setController(Controller controller) |
|
void |
setPostAction(IAction action) |
Sets an action to be performed after the primary action executed
by the device.
|
void |
setPreAction(IAction action) |
Sets an action to be performed before the primary action executed
by the device.
|
void |
setUnit(Unit u) |
protected Unit unit
protected Controller controller
public Device()
public Device(Controller controller)
protected java.util.concurrent.CompletableFuture<java.lang.Void> doAction(IAction action)
public void setPreAction(IAction action)
public IAction getPreAction()
public void setPostAction(IAction action)
public IAction getPostAction()
public Controller getController()
public void setController(Controller controller)
controller
- The controller to set.public abstract java.awt.Component graphic()
public void setUnit(Unit u)
public Unit getUnit()
public Dimension getDimension()