public class ContourLinesOverlay extends AbstractHierarchyListItem implements MapOverlay, android.content.SharedPreferences.OnSharedPreferenceChangeListener
Modifier and Type | Class and Description |
---|---|
static class |
ContourLinesOverlay.GLOverlay |
HierarchyListItem.ComparatorSort, HierarchyListItem.Sort, HierarchyListItem.SortAlphabet, HierarchyListItem.SortAlphabetDesc, HierarchyListItem.SortDistanceFrom
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
Constructor and Description |
---|
ContourLinesOverlay(MapView mapView) |
Modifier and Type | Method and Description |
---|---|
void |
addOnLayerVisibleChangedListener(OnLayerVisibleChangedListener l) |
boolean |
checkZoom() |
void |
dispose() |
<T extends Action> |
getAction(java.lang.Class<T> clazz)
Returns an instance of the specified action that can be used to interact with the node's
underlying content.
|
HierarchyListItem |
getChildAt(int index)
Returns the child node at the specified index.
|
int |
getChildCount()
Returns the number of children that this node has.
|
void |
getContourData() |
int |
getDescendantCount()
Returns the total number of descendant nodes that this node has.
|
android.view.View |
getExtraView()
Returns the extra view, if any, associated with the node.
|
java.lang.String |
getIconUri()
Returns the URI for the icon for the node.
|
java.lang.String |
getIdentifier()
Returns the application unique identifier for the overlay.
|
HierarchyListItem |
getListModel(android.widget.BaseAdapter adapter,
long capabilities,
HierarchyListItem.Sort preferredSort)
Returns the model that may be used to build a UI to interact with the overlay.
|
DefaultMapGroup |
getMapGroup() |
java.lang.String |
getName()
Returns the name of the overlay.
|
DeepMapItemQuery |
getQueryFunction() |
MapGroup |
getRootGroup()
|
java.lang.String |
getTitle()
Returns the title to be displayed for the item.
|
java.lang.Object |
getUserObject()
Returns the user object associated with the node.
|
boolean |
isChildSupported()
Check if list item can contain children
|
boolean |
isVisible() |
void |
onMapMoved(AtakMapView view,
boolean animate) |
void |
onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences,
java.lang.String key) |
HierarchyListItem.Sort |
refresh(HierarchyListItem.Sort sort)
Refreshes this node's descendants on the specified sort.
|
void |
removeOnLayerVisibleChangedListener(OnLayerVisibleChangedListener l) |
void |
setCancelled() |
void |
setVisible(boolean visible) |
protected void |
toast(java.lang.String txt) |
getIconColor, getLocalData, getLocalData, getPreferredListIndex, getUID, setLocalData
public static final java.lang.String TAG
public ContourLinesOverlay(MapView mapView)
public void getContourData()
public void addOnLayerVisibleChangedListener(OnLayerVisibleChangedListener l)
public void removeOnLayerVisibleChangedListener(OnLayerVisibleChangedListener l)
public void setVisible(boolean visible)
public boolean isVisible()
public java.lang.String getName()
MapOverlay
getName
in interface MapOverlay
public java.lang.String getIdentifier()
MapOverlay
getIdentifier
in interface MapOverlay
public MapGroup getRootGroup()
MapOverlay
MapGroup
which will contain all
subgroups and MapItem
instances for the overlay. This
method may return null
to indicate that the overlay does not contain any content
that may be selected or interact with other map items.
getRootGroup
in interface MapOverlay
null
if the overlay does not contain
any selectable content.public DeepMapItemQuery getQueryFunction()
getQueryFunction
in interface MapOverlay
public HierarchyListItem getListModel(android.widget.BaseAdapter adapter, long capabilities, HierarchyListItem.Sort preferredSort)
MapOverlay
null
, the overlay
will not appear in the list.getListModel
in interface MapOverlay
adapter
- A reference to the adapter that will be responsible for displaying the list.
The overlay may invoke BaseAdapter.notifyDataSetChanged()
if the list content is externally modified and the adapter should update.preferredSort
- The preferred sorting order to be used when constructing the list view.
This argument is a hint and may be ignored in the event that executing the
specified sort will compromise performance. An ascending alphabetic sort is
recommended as the default.null
if the
overlay should not be included in the list.public java.lang.String getTitle()
HierarchyListItem
getTitle
in interface HierarchyListItem
public int getChildCount()
HierarchyListItem
getChildCount
in interface HierarchyListItem
public int getDescendantCount()
HierarchyListItem
getDescendantCount
in interface HierarchyListItem
public HierarchyListItem getChildAt(int index)
HierarchyListItem
getChildAt
in interface HierarchyListItem
index
- The indexpublic boolean isChildSupported()
HierarchyListItem
isChildSupported
in interface HierarchyListItem
isChildSupported
in class AbstractHierarchyListItem
public java.lang.String getIconUri()
HierarchyListItem
getIconUri
in interface HierarchyListItem
getIconUri
in class AbstractHierarchyListItem
null
if the node
has no icon, or "gone" to remove the icon space entirely.public <T extends Action> T getAction(java.lang.Class<T> clazz)
HierarchyListItem
getAction
in interface HierarchyListItem
clazz
- The action classnull
if the specified
action is not supported for the node.public java.lang.Object getUserObject()
HierarchyListItem
getUserObject
in interface HierarchyListItem
null
.public android.view.View getExtraView()
HierarchyListItem
getExtraView
in interface HierarchyListItem
null
if there is no view.public HierarchyListItem.Sort refresh(HierarchyListItem.Sort sort)
HierarchyListItem
refresh
in interface HierarchyListItem
sort
- The new sortpublic void dispose()
protected void toast(java.lang.String txt)
public void setCancelled()
public void onMapMoved(AtakMapView view, boolean animate)
public boolean checkZoom()
public void onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences, java.lang.String key)
onSharedPreferenceChanged
in interface android.content.SharedPreferences.OnSharedPreferenceChangeListener
public DefaultMapGroup getMapGroup()