public class SimpleKeypad extends JMEContainer implements IInitable, ISimpleKeypad
com.jme3.scene.Spatial.CullHintINestable.IChildrenChangedListenerKEY_JMEITEMDATA| Constructor and Description |
|---|
SimpleKeypad(java.lang.String name,
java.util.UUID uuid)
Instantiates a new simple keypad.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generateKeys(IStage stage,
KeyboardOutput keyboardOutput)
Generate keys.
|
float |
getHeight()
Gets the height.
|
float |
getWidth()
Gets the width.
|
void |
setButtonSizeAndSpacing(float buttonSize,
float buttonSpacing)
Sets the button size and spacing.
|
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 SimpleKeypad(java.lang.String name,
java.util.UUID uuid)
name - the nameuuid - the uuidpublic void generateKeys(IStage stage, KeyboardOutput keyboardOutput)
ISimpleKeypadgenerateKeys in interface ISimpleKeypadstage - the stagekeyboardOutput - the keyboard outputpublic float getHeight()
ISimpleKeypadgetHeight in interface ISimpleKeypadpublic float getWidth()
ISimpleKeypadgetWidth in interface ISimpleKeypadpublic void setButtonSizeAndSpacing(float buttonSize,
float buttonSpacing)
ISimpleKeypadsetButtonSizeAndSpacing in interface ISimpleKeypadbuttonSize - the button sizebuttonSpacing - the button spacingpublic void setColours(com.jme3.math.ColorRGBA bgColour,
com.jme3.math.ColorRGBA keyColour,
com.jme3.math.ColorRGBA keyBorderColour,
com.jme3.math.ColorRGBA boardBorderColour,
FontColour fontColour)
ISimpleKeypadsetColours in interface ISimpleKeypadbgColour - the bg colourkeyColour - the key colourkeyBorderColour - the key border colourboardBorderColour - the board border colourfontColour - the font colourpublic void setMovable(boolean movable)
ISimpleKeypadsetMovable in interface ISimpleKeypadmovable - the new movablepublic void setScaleLimits(float minScale,
float maxScale)
ISimpleKeypadsetScaleLimits in interface ISimpleKeypadminScale - the min scalemaxScale - the max scale