@Deprecated
public class MapWidget
extends <any>
Modifier and Type | Class and Description |
---|---|
static class |
MapWidget.Factory
Deprecated.
|
static interface |
MapWidget.OnClickListener
Deprecated.
|
static interface |
MapWidget.OnLongPressListener
Deprecated.
|
static interface |
MapWidget.OnMoveListener
Deprecated.
|
static interface |
MapWidget.OnPressListener
Deprecated.
|
static interface |
MapWidget.OnUnpressListener
Deprecated.
|
static interface |
MapWidget.OnVisibleChangedListener
Deprecated.
|
static interface |
MapWidget.OnWidgetPointChangedListener
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected float |
_height
Deprecated.
|
protected float[] |
_margin
Deprecated.
|
protected float[] |
_padding
Deprecated.
|
protected boolean |
_touchable
Deprecated.
|
protected float |
_width
Deprecated.
|
static int |
BOTTOM
Deprecated.
|
static int |
LEFT
Deprecated.
|
static int |
RIGHT
Deprecated.
|
static int |
TOP
Deprecated.
|
Constructor and Description |
---|
MapWidget()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addOnClickListener(IMapWidget.OnClickListener l)
Deprecated.
|
void |
addOnHoverListener(OnHoverListener l)
Deprecated.
|
void |
addOnLongPressListener(IMapWidget.OnLongPressListener l)
Deprecated.
|
void |
addOnMoveListener(IMapWidget.OnMoveListener l)
Deprecated.
|
void |
addOnPressListener(IMapWidget.OnPressListener l)
Deprecated.
|
void |
addOnUnpressListener(IMapWidget.OnUnpressListener l)
Deprecated.
|
void |
addOnVisibleChangedListener(IMapWidget.OnVisibleChangedListener l)
Deprecated.
|
void |
addOnWidgetPointChangedListener(IMapWidget.OnWidgetPointChangedListener l)
Deprecated.
|
void |
addOnWidgetSizeChangedListener(OnWidgetSizeChangedListener l)
Deprecated.
|
boolean |
equals(java.lang.Object o)
Deprecated.
|
java.lang.String |
getAbsolutePath()
Deprecated.
Get the absolute path to this widget, starting from the root layout
|
android.graphics.PointF |
getAbsolutePosition()
Deprecated.
Get the absolute position of this widget on the screen
|
gov.tak.platform.graphics.PointF |
getAbsoluteWidgetPosition()
Deprecated.
|
float |
getHeight()
Deprecated.
|
float[] |
getMargins()
Deprecated.
|
java.lang.String |
getName()
Deprecated.
|
float[] |
getPadding()
Deprecated.
|
AbstractParentWidget |
getParent()
Deprecated.
|
float |
getPointX()
Deprecated.
|
float |
getPointY()
Deprecated.
|
java.lang.Object |
getPropertyValue(java.lang.String property)
Deprecated.
|
float[] |
getSize(boolean incPadding,
boolean incMargin)
Deprecated.
|
float |
getWidth()
Deprecated.
|
double |
getZOrder()
Deprecated.
|
int |
hashCode()
Deprecated.
|
boolean |
isEnterable()
Deprecated.
|
boolean |
isTouchable()
Deprecated.
|
boolean |
isVisible()
Deprecated.
|
void |
onClick(gov.tak.platform.ui.MotionEvent event)
Deprecated.
|
void |
onClick(android.view.MotionEvent aEvent)
Deprecated.
|
void |
onHover(gov.tak.platform.ui.MotionEvent event)
Deprecated.
|
void |
onLongPress()
Deprecated.
|
boolean |
onMove(gov.tak.platform.ui.MotionEvent event)
Deprecated.
|
boolean |
onMove(android.view.MotionEvent aEvent)
Deprecated.
|
protected void |
onPointChanged()
Deprecated.
|
void |
onPress(gov.tak.platform.ui.MotionEvent event)
Deprecated.
|
void |
onPress(android.view.MotionEvent aEvent)
Deprecated.
|
protected void |
onSizeChanged()
Deprecated.
|
void |
onUnpress(gov.tak.platform.ui.MotionEvent event)
Deprecated.
|
void |
onUnpress(android.view.MotionEvent aEvent)
Deprecated.
|
protected void |
onVisibleChanged()
Deprecated.
|
void |
orientationChanged()
Deprecated.
Subclass to allow for a new x,y,height,width to be computed when the orientation
has changed.
|
protected <LegacyListener,Listener> |
registerForwardedListener(java.util.Collection<Listener> listeners,
java.util.Map<LegacyListener,Listener> forwarders,
LegacyListener listener,
Listener forwarder)
Deprecated.
|
void |
removeOnClickListener(IMapWidget.OnClickListener l)
Deprecated.
|
void |
removeOnHoverListener(OnHoverListener l)
Deprecated.
|
void |
removeOnLongPressListener(IMapWidget.OnLongPressListener l)
Deprecated.
|
void |
removeOnMoveListener(IMapWidget.OnMoveListener l)
Deprecated.
|
void |
removeOnPressListener(IMapWidget.OnPressListener l)
Deprecated.
|
void |
removeOnUnpressListener(IMapWidget.OnUnpressListener l)
Deprecated.
|
void |
removeOnVisibleChangedListener(IMapWidget.OnVisibleChangedListener l)
Deprecated.
|
void |
removeOnWidgetPointChangedListener(IMapWidget.OnWidgetPointChangedListener l)
Deprecated.
|
void |
removeOnWidgetSizeChangedListener(OnWidgetSizeChangedListener l)
Deprecated.
|
MapWidget |
seekHit(float x,
float y)
Deprecated.
|
IMapWidget |
seekWidgetHit(gov.tak.platform.ui.MotionEvent event,
float x,
float y)
Deprecated.
|
boolean |
setHeight(float height)
Deprecated.
|
void |
setMargins(float left,
float top,
float right,
float bottom)
Deprecated.
|
void |
setName(java.lang.String name)
Deprecated.
|
boolean |
setPadding(float p)
Deprecated.
|
boolean |
setPadding(float left,
float top,
float right,
float bottom)
Deprecated.
|
void |
setParent(IParentWidget parent)
Deprecated.
|
void |
setPoint(float x,
float y)
Deprecated.
|
boolean |
setSize(float width,
float height)
Deprecated.
Set the size of the widget
|
void |
setTouchable(boolean touchable)
Deprecated.
Set whether this widget can be touched
|
boolean |
setVisible(boolean visible)
Deprecated.
Set the visibility of this map widget
|
boolean |
setWidth(float width)
Deprecated.
|
void |
setZOrder(double zOrder)
Deprecated.
Set the ascending order of the MapItem.
|
boolean |
testHit(float x,
float y)
Deprecated.
|
protected <LegacyListener,Listener> |
unregisterForwardedListener(java.util.Collection<Listener> listeners,
java.util.Map<LegacyListener,Listener> forwarders,
LegacyListener listener)
Deprecated.
|
void |
visitPropertyInfos(<any> visitor)
Deprecated.
|
public static final int LEFT
public static final int TOP
public static final int RIGHT
public static final int BOTTOM
protected float _width
protected float _height
protected float[] _margin
protected float[] _padding
protected boolean _touchable
public java.lang.Object getPropertyValue(java.lang.String property)
public void visitPropertyInfos(<any> visitor)
public void setName(java.lang.String name)
public java.lang.String getName()
public final void addOnPressListener(IMapWidget.OnPressListener l)
public final void removeOnPressListener(IMapWidget.OnPressListener l)
public final void addOnLongPressListener(IMapWidget.OnLongPressListener l)
public final void removeOnLongPressListener(IMapWidget.OnLongPressListener l)
public final void addOnMoveListener(IMapWidget.OnMoveListener l)
public final void removeOnMoveListener(IMapWidget.OnMoveListener l)
public final void addOnUnpressListener(IMapWidget.OnUnpressListener l)
public final void removeOnUnpressListener(IMapWidget.OnUnpressListener l)
public final void addOnClickListener(IMapWidget.OnClickListener l)
public final void removeOnClickListener(IMapWidget.OnClickListener l)
public void addOnWidgetSizeChangedListener(OnWidgetSizeChangedListener l)
public void removeOnWidgetSizeChangedListener(OnWidgetSizeChangedListener l)
public void addOnHoverListener(OnHoverListener l)
public void removeOnHoverListener(OnHoverListener l)
public void onPress(android.view.MotionEvent aEvent)
public void onPress(gov.tak.platform.ui.MotionEvent event)
public void onLongPress()
public void onUnpress(android.view.MotionEvent aEvent)
public void onUnpress(gov.tak.platform.ui.MotionEvent event)
public void onClick(android.view.MotionEvent aEvent)
public void onClick(gov.tak.platform.ui.MotionEvent event)
public boolean onMove(android.view.MotionEvent aEvent)
public boolean onMove(gov.tak.platform.ui.MotionEvent event)
public void onHover(gov.tak.platform.ui.MotionEvent event)
public IMapWidget seekWidgetHit(gov.tak.platform.ui.MotionEvent event, float x, float y)
public MapWidget seekHit(float x, float y)
public boolean isEnterable()
public final void addOnWidgetPointChangedListener(IMapWidget.OnWidgetPointChangedListener l)
public final void removeOnWidgetPointChangedListener(IMapWidget.OnWidgetPointChangedListener l)
public final void addOnVisibleChangedListener(IMapWidget.OnVisibleChangedListener l)
public final void removeOnVisibleChangedListener(IMapWidget.OnVisibleChangedListener l)
public void setPoint(float x, float y)
public void orientationChanged()
public void setZOrder(double zOrder)
zOrder
- Z-order valuepublic double getZOrder()
public boolean setVisible(boolean visible)
visible
- True to show, false to hidepublic boolean isVisible()
public boolean testHit(float x, float y)
public float getPointX()
public float getPointY()
public android.graphics.PointF getAbsolutePosition()
public final gov.tak.platform.graphics.PointF getAbsoluteWidgetPosition()
public java.lang.String getAbsolutePath()
public AbstractParentWidget getParent()
public boolean setWidth(float width)
public float getWidth()
public boolean setHeight(float height)
public float getHeight()
public boolean setSize(float width, float height)
width
- Bounds widthheight
- Bounds heightpublic float[] getSize(boolean incPadding, boolean incMargin)
public void setMargins(float left, float top, float right, float bottom)
public float[] getMargins()
public boolean setPadding(float left, float top, float right, float bottom)
public boolean setPadding(float p)
public float[] getPadding()
public void setTouchable(boolean touchable)
touchable
- True if touchablepublic boolean isTouchable()
public void setParent(IParentWidget parent)
protected void onPointChanged()
protected void onVisibleChanged()
protected void onSizeChanged()
public boolean equals(java.lang.Object o)
public int hashCode()
protected <LegacyListener,Listener> void registerForwardedListener(java.util.Collection<Listener> listeners, java.util.Map<LegacyListener,Listener> forwarders, LegacyListener listener, Listener forwarder)
protected <LegacyListener,Listener> void unregisterForwardedListener(java.util.Collection<Listener> listeners, java.util.Map<LegacyListener,Listener> forwarders, LegacyListener listener)