public class RubberSheetMapOverlay extends AbstractMapOverlay2 implements MapGroup.OnItemListChangedListener, AbstractCreationTask.Callback, AbstractSheet.OnLoadListener
Modifier and Type | Field and Description |
---|---|
static java.util.Set<java.lang.String> |
EXTS |
Constructor and Description |
---|
RubberSheetMapOverlay(MapView view,
RubberSheetMapGroup group) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
java.lang.String |
getIdentifier()
Returns the application unique identifier for the overlay.
|
HierarchyListItem |
getListModel(android.widget.BaseAdapter adapter,
long capabilities,
HierarchyListFilter prefFilter)
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()
|
void |
onFinished(AbstractCreationTask task,
java.util.List<AbstractSheet> sheets) |
void |
onItemAdded(MapItem item,
MapGroup group) |
void |
onItemRemoved(MapItem item,
MapGroup group) |
void |
onLoadProgress(AbstractSheet sheet,
int progress) |
void |
onLoadStateChanged(AbstractSheet sheet,
LoadState ls) |
getListModel
public RubberSheetMapOverlay(MapView view, RubberSheetMapGroup group)
public void dispose()
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, HierarchyListFilter prefFilter)
MapOverlay2
null
, the overlay
will not appear in the list.getListModel
in interface MapOverlay2
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.prefFilter
- The preferred filter to be used when constructing the list view.
This argument is a hint and may be ignored in the event that executing the
specified filter will compromise performance. A filter with an ascending alphabetic sort is
recommended as the default.null
if the
overlay should not be included in the list.public void onItemAdded(MapItem item, MapGroup group)
onItemAdded
in interface MapGroup.OnItemListChangedListener
public void onItemRemoved(MapItem item, MapGroup group)
onItemRemoved
in interface MapGroup.OnItemListChangedListener
public void onLoadStateChanged(AbstractSheet sheet, LoadState ls)
onLoadStateChanged
in interface AbstractSheet.OnLoadListener
public void onLoadProgress(AbstractSheet sheet, int progress)
onLoadProgress
in interface AbstractSheet.OnLoadListener
public void onFinished(AbstractCreationTask task, java.util.List<AbstractSheet> sheets)
onFinished
in interface AbstractCreationTask.Callback