public class SimpleKeypad extends JMEContainer implements IInitable, ISimpleKeypad
com.jme3.scene.Spatial.CullHint
INestable.IChildrenChangedListener
KEY_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, initializeGeometry
addItem, 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, toString
attachChild, 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, write
addControl, 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, worldToLocal
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
initializeGeometry
addItemListener, 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, setZOrder
addItem, deRegisterChildrenChangedListener, getChildItems, getChildrenCount, hasChildren, registerChildrenChangedListener, removeAllItems, removeItem
public SimpleKeypad(java.lang.String name, java.util.UUID uuid)
name
- the nameuuid
- the uuidpublic void generateKeys(IStage stage, KeyboardOutput keyboardOutput)
ISimpleKeypad
generateKeys
in interface ISimpleKeypad
stage
- the stagekeyboardOutput
- the keyboard outputpublic float getHeight()
ISimpleKeypad
getHeight
in interface ISimpleKeypad
public float getWidth()
ISimpleKeypad
getWidth
in interface ISimpleKeypad
public void setButtonSizeAndSpacing(float buttonSize, float buttonSpacing)
ISimpleKeypad
setButtonSizeAndSpacing
in interface ISimpleKeypad
buttonSize
- 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)
ISimpleKeypad
setColours
in interface ISimpleKeypad
bgColour
- the bg colourkeyColour
- the key colourkeyBorderColour
- the key border colourboardBorderColour
- the board border colourfontColour
- the font colourpublic void setMovable(boolean movable)
ISimpleKeypad
setMovable
in interface ISimpleKeypad
movable
- the new movablepublic void setScaleLimits(float minScale, float maxScale)
ISimpleKeypad
setScaleLimits
in interface ISimpleKeypad
minScale
- the min scalemaxScale
- the max scale