public class LampActuator extends ActuatorDevice
Modifier and Type | Class and Description |
---|---|
class |
LampActuator.LampActuatorJPanel |
Constructor and Description |
---|
LampActuator(float size)
Constructs a LampActuator of the given size.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.JPanel |
createInspectorPanel()
Creates the panel associated to the device.
|
boolean |
getBlink()
Returns the lamp blink state .
|
boolean |
getOn()
Returns the lamp state .
|
void |
setBlink(boolean blink)
Sets the lamp blink state on or off.
|
void |
setOn(boolean on)
Sets the lamp state on or off.
|
getName, getUpdatePerSecond, setUpdateOnEachFrame, setUpdatePerSecond
attach, detach, getCanBeTraversed, getRotationTransform, getTranslationTransform, rotateY, setCanBeTraversed, setColor, translateTo
public LampActuator(float size)
size
- in meterpublic javax.swing.JPanel createInspectorPanel()
Device
createInspectorPanel
in class Device
public boolean getBlink()
public boolean getOn()
public void setBlink(boolean blink)
blink
- true is on.public void setOn(boolean on)
on
- true is on.