public class MapMenuWidget extends LayoutWidget
LayoutWidget.OnBackingColorChangedListener, LayoutWidget.OnDragEnabledChangedListenerAbstractParentWidget.OnWidgetListChangedListenerMapWidget2.OnWidgetSizeChangedListenerMapWidget.OnClickListener, MapWidget.OnLongPressListener, MapWidget.OnMoveListener, MapWidget.OnPressListener, MapWidget.OnUnpressListener, MapWidget.OnVisibleChangedListener, MapWidget.OnWidgetPointChangedListener| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG |
| Constructor and Description |
|---|
MapMenuWidget()
Radial menu container containing buttons and controlling layout.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getButtonSpan()
Provides expected arc length of each button.
|
float |
getButtonWidth()
Gets the default radial width of child buttons in display adjusted pixel units.
|
float |
getCoveredAngle()
Get the total angle that the radiol menu spans in degrees.
|
boolean |
getExplicitSizing()
Get whether *any* of the sizing of buttons has been explicitly set in configuration.
|
float |
getInnerRadius()
Gets the default inside radius of the radial menu in display adjusted pixel units.
|
float |
getStartAngle()
Get the angle in degrees that locates the middle of the first child button.
|
boolean |
isClockwiseWinding()
Gets the sequencing convention for the menu's child buttons.
|
boolean |
onWidgetCanBeAdded(int index,
MapWidget widget) |
void |
setButtonWidth(float width)
Sets the default radial width of child buttons in display adjusted pixel units.
|
void |
setClockwiseWinding(boolean winding)
Sets the sequencing convention for the menu's child buttons.
|
void |
setCoveredAngle(float angle)
Set the total angle that the radiol menu spans in degrees.
|
void |
setInnerRadius(float radius)
Sets the default inside radius of the radial menu in display adjusted pixel units.
|
void |
setStartAngle(float angle)
Set the angle in degrees that locates the middle of the first child button.
|
addOnBackingColorChangedListener, addOnDragEnabledChangedListener, fadeAlpha, getAlpha, getBackingColor, getDragEnabled, getNinePatchBG, isFadingAlpha, onBackingColorChanged, onDragEnabledChanged, removeOnBackingColorChangedListener, removeOnDragEnabledChangedListener, setAlpha, setBackingColor, setDragEnabled, setNinePatchBGaddChildWidget, addChildWidgetAt, addOnWidgetListChangedListener, addWidget, addWidgetAt, findWidget, getChildAt, getChildCount, getChildren, getChildWidgetAt, getChildWidgetCount, getChildWidgets, getParent, getSortedChildrenWidgets, getSortedWidgets, onActionBarToggled, onChildWidgetCanBeAdded, onWidgetAdded, onWidgetAdded, onWidgetRemoved, onWidgetRemoved, orientationChanged, removeChildWidget, removeChildWidgetAt, removeOnWidgetListChangedListener, removeWidget, removeWidgetAt, seekHit, seekWidgetHit, setZOrderaddOnWidgetSizeChangedListener, getSize, onSizeChanged, removeOnWidgetSizeChangedListener, seekHit, testHitaddOnClickListener, addOnHoverListener, addOnLongPressListener, addOnMoveListener, addOnPressListener, addOnUnpressListener, addOnVisibleChangedListener, addOnWidgetPointChangedListener, equals, getAbsolutePath, getAbsolutePosition, getAbsoluteWidgetPosition, getHeight, getMargins, getName, getPadding, getPointX, getPointY, getPropertyValue, getSize, getWidth, getZOrder, hashCode, isEnterable, isTouchable, isVisible, onClick, onClick, onHover, onLongPress, onMove, onMove, onPointChanged, onPress, onPress, onUnpress, onUnpress, onVisibleChanged, registerForwardedListener, removeOnClickListener, removeOnHoverListener, removeOnLongPressListener, removeOnMoveListener, removeOnPressListener, removeOnUnpressListener, removeOnVisibleChangedListener, removeOnWidgetPointChangedListener, setHeight, setMargins, setName, setPadding, setPadding, setParent, setPoint, setSize, setTouchable, setVisible, setWidth, unregisterForwardedListener, visitPropertyInfospublic static final java.lang.String TAG
public MapMenuWidget()
public boolean getExplicitSizing()
public float getButtonSpan()
public float getCoveredAngle()
public void setCoveredAngle(float angle)
angle - public float getStartAngle()
public void setStartAngle(float angle)
public float getInnerRadius()
public void setInnerRadius(float radius)
radius - public float getButtonWidth()
public void setButtonWidth(float width)
width - to be used to size buttons by defaultpublic boolean isClockwiseWinding()
public void setClockwiseWinding(boolean winding)
winding - desired for the layout sequencing of buttonspublic boolean onWidgetCanBeAdded(int index,
MapWidget widget)
onWidgetCanBeAdded in class AbstractParentWidget