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 TypeMethodDescriptionintReturn the actionKeyPress int value.intReturn the actionKeyRelease int value.booleanReturn the altKey boolean value.booleanReturn the controlKey boolean value.booleanReturn the enabled boolean value.booleanReturn the isActive boolean value.Return the keyPress String value.Return the keyRelease String value.booleanReturn the shiftKey boolean value.voidsetEnabled(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, setMetadataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
getEnabledin interfaceX3DSensorNode- Returns:
- The enabled boolean value.
-
setEnabled
public void setEnabled(boolean val) Set the enabled field.- Specified by:
setEnabledin interfaceX3DSensorNode- Parameters:
val- The boolean to set.
-
getIsActive
public boolean getIsActive()Return the isActive boolean value.- Specified by:
getIsActivein interfaceX3DSensorNode- Returns:
- The isActive boolean value.
-
getKeyPress
Return the keyPress String value.- Specified by:
getKeyPressin interfaceKeySensor- Returns:
- The keyPress String value.
-
getKeyRelease
Return the keyRelease String value.- Specified by:
getKeyReleasein interfaceKeySensor- Returns:
- The keyRelease String value.
-
getActionKeyPress
public int getActionKeyPress()Return the actionKeyPress int value.- Specified by:
getActionKeyPressin interfaceKeySensor- Returns:
- The actionKeyPress int value.
-
getActionKeyRelease
public int getActionKeyRelease()Return the actionKeyRelease int value.- Specified by:
getActionKeyReleasein interfaceKeySensor- Returns:
- The actionKeyRelease int value.
-
getShiftKey
public boolean getShiftKey()Return the shiftKey boolean value.- Specified by:
getShiftKeyin interfaceKeySensor- Returns:
- The shiftKey boolean value.
-
getControlKey
public boolean getControlKey()Return the controlKey boolean value.- Specified by:
getControlKeyin interfaceKeySensor- Returns:
- The controlKey boolean value.
-
getAltKey
-