public class MenuLayoutBase extends LayoutWidget implements AbstractParentWidget.OnWidgetListChangedListener
LayoutWidget.Factory, LayoutWidget.OnBackingColorChangedListener, LayoutWidget.OnDragEnabledChangedListener
AbstractParentWidget.OnWidgetListChangedListener
MapWidget2.OnWidgetSizeChangedListener
MapWidget.OnClickListener, MapWidget.OnLongPressListener, MapWidget.OnMoveListener, MapWidget.OnPressListener, MapWidget.OnUnpressListener, MapWidget.OnVisibleChangedListener, MapWidget.OnWidgetPointChangedListener
Modifier and Type | Field and Description |
---|---|
protected com.atakmap.android.menu.MenuLayoutBase.MapActionDispatcher |
_mapActionDispatcher |
protected MapItem |
_mapItem |
static java.lang.String |
TAG |
Modifier and Type | Method and Description |
---|---|
protected void |
_addPressExpanders(IMapMenuWidget submenuWidget,
IMapMenuButtonWidget parentButton)
Controls what actions are to be taken when a MapMenuButtonWidget is pressed.
|
protected void |
_addPressExpanders(MapMenuWidget menuWidget)
Controls what actions are to be taken when a MapMenuButtonWidget is pressed.
|
protected void |
_expandPressSubmenu(IMapMenuWidget menuWidget,
IMapMenuButtonWidget parentButton) |
protected IMapMenuWidget |
_openSubmenu(IMapMenuWidget parent,
IMapMenuButtonWidget buttonWidget) |
void |
clearMenu() |
protected float |
getChildMenuRadius(IMapMenuWidget submenuWidget,
IMapMenuButtonWidget parentButton) |
MapItem |
getMapItem()
Provide the current
MapItem |
protected void |
layoutAsMenu(IMapMenuWidget menuWidget) |
protected void |
layoutAsSubmenu(IMapMenuWidget menuWidget,
IMapMenuButtonWidget parentButton) |
void |
onClick(android.view.MotionEvent event) |
void |
onFocusPointChanged(float x,
float y) |
void |
onWidgetAdded(AbstractParentWidget parent,
int index,
MapWidget child) |
void |
onWidgetRemoved(AbstractParentWidget parent,
int index,
MapWidget child) |
MapMenuWidget |
openMenuOnItem(MapItem item) |
MapMenuWidget |
openMenuOnItem(MapItem item,
android.graphics.PointF point) |
MapMenuWidget |
openMenuOnMap(GeoPoint point) |
addOnBackingColorChangedListener, addOnDragEnabledChangedListener, fadeAlpha, getAlpha, getBackingColor, getDragEnabled, getNinePatchBG, isFadingAlpha, onBackingColorChanged, onDragEnabledChanged, removeOnBackingColorChangedListener, removeOnDragEnabledChangedListener, setAlpha, setBackingColor, setDragEnabled, setNinePatchBG
addChildWidget, addChildWidgetAt, addOnWidgetListChangedListener, addWidget, addWidgetAt, findWidget, getChildAt, getChildCount, getChildren, getChildWidgetAt, getChildWidgetCount, getChildWidgets, getParent, getSortedChildrenWidgets, getSortedWidgets, onActionBarToggled, onChildWidgetCanBeAdded, onWidgetAdded, onWidgetAdded, onWidgetCanBeAdded, onWidgetRemoved, onWidgetRemoved, orientationChanged, removeChildWidget, removeChildWidgetAt, removeOnWidgetListChangedListener, removeWidget, removeWidgetAt, seekHit, seekWidgetHit, setZOrder
addOnWidgetSizeChangedListener, getSize, onSizeChanged, removeOnWidgetSizeChangedListener, seekHit, testHit
addOnClickListener, 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, 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, visitPropertyInfos
public static final java.lang.String TAG
protected MapItem _mapItem
protected com.atakmap.android.menu.MenuLayoutBase.MapActionDispatcher _mapActionDispatcher
public MapItem getMapItem()
MapItem
protected IMapMenuWidget _openSubmenu(IMapMenuWidget parent, IMapMenuButtonWidget buttonWidget)
public MapMenuWidget openMenuOnItem(MapItem item, android.graphics.PointF point)
public MapMenuWidget openMenuOnItem(MapItem item)
public void onFocusPointChanged(float x, float y)
public void clearMenu()
protected void _addPressExpanders(MapMenuWidget menuWidget)
protected void _addPressExpanders(IMapMenuWidget submenuWidget, IMapMenuButtonWidget parentButton)
protected float getChildMenuRadius(IMapMenuWidget submenuWidget, IMapMenuButtonWidget parentButton)
protected void _expandPressSubmenu(IMapMenuWidget menuWidget, IMapMenuButtonWidget parentButton)
public MapMenuWidget openMenuOnMap(GeoPoint point)
protected void layoutAsMenu(IMapMenuWidget menuWidget)
protected void layoutAsSubmenu(IMapMenuWidget menuWidget, IMapMenuButtonWidget parentButton)
public void onWidgetAdded(AbstractParentWidget parent, int index, MapWidget child)
onWidgetAdded
in interface AbstractParentWidget.OnWidgetListChangedListener
public void onWidgetRemoved(AbstractParentWidget parent, int index, MapWidget child)
onWidgetRemoved
in interface AbstractParentWidget.OnWidgetListChangedListener