public class Buttonbox extends JMEContainer implements IButtonbox, IInitable
com.jme3.scene.Spatial.CullHintINestable.IChildrenChangedListenerKEY_JMEITEMDATA| Constructor and Description |
|---|
Buttonbox(java.lang.String name,
java.util.UUID uuid)
Instantiates a new buttonbox.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getHeight()
Gets the height.
|
IImage |
getListener()
Gets the listener.
|
java.lang.String |
getText()
Gets the text.
|
IRoundedBorder |
getTextBorder()
Gets the text border.
|
IMutableLabel |
getTextLabel()
Gets the text label.
|
float |
getWidth()
Gets the width.
|
void |
setBackgroundColour(com.jme3.math.ColorRGBA colour)
Sets the background colour.
|
void |
setImage(IImage image,
com.jme3.math.ColorRGBA bgColour,
com.jme3.math.ColorRGBA borderColour,
float width,
float height,
IStage stage)
Sets the image.
|
void |
setText(java.lang.String text,
com.jme3.math.ColorRGBA bgColour,
com.jme3.math.ColorRGBA borderColour,
FontColour fontColour,
float width,
float height,
IStage stage)
Sets the text.
|
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, waitaddItemListener, 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, removeIteminitializeGeometrypublic Buttonbox(java.lang.String name,
java.util.UUID uuid)
name - the nameuuid - the uuidpublic float getHeight()
IButtonboxgetHeight in interface IButtonboxpublic IImage getListener()
IButtonboxgetListener in interface IButtonboxpublic java.lang.String getText()
IButtonboxgetText in interface IButtonboxpublic IRoundedBorder getTextBorder()
IButtonboxgetTextBorder in interface IButtonboxpublic IMutableLabel getTextLabel()
IButtonboxgetTextLabel in interface IButtonboxpublic float getWidth()
IButtonboxgetWidth in interface IButtonboxpublic void setBackgroundColour(com.jme3.math.ColorRGBA colour)
colour - the new background colourpublic void setImage(IImage image, com.jme3.math.ColorRGBA bgColour, com.jme3.math.ColorRGBA borderColour, float width, float height, IStage stage)
IButtonboxsetImage in interface IButtonboximage - the imagebgColour - the bg colourborderColour - the border colourwidth - the widthheight - the heightstage - the stagepublic void setText(java.lang.String text,
com.jme3.math.ColorRGBA bgColour,
com.jme3.math.ColorRGBA borderColour,
FontColour fontColour,
float width,
float height,
IStage stage)
IButtonboxsetText in interface IButtonboxtext - the textbgColour - the bg colourborderColour - the border colourfontColour - the font colourwidth - the widthheight - the heightstage - the stage