public class BullseyeDropDownReceiver extends DropDownReceiver implements DropDown.OnStateListener, Shape.OnPointsChangedListener, android.view.View.OnClickListener, MapItem.OnGroupChangedListener, HashtagManager.OnUpdateListener
Modifier and Type | Field and Description |
---|---|
protected UnitPreferences |
_bPrefs |
protected android.content.Context |
_context |
protected MapView |
_mapView |
protected UnitPreferences |
_rPrefs |
protected AngleOverlayShape |
aos |
protected android.view.ViewGroup |
bullseyeLayout |
protected android.widget.Spinner |
bUnits |
protected Marker |
centerMarker |
protected static java.text.DecimalFormat |
DEC_FMT_2 |
static java.lang.String |
DROPDOWN_TOOL_IDENTIFIER |
protected ExtraDetailsLayout |
extrasLayout |
protected AutoSizeAngleOverlayShape.OnPropertyChangedListener |
propertyChangedListener |
protected RangeCircle |
rabCircle |
protected android.content.Intent |
reopenIntent |
static java.lang.String |
RINGS_GROUP_PREFIX |
protected android.widget.Spinner |
rUnits |
static double |
STROKE_WEIGHT |
static int |
STYLE |
protected MapGroup |
subGroup |
protected android.widget.EditText |
title |
protected UnitsArrayAdapter |
unitsAdapter |
protected static Span[] |
unitsArray |
DROPDOWN_STATE_FULLSCREEN, DROPDOWN_STATE_NONE, DROPDOWN_STATE_NORMAL, FIVE_EIGTHS_HEIGHT, FIVE_EIGTHS_WIDTH, FIVE_TWELFTHS_HEIGHT, FIVE_TWELFTHS_WIDTH, FULL_HEIGHT, FULL_WIDTH, HALF_HEIGHT, HALF_WIDTH, HANDLE_THICKNESS_LANDSCAPE, HANDLE_THICKNESS_PORTRAIT, NO_HEIGHT, NO_WIDTH, QUARTER_SCREEN, SEVEN_SIXTEENTH_WIDTH, THIRD_HEIGHT, THIRD_WIDTH, THREE_EIGHTHS_HEIGHT, THREE_EIGHTHS_WIDTH, TWO_THIRDS_HEIGHT, TWO_THIRDS_WIDTH
Constructor and Description |
---|
BullseyeDropDownReceiver(MapView mapView) |
Modifier and Type | Method and Description |
---|---|
protected RangeCircle |
buildRings(Marker centerMarker,
AngleOverlayShape aos)
Build the rings to display for a Bullseye
|
protected void |
createLayout()
Set up the view of the dropdown given the current AngleOverlayShape
|
protected void |
disposeImpl()
Any drop down specific disposal implementation that is performed during the
disposal of a drop down.
|
void |
onClick(android.view.View v) |
void |
onDropDownClose() |
void |
onDropDownSelectionRemoved() |
void |
onDropDownSizeChanged(double width,
double height) |
void |
onDropDownVisible(boolean v) |
void |
onHashtagsUpdate(HashtagContent content) |
void |
onItemAdded(MapItem item,
MapGroup group) |
void |
onItemRemoved(MapItem item,
MapGroup group) |
void |
onPointsChanged(Shape s) |
void |
onReceive(android.content.Context ignoreContext,
android.content.Intent intent) |
protected void |
openBullseye() |
protected void |
refresh() |
void |
toggleBearing(android.content.Intent intent)
Toggle if the bearing of the Bullseye is oriented about
true or magnetic north
|
void |
toggleDirection(android.content.Intent intent)
Toggle if the Bullseye labels are from edge to center or center to edge
|
void |
toggleRings(android.content.Intent intent)
Toggle if the Bullseye's range rings are shown or not
|
_showDropDown, callResize, closeDropDown, dispose, dropDownAlreadyExists, getAssociationKey, getBackStackCount, getDropDown, getMapView, hideDropDown, isClosed, isPortrait, isRetained, isTablet, isTransient, isVisible, onBackButtonPressed, onStateRequested, resize, setAssociationKey, setRetain, setSelected, setSelected, setSelected, setTransient, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, unhideDropDown
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
protected static final java.text.DecimalFormat DEC_FMT_2
public static final double STROKE_WEIGHT
public static final int STYLE
protected static final Span[] unitsArray
public static final java.lang.String DROPDOWN_TOOL_IDENTIFIER
public static final java.lang.String RINGS_GROUP_PREFIX
protected AngleOverlayShape aos
protected final MapView _mapView
protected final android.content.Context _context
protected final UnitPreferences _rPrefs
protected final UnitPreferences _bPrefs
protected Marker centerMarker
protected MapGroup subGroup
protected RangeCircle rabCircle
protected android.view.ViewGroup bullseyeLayout
protected android.widget.Spinner bUnits
protected android.widget.Spinner rUnits
protected android.widget.EditText title
protected UnitsArrayAdapter unitsAdapter
protected android.content.Intent reopenIntent
protected ExtraDetailsLayout extrasLayout
protected final AutoSizeAngleOverlayShape.OnPropertyChangedListener propertyChangedListener
public BullseyeDropDownReceiver(MapView mapView)
public void onReceive(android.content.Context ignoreContext, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver
protected void openBullseye()
public void toggleRings(android.content.Intent intent)
intent
- - the intent with the relevant infopublic void toggleDirection(android.content.Intent intent)
intent
- - the intent with the relevant infopublic void toggleBearing(android.content.Intent intent)
intent
- - the intent with the relevant infoprotected RangeCircle buildRings(Marker centerMarker, AngleOverlayShape aos)
protected void createLayout()
protected void refresh()
public void onClick(android.view.View v)
onClick
in interface android.view.View.OnClickListener
public void onDropDownSelectionRemoved()
onDropDownSelectionRemoved
in interface DropDown.OnStateListener
public void onDropDownClose()
onDropDownClose
in interface DropDown.OnStateListener
public void onDropDownSizeChanged(double width, double height)
onDropDownSizeChanged
in interface DropDown.OnStateListener
public void onDropDownVisible(boolean v)
onDropDownVisible
in interface DropDown.OnStateListener
protected void disposeImpl()
DropDownReceiver
disposeImpl
in class DropDownReceiver
public void onPointsChanged(Shape s)
onPointsChanged
in interface Shape.OnPointsChangedListener
public void onItemAdded(MapItem item, MapGroup group)
onItemAdded
in interface MapItem.OnGroupChangedListener
public void onItemRemoved(MapItem item, MapGroup group)
onItemRemoved
in interface MapItem.OnGroupChangedListener
public void onHashtagsUpdate(HashtagContent content)
onHashtagsUpdate
in interface HashtagManager.OnUpdateListener