public class RadialMenu extends JMEContainer implements IRadialMenu, IInitable
com.jme3.scene.Spatial.CullHint
INestable.IChildrenChangedListener
KEY_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, 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 RadialMenu(java.lang.String name, java.util.UUID uuid)
name
- the nameuuid
- the uuidpublic int addOption(RadialMenuOption option)
IRadialMenu
addOption
in interface IRadialMenu
option
- the optionpublic void removeOption(int optionIndex)
IRadialMenu
removeOption
in interface IRadialMenu
optionIndex
- the option indexpublic void setOptionVisibility(boolean visibility)
IRadialMenu
setOptionVisibility
in interface IRadialMenu
visibility
- the new option visibilitypublic void setRadius(int radius)
IRadialMenu
setRadius
in interface IRadialMenu
radius
- the new radiuspublic void setRootItem(IItem rootItem, IStage stage, java.util.logging.Logger log, com.jme3.math.ColorRGBA menuColour)
IRadialMenu
setRootItem
in interface IRadialMenu
rootItem
- the student iconstage
- the stagelog
- the logmenuColour
- the student colourpublic void setVisible(boolean b)
IItem
setVisible
in interface IItem
setVisible
in class JMEItem
b
- the new visiblepublic void toggleOptionVisibility()
IRadialMenu
toggleOptionVisibility
in interface IRadialMenu