public class FahArrowWidget extends ShapeWidget implements android.content.SharedPreferences.OnSharedPreferenceChangeListener
Modifier and Type | Class and Description |
---|---|
static class |
FahArrowWidget.Item |
static interface |
FahArrowWidget.OnDesignatorPointChangedListener
A listener for the FahArrowWidget changing the designator's point.
|
static interface |
FahArrowWidget.OnFahAngleChangedListener
A listener for the FahArrowWidget changing the angle of the final attack heading.
|
static interface |
FahArrowWidget.OnFahLegChangedListener |
static interface |
FahArrowWidget.OnFahWidthChangedListener
A listener for the FahArrowWidget changing the width angle of the cone.
|
static interface |
FahArrowWidget.OnTargetPointChangedListener
A listener for the FahArrowWidget changing the targeted location.
|
static interface |
FahArrowWidget.OnTouchableChangedListener
A listener for the FahArrowWidget changing it's touchable state.
|
ShapeWidget.OnStrokeColorChangedListener, ShapeWidget.OnStrokeWeightChangedListener
MapWidget2.OnWidgetSizeChangedListener
MapWidget.Factory, MapWidget.OnClickListener, MapWidget.OnLongPressListener, MapWidget.OnMoveListener, MapWidget.OnPressListener, MapWidget.OnUnpressListener, MapWidget.OnVisibleChangedListener, MapWidget.OnWidgetPointChangedListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
addOnStrokeColorChangedListener, addOnStrokeWeightChangedListener, getStrokeColor, getStrokeWeight, removeOnStrokeColorChangedListener, removeOnStrokeWeightChangedListener, setStrokeColor, setStrokeWeight
addOnWidgetSizeChangedListener, getSize, onSizeChanged, removeOnWidgetSizeChangedListener, seekHit, seekWidgetHit
addOnClickListener, addOnHoverListener, addOnLongPressListener, addOnMoveListener, addOnPressListener, addOnUnpressListener, addOnVisibleChangedListener, addOnWidgetPointChangedListener, equals, getAbsolutePath, getAbsolutePosition, getAbsoluteWidgetPosition, getHeight, getMargins, getName, getPadding, getParent, getPointX, getPointY, getPropertyValue, getSize, getWidth, getZOrder, hashCode, isEnterable, isTouchable, isVisible, onClick, onClick, onHover, onLongPress, onMove, onMove, onPointChanged, onPress, onPress, onUnpress, onUnpress, onVisibleChanged, orientationChanged, registerForwardedListener, removeOnClickListener, removeOnHoverListener, removeOnLongPressListener, removeOnMoveListener, removeOnPressListener, removeOnUnpressListener, removeOnVisibleChangedListener, removeOnWidgetPointChangedListener, setHeight, setMargins, setName, setPadding, setPadding, setParent, setPoint, setSize, setVisible, setWidth, setZOrder, unregisterForwardedListener, visitPropertyInfos
public static final java.lang.String TAG
public void addOnTargetPointChangedListener(FahArrowWidget.OnTargetPointChangedListener l)
public void addOnFahAngleChangedListener(FahArrowWidget.OnFahAngleChangedListener l)
public void addOnFahWidthChangedListener(FahArrowWidget.OnFahWidthChangedListener l)
public void addOnFahLegChangedListener(FahArrowWidget.OnFahLegChangedListener l)
public void addOnTouchableChangedListener(FahArrowWidget.OnTouchableChangedListener l)
public void addOnDesignatorPointChangedListener(FahArrowWidget.OnDesignatorPointChangedListener l)
public void removeOnTargetPointChangedListener(FahArrowWidget.OnTargetPointChangedListener l)
public void removeOnFahAngleChangedListener(FahArrowWidget.OnFahAngleChangedListener l)
public void removeOnFahWidthChangedListener(FahArrowWidget.OnFahWidthChangedListener l)
public void removeOnFahLegChangedListener(FahArrowWidget.OnFahLegChangedListener l)
public void removeOnTouchableChangedListener(FahArrowWidget.OnTouchableChangedListener l)
public void removeOnDesignatorPointChangedListener(FahArrowWidget.OnDesignatorPointChangedListener l)
public void enableStandaloneManipulation()
public void setTargetItem(PointMapItem target)
target
- The PointMapItem that represents the target.public void setDesignatorItem(PointMapItem designator)
designator
- The PointMapItem that represents the designator.public void dispose()
public void setFahOffset(double offset)
public double getFahOffset()
public void setFahWidth(double fahWidth)
public double getTrueOffset()
public void rebuild()
public void setDrawReverse(boolean reverse)
public void setFahValues(double offset, double width)
public void setTouchable(boolean touchable)
MapWidget
setTouchable
in class MapWidget
touchable
- True if touchablepublic boolean testHit(float x, float y)
testHit
in class MapWidget2
public MapWidget seekHit(float x, float y)
seekHit
in class MapWidget2
public double getFahAngle()
public double getFahWidth()
public boolean getTouchable()
public GeoPoint getTargetPoint()
public double getAppropriateDistance()
public boolean drawReverse()
public void onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences, java.lang.String key)
onSharedPreferenceChanged
in interface android.content.SharedPreferences.OnSharedPreferenceChangeListener
public GeoPoint getDesignatorPoint()