public interface KeySensor extends X3DKeyDeviceSensorNode
| Modifier and Type | Method and Description |
|---|---|
int |
getActionKeyPress()
Provide int value from outputOnly SFInt32 field named actionKeyPress.
|
int |
getActionKeyRelease()
Provide int value from outputOnly SFInt32 field named actionKeyRelease.
|
boolean |
getAltKey()
Provide boolean value from outputOnly SFBool field named altKey.
|
boolean |
getControlKey()
Provide boolean value from outputOnly SFBool field named controlKey.
|
boolean |
getEnabled()
Provide boolean value from inputOutput SFBool field named enabled.
|
boolean |
getIsActive()
Provide boolean value from outputOnly SFBool field named isActive.
|
java.lang.String |
getKeyPress()
Provide String value from outputOnly SFString field named keyPress.
|
java.lang.String |
getKeyRelease()
Provide String value from outputOnly SFString field named keyRelease.
|
X3DMetadataObject |
getMetadata()
Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
|
boolean |
getShiftKey()
Provide boolean value from outputOnly SFBool field named shiftKey.
|
KeySensor |
setCssClass(java.lang.String newValue)
Assign String value to inputOutput SFString field named class.
|
KeySensor |
setDEF(java.lang.String newValue)
Assign String value to inputOutput SFString field named DEF.
|
KeySensor |
setEnabled(boolean newValue)
Assign boolean value to inputOutput SFBool field named enabled.
|
KeySensor |
setMetadata(X3DMetadataObject newValue)
Assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
|
KeySensor |
setUSE(java.lang.String newValue)
Assign String value to inputOutput SFString field named USE.
|
int getActionKeyPress()
int getActionKeyRelease()
boolean getAltKey()
boolean getControlKey()
boolean getEnabled()
getEnabled in interface X3DKeyDeviceSensorNodegetEnabled in interface X3DSensorNodeKeySensor setEnabled(boolean newValue)
setEnabled in interface X3DKeyDeviceSensorNodesetEnabled in interface X3DSensorNodenewValue - is new value for the enabled field.KeySensor - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).boolean getIsActive()
getIsActive in interface X3DKeyDeviceSensorNodegetIsActive in interface X3DSensorNodejava.lang.String getKeyPress()
java.lang.String getKeyRelease()
X3DMetadataObject getMetadata()
getMetadata in interface X3DChildNodegetMetadata in interface X3DKeyDeviceSensorNodegetMetadata in interface X3DNodegetMetadata in interface X3DSensorNodeKeySensor setMetadata(X3DMetadataObject newValue)
setMetadata in interface X3DChildNodesetMetadata in interface X3DKeyDeviceSensorNodesetMetadata in interface X3DNodesetMetadata in interface X3DSensorNodenewValue - is new value for the metadata field.KeySensor - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).boolean getShiftKey()
KeySensor setDEF(java.lang.String newValue)
setDEF in interface X3DChildNodesetDEF in interface X3DKeyDeviceSensorNodesetDEF in interface X3DNodesetDEF in interface X3DSensorNodenewValue - is new value for the DEF field.KeySensor - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).KeySensor setUSE(java.lang.String newValue)
USE node is still an independent object, with the USE value matching the DEF value in the preceding object.
setUSE() method on this node resets all other fields to their default values (except for containerField) and also releases all child nodes.setUSE in interface X3DChildNodesetUSE in interface X3DKeyDeviceSensorNodesetUSE in interface X3DNodesetUSE in interface X3DSensorNodenewValue - is new value for the USE field.KeySensor - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).KeySensor setCssClass(java.lang.String newValue)
setCssClass in interface X3DChildNodesetCssClass in interface X3DKeyDeviceSensorNodesetCssClass in interface X3DNodesetCssClass in interface X3DSensorNodenewValue - is new value for the class field.KeySensor - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).Copyright ©2005-2017 Web3D Consortium under an open-source license, free for any use. Feedback is welcome.