|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimbad.sim.BaseObject
simbad.sim.Device
simbad.sim.ActuatorDevice
simbad.sim.LampActuator
public class LampActuator
A lamp which can be turn on or off or blink.
Nested Class Summary | |
---|---|
class |
LampActuator.LampActuatorJPanel
|
Field Summary | |
---|---|
private boolean |
blink
|
private javax.vecmath.Color3f |
blinkColor
|
private boolean |
blinkIsOn
|
private boolean |
changed
|
private boolean |
lampIsOn
|
private javax.media.j3d.Material |
material
|
private javax.vecmath.Color3f |
offColor
|
private javax.vecmath.Color3f |
onColor
|
Fields inherited from class simbad.sim.BaseObject |
---|
black, branchGroup, canBeTraversed, compilable, detachedFromSceneGraph, group, localBounds, rotation, rotationGroup, translation, translationGroup, white, world |
Constructor Summary | |
---|---|
LampActuator(float size)
Constructs a LampActuator of the given size. |
Method Summary | |
---|---|
(package private) void |
create3D(float size)
|
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. |
protected void |
update()
to be overriden |
Methods inherited from class simbad.sim.Device |
---|
getName, getOwner, getUpdatePerSecond, reset, setName, setOwner, setUpdateOnEachFrame, setUpdatePerSecond, update |
Methods inherited from class simbad.sim.BaseObject |
---|
addChild, addChild, attach, compile, create3D, detach, getBounds, getCanBeTraversed, getGroup, getNode, getRotationTransform, getRotationTransformGroup, getTranslation, getTranslationTransform, getTranslationTransform, resetTransforms, rotateY, setBounds, setCanBeTraversed, setColor, setWorld, translateTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private javax.media.j3d.Material material
private boolean lampIsOn
private boolean blinkIsOn
private boolean blink
private javax.vecmath.Color3f onColor
private javax.vecmath.Color3f offColor
private javax.vecmath.Color3f blinkColor
private boolean changed
Constructor Detail |
---|
public LampActuator(float size)
size
- in meterMethod Detail |
---|
protected void update()
Device
update
in class Device
void create3D(float size)
public void setOn(boolean on)
on
- true is on.public boolean getOn()
public void setBlink(boolean blink)
on
- true is on.public boolean getBlink()
public javax.swing.JPanel createInspectorPanel()
Device
createInspectorPanel
in class Device
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |