public class ToggleButtonbox extends JMEContainer implements IToggleButtonbox, IInitable
com.jme3.scene.Spatial.CullHint
INestable.IChildrenChangedListener
KEY_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, 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, 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, setWorldLocation, setZOrder
addItem, deRegisterChildrenChangedListener, getChildItems, getChildrenCount, hasChildren, registerChildrenChangedListener, removeAllItems, removeItem
initializeGeometry
public ToggleButtonbox(java.lang.String name, java.util.UUID uuid)
name
- the nameuuid
- the uuidpublic IImage getImageOff()
IToggleButtonbox
getImageOff
in interface IToggleButtonbox
public IImage getImageOn()
IToggleButtonbox
getImageOn
in interface IToggleButtonbox
public IImage getListener()
IToggleButtonbox
getListener
in interface IToggleButtonbox
public IRoundedBorder getTextBorderOff()
IToggleButtonbox
getTextBorderOff
in interface IToggleButtonbox
public IRoundedBorder getTextBorderOn()
IToggleButtonbox
getTextBorderOn
in interface IToggleButtonbox
public IMutableLabel getTextLabelOff()
IToggleButtonbox
getTextLabelOff
in interface IToggleButtonbox
public IMutableLabel getTextLabelOn()
IToggleButtonbox
getTextLabelOn
in interface IToggleButtonbox
public boolean getToggleStatus()
IToggleButtonbox
getToggleStatus
in interface IToggleButtonbox
public 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)
IToggleButtonbox
setImage
in interface IToggleButtonbox
imageOff
- 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)
IToggleButtonbox
setText
in interface IToggleButtonbox
textOff
- 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)
IItem
setVisible
in interface IItem
setVisible
in class JMEItem
isVisible
- the new visiblepublic void toggle()
IToggleButtonbox
toggle
in interface IToggleButtonbox