public class ToggleButtonbox extends JMEContainer implements IToggleButtonbox, IInitable
com.jme3.scene.Spatial.CullHintINestable.IChildrenChangedListenerKEY_JMEITEMDATA| Constructor and Description |
|---|
ToggleButtonbox(java.lang.String name,
java.util.UUID uuid)
Instantiates a new toggle buttonbox.
|
| Modifier and Type | Method and Description |
|---|---|
IImage |
getImageOff()
Gets the image off.
|
IImage |
getImageOn()
Gets the image on.
|
IImage |
getListener()
Gets the listener.
|
IRoundedBorder |
getTextBorderOff()
Gets the text border off.
|
IRoundedBorder |
getTextBorderOn()
Gets the text border on.
|
IMutableLabel |
getTextLabelOff()
Gets the text label off.
|
IMutableLabel |
getTextLabelOn()
Gets the text label on.
|
boolean |
getToggleStatus()
Gets the toggle status.
|
void |
setImage(IImage imageOff,
com.jme3.math.ColorRGBA bgColourOff,
com.jme3.math.ColorRGBA borderColourOff,
IImage imageOn,
com.jme3.math.ColorRGBA bgColourOn,
com.jme3.math.ColorRGBA borderColourOn,
float width,
float height,
IStage stage)
Sets the image.
|
void |
setText(java.lang.String textOff,
com.jme3.math.ColorRGBA bgColourOff,
com.jme3.math.ColorRGBA borderColourOff,
FontColour fontColourOff,
java.lang.String textOn,
com.jme3.math.ColorRGBA bgColourOn,
com.jme3.math.ColorRGBA borderColourOn,
FontColour fontColourOn,
float width,
float height,
IStage stage)
Sets the text.
|
void |
setVisible(boolean isVisible)
Sets the visible.
|
void |
toggle()
Toggle.
|
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, 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, setWorldLocation, setZOrderaddItem, deRegisterChildrenChangedListener, getChildItems, getChildrenCount, hasChildren, registerChildrenChangedListener, removeAllItems, removeIteminitializeGeometrypublic ToggleButtonbox(java.lang.String name,
java.util.UUID uuid)
name - the nameuuid - the uuidpublic IImage getImageOff()
IToggleButtonboxgetImageOff in interface IToggleButtonboxpublic IImage getImageOn()
IToggleButtonboxgetImageOn in interface IToggleButtonboxpublic IImage getListener()
IToggleButtonboxgetListener in interface IToggleButtonboxpublic IRoundedBorder getTextBorderOff()
IToggleButtonboxgetTextBorderOff in interface IToggleButtonboxpublic IRoundedBorder getTextBorderOn()
IToggleButtonboxgetTextBorderOn in interface IToggleButtonboxpublic IMutableLabel getTextLabelOff()
IToggleButtonboxgetTextLabelOff in interface IToggleButtonboxpublic IMutableLabel getTextLabelOn()
IToggleButtonboxgetTextLabelOn in interface IToggleButtonboxpublic boolean getToggleStatus()
IToggleButtonboxgetToggleStatus in interface IToggleButtonboxpublic void setImage(IImage imageOff, com.jme3.math.ColorRGBA bgColourOff, com.jme3.math.ColorRGBA borderColourOff, IImage imageOn, com.jme3.math.ColorRGBA bgColourOn, com.jme3.math.ColorRGBA borderColourOn, float width, float height, IStage stage)
IToggleButtonboxsetImage in interface IToggleButtonboximageOff - the image offbgColourOff - the bg colour offborderColourOff - the border colour offimageOn - the image onbgColourOn - the bg colour onborderColourOn - the border colour onwidth - the widthheight - the heightstage - the stagepublic void setText(java.lang.String textOff,
com.jme3.math.ColorRGBA bgColourOff,
com.jme3.math.ColorRGBA borderColourOff,
FontColour fontColourOff,
java.lang.String textOn,
com.jme3.math.ColorRGBA bgColourOn,
com.jme3.math.ColorRGBA borderColourOn,
FontColour fontColourOn,
float width,
float height,
IStage stage)
IToggleButtonboxsetText in interface IToggleButtonboxtextOff - the text offbgColourOff - the bg colour offborderColourOff - the border colour offfontColourOff - the font colour offtextOn - the text onbgColourOn - the bg colour onborderColourOn - the border colour onfontColourOn - the font colour onwidth - the widthheight - the heightstage - the stagepublic void setVisible(boolean isVisible)
IItemsetVisible in interface IItemsetVisible in class JMEItemisVisible - the new visiblepublic void toggle()
IToggleButtonboxtoggle in interface IToggleButtonbox