Class SAIKeySensor
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.keydevicesensor.SAIKeySensor
- All Implemented Interfaces:
KeySensor
,X3DChildNode
,X3DKeyDeviceSensorNode
,X3DNode
,X3DSensorNode
A concrete implementation of the KeySensor node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAIKeySensor
(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionint
Return the actionKeyPress int value.int
Return the actionKeyRelease int value.boolean
Return the altKey boolean value.boolean
Return the controlKey boolean value.boolean
Return the enabled boolean value.boolean
Return the isActive boolean value.Return the keyPress String value.Return the keyRelease String value.boolean
Return the shiftKey boolean value.void
setEnabled
(boolean val) Set the enabled field.Methods inherited from class org.web3d.vrml.scripting.external.sai.SAINode
dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAIKeySensor
public SAIKeySensor(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor- Parameters:
queue
-
-
-
Method Details
-
getEnabled
public boolean getEnabled()Return the enabled boolean value.- Specified by:
getEnabled
in interfaceX3DSensorNode
- Returns:
- The enabled boolean value.
-
setEnabled
public void setEnabled(boolean val) Set the enabled field.- Specified by:
setEnabled
in interfaceX3DSensorNode
- Parameters:
val
- The boolean to set.
-
getIsActive
public boolean getIsActive()Return the isActive boolean value.- Specified by:
getIsActive
in interfaceX3DSensorNode
- Returns:
- The isActive boolean value.
-
getKeyPress
Return the keyPress String value.- Specified by:
getKeyPress
in interfaceKeySensor
- Returns:
- The keyPress String value.
-
getKeyRelease
Return the keyRelease String value.- Specified by:
getKeyRelease
in interfaceKeySensor
- Returns:
- The keyRelease String value.
-
getActionKeyPress
public int getActionKeyPress()Return the actionKeyPress int value.- Specified by:
getActionKeyPress
in interfaceKeySensor
- Returns:
- The actionKeyPress int value.
-
getActionKeyRelease
public int getActionKeyRelease()Return the actionKeyRelease int value.- Specified by:
getActionKeyRelease
in interfaceKeySensor
- Returns:
- The actionKeyRelease int value.
-
getShiftKey
public boolean getShiftKey()Return the shiftKey boolean value.- Specified by:
getShiftKey
in interfaceKeySensor
- Returns:
- The shiftKey boolean value.
-
getControlKey
public boolean getControlKey()Return the controlKey boolean value.- Specified by:
getControlKey
in interfaceKeySensor
- Returns:
- The controlKey boolean value.
-
getAltKey
-