@Deprecated public class RootLayoutWidget extends LayoutWidget implements android.view.View.OnTouchListener, MapWidget2.OnWidgetSizeChangedListener, android.content.SharedPreferences.OnSharedPreferenceChangeListener, android.view.ViewGroup.OnHierarchyChangeListener
Modifier and Type | Class and Description |
---|---|
static interface |
RootLayoutWidget.OnLayoutChangedListener
Deprecated.
Listener for when any root layout widgets have changed position or size
|
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 |
---|---|
static int |
BOTTOM_EDGE
Deprecated.
|
static int |
BOTTOM_LEFT
Deprecated.
|
static int |
BOTTOM_RIGHT
Deprecated.
|
static int |
LEFT_EDGE
Deprecated.
|
static int |
RIGHT_EDGE
Deprecated.
|
static int |
TOP_EDGE
Deprecated.
|
static int |
TOP_LEFT
Deprecated.
|
static int |
TOP_RIGHT
Deprecated.
|
Constructor and Description |
---|
RootLayoutWidget(MapView mapView)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addOnLayoutChangedListener(RootLayoutWidget.OnLayoutChangedListener l)
Deprecated.
Add listener for when any root widgets are moved or resized
|
LinearLayoutWidget |
getLayout(int corner)
Deprecated.
Get a layout given its corner index
|
java.util.List<android.graphics.Rect> |
getOccupiedBounds()
Deprecated.
Get the occupied boundaries taken up by views and widgets
in the root layout
|
java.util.List<android.graphics.Rect> |
getOccupiedBounds(boolean includeWidgets)
Deprecated.
Get the occupied boundaries taken up by views (and optionally widgets)
in the root layout
|
boolean |
handleMotionEvent(gov.tak.platform.ui.MotionEvent event)
Deprecated.
|
void |
onActionBarToggled(boolean showing)
Deprecated.
Note individual MapWidgets do not need to register for action bar events.
|
void |
onChildViewAdded(android.view.View parent,
android.view.View child)
Deprecated.
|
void |
onChildViewRemoved(android.view.View parent,
android.view.View child)
Deprecated.
|
void |
onMapViewResized(AtakMapView view)
Deprecated.
|
void |
onSharedPreferenceChanged(android.content.SharedPreferences sp,
java.lang.String key)
Deprecated.
|
void |
onSizeChanged()
Deprecated.
|
boolean |
onTouch(android.view.View v,
android.view.MotionEvent aEvent)
Deprecated.
|
void |
onWidgetSizeChanged(MapWidget2 widget)
Deprecated.
|
void |
removeOnLayoutChangedListener(RootLayoutWidget.OnLayoutChangedListener l)
Deprecated.
Remove layout changed listener
|
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, onChildWidgetCanBeAdded, onWidgetAdded, onWidgetAdded, onWidgetCanBeAdded, onWidgetRemoved, onWidgetRemoved, orientationChanged, removeChildWidget, removeChildWidgetAt, removeOnWidgetListChangedListener, removeWidget, removeWidgetAt, seekHit, seekWidgetHit, setZOrder
addOnWidgetSizeChangedListener, getSize, 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, 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, visitPropertyInfos
public static final int TOP_LEFT
public static final int TOP_EDGE
public static final int TOP_RIGHT
public static final int LEFT_EDGE
public static final int RIGHT_EDGE
public static final int BOTTOM_LEFT
public static final int BOTTOM_RIGHT
public static final int BOTTOM_EDGE
public RootLayoutWidget(MapView mapView)
public LinearLayoutWidget getLayout(int corner)
corner
- Corner index (TOP_LEFT, TOP_RIGHT, etc.)public java.util.List<android.graphics.Rect> getOccupiedBounds(boolean includeWidgets)
includeWidgets
- True to include widgets in the resultpublic java.util.List<android.graphics.Rect> getOccupiedBounds()
public void addOnLayoutChangedListener(RootLayoutWidget.OnLayoutChangedListener l)
l
- Listenerpublic void removeOnLayoutChangedListener(RootLayoutWidget.OnLayoutChangedListener l)
l
- Listenerpublic void onMapViewResized(AtakMapView view)
public void onSizeChanged()
onSizeChanged
in class MapWidget2
public void onChildViewAdded(android.view.View parent, android.view.View child)
onChildViewAdded
in interface android.view.ViewGroup.OnHierarchyChangeListener
public void onChildViewRemoved(android.view.View parent, android.view.View child)
onChildViewRemoved
in interface android.view.ViewGroup.OnHierarchyChangeListener
public void onWidgetSizeChanged(MapWidget2 widget)
onWidgetSizeChanged
in interface MapWidget2.OnWidgetSizeChangedListener
public void onActionBarToggled(boolean showing)
AbstractParentWidget
onActionBarToggled
in class AbstractParentWidget
showing
- true if the action bar is showingpublic void onSharedPreferenceChanged(android.content.SharedPreferences sp, java.lang.String key)
onSharedPreferenceChanged
in interface android.content.SharedPreferences.OnSharedPreferenceChangeListener
public boolean onTouch(android.view.View v, android.view.MotionEvent aEvent)
onTouch
in interface android.view.View.OnTouchListener
public boolean handleMotionEvent(gov.tak.platform.ui.MotionEvent event)