public class SimpleKeyboard extends JMEContainer implements IInitable, ISimpleKeyboard
com.jme3.scene.Spatial.CullHint
INestable.IChildrenChangedListener
KEY_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, 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 SimpleKeyboard(java.lang.String name, java.util.UUID uuid)
name
- the nameuuid
- the uuidpublic void generateKeys(IStage stage, KeyboardOutput keyboardOutput)
ISimpleKeyboard
generateKeys
in interface ISimpleKeyboard
stage
- the stagekeyboardOutput
- the keyboard outputpublic float getHeight()
ISimpleKeyboard
getHeight
in interface ISimpleKeyboard
public IImage getListener()
ISimpleKeyboard
getListener
in interface ISimpleKeyboard
public float getWidth()
ISimpleKeyboard
getWidth
in interface ISimpleKeyboard
public void setColours(com.jme3.math.ColorRGBA bgColour, com.jme3.math.ColorRGBA keyColour, com.jme3.math.ColorRGBA keyBorderColour, com.jme3.math.ColorRGBA boardBorderColour, FontColour fontColour)
ISimpleKeyboard
setColours
in interface ISimpleKeyboard
bgColour
- the bg colourkeyColour
- the key colourkeyBorderColour
- the key border colourboardBorderColour
- the board border colourfontColour
- the font colourpublic void setMovable(boolean movable)
ISimpleKeyboard
setMovable
in interface ISimpleKeyboard
movable
- the new movablepublic void setScaleLimits(float minScale, float maxScale)
ISimpleKeyboard
setScaleLimits
in interface ISimpleKeyboard
minScale
- the min scalemaxScale
- the max scale