Package com.ardor3d.extension.ui
Class UIPieMenu
- All Implemented Interfaces:
IPopOver
,UIKeyHandler
,Hintable
,Savable
A special frame meant to display menu items.
-
Field Summary
Fields inherited from class com.ardor3d.extension.ui.UIContainer
_textureRenderer, STANDIN_TEXTURE_SIZE
Fields inherited from class com.ardor3d.extension.ui.UIComponent
_tooltipPopTime, _tooltipText, DEFAULT_FOREGROUND_COLOR
Fields inherited from class com.ardor3d.scenegraph.Spatial
_controllers, _delegateMap, _dirtyMark, _frustumIntersects, _listener, _localTransform, _name, _parent, _queueDistance, _renderStateList, _sceneHints, _userData, _worldBound, _worldTransform, ON_DIRTY_ATTACHED, ON_DIRTY_BOUNDING, ON_DIRTY_RENDERSTATE, ON_DIRTY_TRANSFORM, ON_DIRTY_TRANSFORM_ONLY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addItem
(UIMenuItem item) void
void
int
int
int
getSliceIndex
(UIPieMenuItem item) double
double
double
getUIComponent
(int hudX, int hudY) void
layout()
Override this to perform actual layout.void
removeItem
(UIMenuItem item) void
setCenterItem
(UIPieMenuItem item) void
void
setInnerRadius
(int radius) void
setOuterRadius
(int radius) void
setStartAngle
(double radians) void
setTotalArcLength
(double radians) void
showAt
(int x, int y) void
Ask this component to update its minimum allowed size, based on its contents.Methods inherited from class com.ardor3d.extension.ui.UIPopupMenu
close
Methods inherited from class com.ardor3d.extension.ui.UIContainer
add, attachedToHud, clearStandin, contains, contains, detachAllChildren, detachedFromHud, draw, drawComponent, fireComponentDirty, fireStyleChanged, getLayout, getMinificationFilter, isDirty, isDoClip, isDrawingStandin, isUseStandin, remove, removeAllComponents, setDirty, setDoClip, setLayout, setMinificationFilter, setUseStandin
Methods inherited from class com.ardor3d.extension.ui.UIComponent
addFontStyle, applySkin, cancelTooltipTimer, centerOn, centerOn, clearFontStyle, clearMaximumContentSize, clearMinimumContentSize, compact, fitComponentIn, gainedFocus, getBackdrop, getBorder, getCombinedOpacity, getContentHeight, getContentWidth, getCurrentOpacity, getDefaultFontFamily, getDefaultFontSize, getDefaultFontStyles, getFontStyles, getForegroundColor, getHud, getHudX, getHudY, getKeyFocusTarget, getLayoutData, getLocalComponentHeight, getLocalComponentWidth, getLocalFontStyles, getLocalForegroundColor, getLocalOpacity, getLocalX, getLocalY, getMargin, getMaximumContentHeight, getMaximumContentWidth, getMaximumLocalComponentHeight, getMaximumLocalComponentWidth, getMinimumContentHeight, getMinimumContentWidth, getMinimumLocalComponentHeight, getMinimumLocalComponentWidth, getPadding, getRelativeComponentBounds, getRelativeMaxComponentBounds, getRelativeMinComponentBounds, getTooltipPopTime, getTooltipText, getTopLevelComponent, getTotalBottom, getTotalLeft, getTotalRight, getTotalTop, hasVirginContentArea, insideMargin, isAttachedToHUD, isConsumeKeyEvents, isConsumeMouseEvents, isEnabled, isUseTransparency, isVisible, keyHeld, keyPressed, keyReleased, lostFocus, mouseClicked, mouseDeparted, mouseEntered, mouseMoved, mousePressed, mouseReleased, mouseWheel, pack, postdrawComponent, predrawComponent, requestFocus, setBackdrop, setBorder, setConsumeKeyEvents, setConsumeMouseEvents, setContentHeight, setContentSize, setContentWidth, setDefaultFontFamily, setDefaultFontSize, setDefaultFontStyles, setEnabled, setFontStyles, setForegroundColor, setHudX, setHudXY, setHudY, setKeyFocusTarget, setLayoutData, setLayoutMinimumContentSize, setLocalComponentHeight, setLocalComponentSize, setLocalComponentWidth, setLocalX, setLocalXY, setLocalY, setMargin, setMaximumContentHeight, setMaximumContentSize, setMaximumContentWidth, setMinimumContentHeight, setMinimumContentSize, setMinimumContentWidth, setOpacity, setPadding, setTooltipPopTime, setTooltipText, setUseTransparency, setVirginContentArea, setVisible, updateWorldTransform, updateWorldTransform, validateContentSize
Methods inherited from class com.ardor3d.scenegraph.Node
acceptVisitor, attachChild, attachChildAt, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getClassTag, getNumberOfChildren, hasChild, makeCopy, makeInstanced, propagateDirtyDown, read, sortLights, swapChildren, updateChildren, updateWorldBound, updateWorldRenderStates, write
Methods inherited from class com.ardor3d.scenegraph.Spatial
addController, addTranslation, addTranslation, applyWorldRenderStates, clearControllers, clearDirty, clearDirty, clearRenderState, getController, getControllerCount, getControllers, getCurrentRenderDelegate, getLastFrustumIntersection, getListener, getLocalLastFrustumIntersection, getLocalRenderState, getLocalRenderStates, getName, getParent, getParentHintable, getRenderDelegate, getRotation, getScale, getSceneHints, getTransform, getTranslation, getUserData, getWorldBound, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, isDirty, localToWorld, markDirty, markDirty, onDraw, propagateBoundToRoot, propagateDirtyUp, propagateStatesFromRoot, propageEventUp, removeController, removeController, removeFromParent, setLastFrustumIntersection, setListener, setName, setParent, setRenderDelegate, setRenderState, setRotation, setRotation, setScale, setScale, setScale, setTransform, setTranslation, setTranslation, setUserData, setWorldRotation, setWorldRotation, setWorldScale, setWorldScale, setWorldScale, setWorldTransform, setWorldTranslation, setWorldTranslation, toString, updateControllers, updateGeometricState, updateGeometricState, updateWorldRenderStates, worldToLocal
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.ardor3d.extension.ui.IPopOver
isAttachedToHUD, onDraw, updateGeometricState
-
Field Details
-
DEFAULT_INNER_RADIUS
public static final int DEFAULT_INNER_RADIUS- See Also:
-
-
Constructor Details
-
UIPieMenu
-
UIPieMenu
-
UIPieMenu
-
-
Method Details
-
showAt
public void showAt(int x, int y) - Specified by:
showAt
in interfaceIPopOver
- Overrides:
showAt
in classUIPopupMenu
-
setHud
- Specified by:
setHud
in interfaceIPopOver
- Overrides:
setHud
in classUIPopupMenu
-
getInnerRadius
public int getInnerRadius() -
getOuterRadius
public int getOuterRadius() -
setInnerRadius
public void setInnerRadius(int radius) -
setOuterRadius
public void setOuterRadius(int radius) -
getTotalArcLength
public double getTotalArcLength() -
setTotalArcLength
public void setTotalArcLength(double radians) -
getStartAngle
public double getStartAngle() -
setStartAngle
public void setStartAngle(double radians) -
getSliceRadians
public double getSliceRadians() -
addItem
- Overrides:
addItem
in classUIPopupMenu
-
removeItem
- Overrides:
removeItem
in classUIPopupMenu
-
getCenterItem
-
setCenterItem
-
clearCenterItem
public void clearCenterItem() -
clearItems
public void clearItems()- Overrides:
clearItems
in classUIPopupMenu
-
getUIComponent
- Specified by:
getUIComponent
in interfaceIPopOver
- Overrides:
getUIComponent
in classUIContainer
- Parameters:
hudX
- the x screen coordinatehudY
- the y screen coordinate- Returns:
- this component (or an appropriate child coordinate in the case of a container) if the given screen coordinates fall inside the margin area of this component.
-
layout
public void layout()Description copied from class:UIComponent
Override this to perform actual layout.- Overrides:
layout
in classUIContainer
-
updateMinimumSizeFromContents
public void updateMinimumSizeFromContents()Description copied from class:UIComponent
Ask this component to update its minimum allowed size, based on its contents.- Overrides:
updateMinimumSizeFromContents
in classUIContainer
-
getSliceIndex
-