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, setLocalDatapublic 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()
MapOverlaygetIdentifier in interface MapOverlaypublic java.lang.String getName()
MapOverlaygetName in interface MapOverlaypublic MapGroup getRootGroup()
MapOverlayMapGroup 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 MapOverlaynull if the overlay does not contain
any selectable content.public DeepMapItemQuery getQueryFunction()
getQueryFunction in interface MapOverlaypublic HierarchyListItem getListModel(android.widget.BaseAdapter adapter, long capabilities, HierarchyListItem.Sort preferredSort)
MapOverlaynull, the overlay
will not appear in the list.getListModel in interface MapOverlayadapter - 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()
HierarchyListItemgetTitle in interface HierarchyListItempublic java.lang.String getIconUri()
HierarchyListItemgetIconUri in interface HierarchyListItemgetIconUri in class AbstractHierarchyListItemnull 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)
HierarchyListItemgetAction in interface HierarchyListItemclazz - The action classnull if the specified
action is not supported for the node.public java.lang.Object getUserObject()
HierarchyListItemgetUserObject in interface HierarchyListItemnull.public android.view.View getExtraView()
HierarchyListItemgetExtraView in interface HierarchyListItemnull if there is no view.public int getChildCount()
HierarchyListItemgetChildCount in interface HierarchyListItempublic HierarchyListItem getChildAt(int index)
HierarchyListItemgetChildAt in interface HierarchyListItemindex - The indexpublic int getDescendantCount()
HierarchyListItemgetDescendantCount in interface HierarchyListItempublic boolean isChildSupported()
HierarchyListItemisChildSupported in interface HierarchyListItemisChildSupported in class AbstractHierarchyListItempublic HierarchyListItem.Sort refresh(HierarchyListItem.Sort sortHint)
HierarchyListItemrefresh in interface HierarchyListItemsortHint - The new sortpublic void setVisible(boolean visible)
public boolean isVisible()