public class SimpleKeyboard extends JMEContainer implements IInitable, ISimpleKeyboard
com.jme3.scene.Spatial.CullHintINestable.IChildrenChangedListenerKEY_JMEITEMDATA| Constructor and Description |
|---|
SimpleKeyboard(java.lang.String name,
java.util.UUID uuid)
Instantiates a new simple keyboard.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generateKeys(IStage stage,
KeyboardOutput keyboardOutput)
Generate keys.
|
float |
getHeight()
Gets the height.
|
IImage |
getListener()
Gets the listener.
|
float |
getWidth()
Gets the width.
|
void |
setColours(com.jme3.math.ColorRGBA bgColour,
com.jme3.math.ColorRGBA keyColour,
com.jme3.math.ColorRGBA keyBorderColour,
com.jme3.math.ColorRGBA boardBorderColour,
FontColour fontColour)
Sets the colours.
|
void |
setMovable(boolean movable)
Sets the movable.
|
void |
setScaleLimits(float minScale,
float maxScale)
Sets the scale limits.
|
getManipulableSpatial, initializeGeometryaddItem, addItemListener, behaviourAdded, centerItem, convertWorldVelocityToLocalVelocity, deRegisterChildrenChangedListener, getBehaviours, getBehaviours, getChildItems, getChildrenCount, getItemChildren, getItemListeners, getItemName, getMultiTouchDispatcher, getName, getParentItem, getRelativeLocation, getRelativeLocationOfWorldLocation, getRelativeRotation, getRelativeScale, getUUID, getWorldLocation, getWorldLocation, getWorldRotationDegrees, getZOrder, getZOrderManager, hasChildren, isVisible, registerChildrenChangedListener, removeAllItems, removeItem, removeItemListener, setInteractionEnabled, setItemListeners, setItemName, setParentItem, setRelativeLocation, setRelativeRotation, setRelativeScale, setVisible, setWorldLocation, setZOrder, toStringattachChild, attachChildAt, childChange, clone, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, read, setLodLevel, setMaterial, setModelBound, swapChildren, updateGeometricState, updateLogicalState, updateModelBound, writeaddControl, addLight, breadthFirstTraversal, center, checkCulling, clone, getControl, getControl, getCullHint, getLastFrustumIntersection, getLocalCullHint, getLocalLightList, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, localToWorld, lookAt, matches, move, move, removeControl, removeControl, removeFromParent, removeLight, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setCullHint, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setQueueBucket, setShadowMode, setUserData, worldToLocalequals, getClass, hashCode, notify, notifyAll, wait, wait, waitinitializeGeometryaddItemListener, behaviourAdded, centerItem, convertWorldVelocityToLocalVelocity, getBehaviours, getBehaviours, getItemListeners, getManipulableSpatial, getMultiTouchDispatcher, getName, getParentItem, getRelativeLocation, getRelativeLocationOfWorldLocation, getRelativeRotation, getRelativeScale, getUUID, getWorldLocation, getWorldLocation, getWorldRotationDegrees, getZOrder, getZOrderManager, isVisible, removeItemListener, setInteractionEnabled, setItemListeners, setParentItem, setRelativeLocation, setRelativeRotation, setRelativeScale, setVisible, setWorldLocation, setZOrderaddItem, deRegisterChildrenChangedListener, getChildItems, getChildrenCount, hasChildren, registerChildrenChangedListener, removeAllItems, removeItempublic SimpleKeyboard(java.lang.String name,
java.util.UUID uuid)
name - the nameuuid - the uuidpublic void generateKeys(IStage stage, KeyboardOutput keyboardOutput)
ISimpleKeyboardgenerateKeys in interface ISimpleKeyboardstage - the stagekeyboardOutput - the keyboard outputpublic float getHeight()
ISimpleKeyboardgetHeight in interface ISimpleKeyboardpublic IImage getListener()
ISimpleKeyboardgetListener in interface ISimpleKeyboardpublic float getWidth()
ISimpleKeyboardgetWidth in interface ISimpleKeyboardpublic void setColours(com.jme3.math.ColorRGBA bgColour,
com.jme3.math.ColorRGBA keyColour,
com.jme3.math.ColorRGBA keyBorderColour,
com.jme3.math.ColorRGBA boardBorderColour,
FontColour fontColour)
ISimpleKeyboardsetColours in interface ISimpleKeyboardbgColour - the bg colourkeyColour - the key colourkeyBorderColour - the key border colourboardBorderColour - the board border colourfontColour - the font colourpublic void setMovable(boolean movable)
ISimpleKeyboardsetMovable in interface ISimpleKeyboardmovable - the new movablepublic void setScaleLimits(float minScale,
float maxScale)
ISimpleKeyboardsetScaleLimits in interface ISimpleKeyboardminScale - the min scalemaxScale - the max scale