public class RadialMenu extends JMEContainer implements IRadialMenu, IInitable
com.jme3.scene.Spatial.CullHintINestable.IChildrenChangedListenerKEY_JMEITEMDATA| Constructor and Description |
|---|
RadialMenu(java.lang.String name,
java.util.UUID uuid)
Instantiates a new radial menu.
|
| Modifier and Type | Method and Description |
|---|---|
int |
addOption(RadialMenuOption option)
Adds the option.
|
void |
removeOption(int optionIndex)
Removes the option.
|
void |
setOptionVisibility(boolean visibility)
Sets the option visibility.
|
void |
setRadius(int radius)
Sets the radius.
|
void |
setRootItem(IItem rootItem,
IStage stage,
java.util.logging.Logger log,
com.jme3.math.ColorRGBA menuColour)
Sets the root item.
|
void |
setVisible(boolean b)
Sets the visible.
|
void |
toggleOptionVisibility()
Toggle option visibility.
|
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 RadialMenu(java.lang.String name,
java.util.UUID uuid)
name - the nameuuid - the uuidpublic int addOption(RadialMenuOption option)
IRadialMenuaddOption in interface IRadialMenuoption - the optionpublic void removeOption(int optionIndex)
IRadialMenuremoveOption in interface IRadialMenuoptionIndex - the option indexpublic void setOptionVisibility(boolean visibility)
IRadialMenusetOptionVisibility in interface IRadialMenuvisibility - the new option visibilitypublic void setRadius(int radius)
IRadialMenusetRadius in interface IRadialMenuradius - the new radiuspublic void setRootItem(IItem rootItem, IStage stage, java.util.logging.Logger log, com.jme3.math.ColorRGBA menuColour)
IRadialMenusetRootItem in interface IRadialMenurootItem - the student iconstage - the stagelog - the logmenuColour - the student colourpublic void setVisible(boolean b)
IItemsetVisible in interface IItemsetVisible in class JMEItemb - the new visiblepublic void toggleOptionVisibility()
IRadialMenutoggleOptionVisibility in interface IRadialMenu