public class RouteElevationBroadcastReceiver extends DropDownReceiver implements DropDown.OnStateListener, MapItem.OnGroupChangedListener, Route.OnRoutePointsChangedListener, android.content.SharedPreferences.OnSharedPreferenceChangeListener
Modifier and Type | Field and Description |
---|---|
protected android.content.Context |
_context |
protected android.view.LayoutInflater |
_inflater |
protected static RouteElevationBroadcastReceiver |
_instance |
protected MapView |
_mapView |
protected android.content.Intent |
_onCloseIntent |
protected Route |
_route |
protected java.lang.String |
_title |
protected AnalysisPanelPresenter |
analysisPanelPresenter |
protected AnalysisPanelView |
analysisPanelView |
protected static int |
orient |
protected android.content.SharedPreferences |
prefs |
protected com.atakmap.android.routes.elevation.RouteElevationPresenter |
routeElevationPresenter |
protected RouteElevationView |
routeElevationView |
protected android.content.BroadcastReceiver |
routePointsChangedReceiver |
protected SeekerBarPanelPresenter |
seekerBarPanelPresenter |
protected SeekerBarPanelView |
seekerBarPanelView |
protected SelfPresenter |
selfPresenter |
static java.lang.String |
TAG |
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
Modifier | Constructor and Description |
---|---|
protected |
RouteElevationBroadcastReceiver(MapView mapView,
MapGroup mapGroup) |
Modifier and Type | Method and Description |
---|---|
protected void |
_checkOrientation()
Check the orientation to see if we should update which layout the RouteElevationView uses.
|
void |
disposeImpl()
Any drop down specific disposal implementation that is performed during the
disposal of a drop down.
|
static RouteElevationBroadcastReceiver |
getInstance() |
static void |
initialize(MapView mapView,
MapGroup mapGroup) |
protected void |
initViews() |
boolean |
isDropDownOpen() |
void |
onDropDownClose() |
void |
onDropDownSelectionRemoved() |
void |
onDropDownSizeChanged(double width,
double height) |
void |
onDropDownVisible(boolean v) |
void |
onItemAdded(MapItem item,
MapGroup group) |
void |
onItemRemoved(MapItem item,
MapGroup group) |
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
void |
onRoutePointsChanged(Route route) |
void |
onSharedPreferenceChanged(android.content.SharedPreferences prefs,
java.lang.String key) |
void |
openDropDown() |
void |
openDropDown(android.content.Intent onCloseIntent) |
void |
setRoute(Route route) |
void |
setRoute(Route route,
java.lang.Boolean bInterpolateElevations) |
void |
setTitle(java.lang.String title) |
void |
startProcessing()
This method bootstraps the elevation profile process.
|
void |
stopProcessing() |
_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
public static final java.lang.String TAG
protected static RouteElevationBroadcastReceiver _instance
protected final MapView _mapView
protected final android.content.Context _context
protected final android.view.LayoutInflater _inflater
protected Route _route
protected java.lang.String _title
protected static int orient
protected RouteElevationView routeElevationView
protected SeekerBarPanelView seekerBarPanelView
protected AnalysisPanelView analysisPanelView
protected AnalysisPanelPresenter analysisPanelPresenter
protected final com.atakmap.android.routes.elevation.RouteElevationPresenter routeElevationPresenter
protected final SeekerBarPanelPresenter seekerBarPanelPresenter
protected final SelfPresenter selfPresenter
protected final android.content.SharedPreferences prefs
protected android.content.Intent _onCloseIntent
protected final android.content.BroadcastReceiver routePointsChangedReceiver
public static RouteElevationBroadcastReceiver getInstance()
protected void initViews()
public void disposeImpl()
DropDownReceiver
disposeImpl
in class DropDownReceiver
public void onDropDownSelectionRemoved()
onDropDownSelectionRemoved
in interface DropDown.OnStateListener
public void onReceive(android.content.Context context, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver
public void onDropDownVisible(boolean v)
onDropDownVisible
in interface DropDown.OnStateListener
public void onDropDownSizeChanged(double width, double height)
onDropDownSizeChanged
in interface DropDown.OnStateListener
public void onDropDownClose()
onDropDownClose
in interface DropDown.OnStateListener
public void onSharedPreferenceChanged(android.content.SharedPreferences prefs, java.lang.String key)
onSharedPreferenceChanged
in interface android.content.SharedPreferences.OnSharedPreferenceChangeListener
public void setRoute(Route route, java.lang.Boolean bInterpolateElevations)
public void setRoute(Route route)
public void setTitle(java.lang.String title)
public void startProcessing()
public void stopProcessing()
public void openDropDown(android.content.Intent onCloseIntent)
public void openDropDown()
public boolean isDropDownOpen()
public void onRoutePointsChanged(Route route)
onRoutePointsChanged
in interface Route.OnRoutePointsChangedListener
public void onItemAdded(MapItem item, MapGroup group)
onItemAdded
in interface MapItem.OnGroupChangedListener
public void onItemRemoved(MapItem item, MapGroup group)
onItemRemoved
in interface MapItem.OnGroupChangedListener
protected void _checkOrientation()