public class ModelContentHandler extends FileOverlayContentHandler implements ILocation, GoTo, Visibility, Send, Export, Capturable
_bounds, _context, _mapView_file, _previouslyVisible, _visConduri| Modifier and Type | Method and Description |
|---|---|
void |
addFeatureBounds(Envelope e) |
void |
drawCanvas(CapturePP cap,
android.os.Bundle data)
Draw the item to the canvas
|
java.lang.String |
getContentType()
Get the content type used for removing via Import Manager
|
long |
getFeatureSetID() |
android.graphics.drawable.Drawable |
getIcon()
Get an icon that represents this content
|
int |
getIconColor()
Get the icon color filter (white by default)
|
java.lang.String |
getMIMEType()
Get the MIME type used for removing via Import Manager
|
boolean |
goTo(boolean select) |
boolean |
isActionSupported(java.lang.Class<?> action)
Check if an action with a given class is supported by this handler
Besides the "instance of" check, this call may return false if a handler
only supports a given action under other conditions
i.e.
|
boolean |
isSupported(java.lang.Class<?> target)
Check if this instance supports the specified target class type
|
boolean |
isVisible()
Check if this file is visible based on visibility condition state
|
android.os.Bundle |
preDrawCanvas(CapturePP cap)
Save forwarded points to meta data holder
These will be used later in drawCanvas
|
boolean |
promptSend()
Prepare or prompt to send this item
Usually this would bring up a
SendDialog |
boolean |
setVisibleImpl(boolean visible)
Sub-classes should override this
|
java.lang.Object |
toObjectOf(java.lang.Class<?> target,
ExportFilters filters)
Export to the specified target class type
|
accept, getBounds, getPointdeleteContent, getFile, getTitle, importContent, isConditionVisible, onVisibilityConditions, setVisiblegetIconDrawable, getMenu, getURI, getView, getViewState, setViewStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetVisiblepublic long getFeatureSetID()
public java.lang.String getContentType()
FileContentHandlergetContentType in class FileContentHandlerpublic java.lang.String getMIMEType()
FileContentHandlergetMIMEType in class FileContentHandlerpublic android.graphics.drawable.Drawable getIcon()
URIContentHandlergetIcon in class FileOverlayContentHandlerpublic int getIconColor()
URIContentHandlergetIconColor in interface URIContentgetIconColor in class URIContentHandlerpublic boolean goTo(boolean select)
goTo in interface GoTogoTo in class FileOverlayContentHandlerpublic boolean isVisible()
FileContentHandlerisVisible in interface VisibilityisVisible in class FileContentHandlerpublic boolean setVisibleImpl(boolean visible)
FileContentHandlersetVisibleImpl in class FileContentHandlerpublic boolean isActionSupported(java.lang.Class<?> action)
URIContentHandlerisActionSupported in class FileOverlayContentHandleraction - Action classpublic boolean isSupported(java.lang.Class<?> target)
ExportableisSupported in interface Exportabletarget - the target classpublic java.lang.Object toObjectOf(java.lang.Class<?> target,
ExportFilters filters)
throws FormatNotSupportedException
ExportabletoObjectOf in interface Exportabletarget - the target classfilters - Allows ExportMarshal instances to filter e.g. based
on geographic region or other criteriaFormatNotSupportedException - if there is an issue creating the object.public boolean promptSend()
SendSendDialogpromptSend in interface Sendpublic void addFeatureBounds(Envelope e)
public android.os.Bundle preDrawCanvas(CapturePP cap)
CapturablepreDrawCanvas in interface Capturablecap - Capture instance (use forward() to convert)public void drawCanvas(CapturePP cap, android.os.Bundle data)
CapturabledrawCanvas in interface Capturablecap - Canvas to draw to (use getCanvas())data - Point data saved in preDrawCanvas