public class HeatMapOverlay extends AbstractHierarchyListItem implements MapOverlay
Modifier and Type | Class and Description |
---|---|
static interface |
HeatMapOverlay.OnHeatMapColorChangedListener |
static interface |
HeatMapOverlay.OnHeatMapResolutionChangedListener |
HierarchyListItem.ComparatorSort, HierarchyListItem.Sort, HierarchyListItem.SortAlphabet, HierarchyListItem.SortAlphabetDesc, HierarchyListItem.SortDistanceFrom
Constructor and Description |
---|
HeatMapOverlay() |
Modifier and Type | Method and Description |
---|---|
void |
addOnHeatMapColorChangedListener(HeatMapOverlay.OnHeatMapColorChangedListener l) |
void |
addOnHeatMapResolutionChangedListener(HeatMapOverlay.OnHeatMapResolutionChangedListener l) |
void |
addOnLayerVisibleChangedListener(OnLayerVisibleChangedListener l) |
<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.
|
float |
getAlpha() |
HierarchyListItem |
getChildAt(int index)
Returns the child node at the specified index.
|
int |
getChildCount()
Returns the number of children that this node has.
|
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.
|
java.lang.String |
getName()
Returns the name of the overlay.
|
DeepMapItemQuery |
getQueryFunction() |
MapGroup |
getRootGroup()
|
int |
getSampleResolutionX() |
int |
getSampleResolutionY() |
float |
getSaturation() |
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.
|
float |
getValue() |
boolean |
isChildSupported()
Check if list item can contain children
|
boolean |
isVisible() |
HierarchyListItem.Sort |
refresh(HierarchyListItem.Sort sortHint)
Refreshes this node's descendants on the specified sort.
|
void |
removeOnHeatMapColorChangedListener(HeatMapOverlay.OnHeatMapColorChangedListener l) |
void |
removeOnHeatMapResolutionChangedListener(HeatMapOverlay.OnHeatMapResolutionChangedListener l) |
void |
removeOnLayerVisibleChangedListener(OnLayerVisibleChangedListener l) |
void |
setColorComponents(float saturation,
float value,
float alpha) |
void |
setResolution(int xSamples,
int ySamples) |
void |
setVisible(boolean visible) |
getIconColor, getLocalData, getLocalData, getPreferredListIndex, getUID, setLocalData
public void addOnLayerVisibleChangedListener(OnLayerVisibleChangedListener l)
public void removeOnLayerVisibleChangedListener(OnLayerVisibleChangedListener l)
public void addOnHeatMapResolutionChangedListener(HeatMapOverlay.OnHeatMapResolutionChangedListener l)
public void removeOnHeatMapResolutionChangedListener(HeatMapOverlay.OnHeatMapResolutionChangedListener l)
public void addOnHeatMapColorChangedListener(HeatMapOverlay.OnHeatMapColorChangedListener l)
public void removeOnHeatMapColorChangedListener(HeatMapOverlay.OnHeatMapColorChangedListener l)
public float getSaturation()
public float getValue()
public float getAlpha()
public void setColorComponents(float saturation, float value, float alpha)
public int getSampleResolutionX()
public int getSampleResolutionY()
public void setResolution(int xSamples, int ySamples)
public java.lang.String getIdentifier()
MapOverlay
getIdentifier
in interface MapOverlay
public java.lang.String getName()
MapOverlay
getName
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 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 int getChildCount()
HierarchyListItem
getChildCount
in interface HierarchyListItem
public HierarchyListItem getChildAt(int index)
HierarchyListItem
getChildAt
in interface HierarchyListItem
index
- The indexpublic int getDescendantCount()
HierarchyListItem
getDescendantCount
in interface HierarchyListItem
public boolean isChildSupported()
HierarchyListItem
isChildSupported
in interface HierarchyListItem
isChildSupported
in class AbstractHierarchyListItem
public HierarchyListItem.Sort refresh(HierarchyListItem.Sort sortHint)
HierarchyListItem
refresh
in interface HierarchyListItem
sortHint
- The new sortpublic void setVisible(boolean visible)
public boolean isVisible()