public class Buttonbox extends JMEContainer implements IButtonbox, IInitable
com.jme3.scene.Spatial.CullHint
INestable.IChildrenChangedListener
KEY_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, 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
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
initializeGeometry
public Buttonbox(java.lang.String name, java.util.UUID uuid)
name
- the nameuuid
- the uuidpublic float getHeight()
IButtonbox
getHeight
in interface IButtonbox
public IImage getListener()
IButtonbox
getListener
in interface IButtonbox
public java.lang.String getText()
IButtonbox
getText
in interface IButtonbox
public IRoundedBorder getTextBorder()
IButtonbox
getTextBorder
in interface IButtonbox
public IMutableLabel getTextLabel()
IButtonbox
getTextLabel
in interface IButtonbox
public float getWidth()
IButtonbox
getWidth
in interface IButtonbox
public 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)
IButtonbox
setImage
in interface IButtonbox
image
- 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)
IButtonbox
setText
in interface IButtonbox
text
- the textbgColour
- the bg colourborderColour
- the border colourfontColour
- the font colourwidth
- the widthheight
- the heightstage
- the stage