public class ModelContentHandler extends FileOverlayContentHandler implements ILocation, GoTo, Visibility, Send, Export, Capturable
_bounds, _context, _mapView
_file, _previouslyVisible, _visCond
uri
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, getPoint
deleteContent, getFile, getTitle, importContent, isConditionVisible, onVisibilityConditions, setVisible
getIconDrawable, getMenu, getURI, getView, getViewState, setViewState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setVisible
public long getFeatureSetID()
public java.lang.String getContentType()
FileContentHandler
getContentType
in class FileContentHandler
public java.lang.String getMIMEType()
FileContentHandler
getMIMEType
in class FileContentHandler
public android.graphics.drawable.Drawable getIcon()
URIContentHandler
getIcon
in class FileOverlayContentHandler
public int getIconColor()
URIContentHandler
getIconColor
in interface URIContent
getIconColor
in class URIContentHandler
public boolean goTo(boolean select)
goTo
in interface GoTo
goTo
in class FileOverlayContentHandler
public boolean isVisible()
FileContentHandler
isVisible
in interface Visibility
isVisible
in class FileContentHandler
public boolean setVisibleImpl(boolean visible)
FileContentHandler
setVisibleImpl
in class FileContentHandler
public boolean isActionSupported(java.lang.Class<?> action)
URIContentHandler
isActionSupported
in class FileOverlayContentHandler
action
- Action classpublic boolean isSupported(java.lang.Class<?> target)
Exportable
isSupported
in interface Exportable
target
- the target classpublic java.lang.Object toObjectOf(java.lang.Class<?> target, ExportFilters filters) throws FormatNotSupportedException
Exportable
toObjectOf
in interface Exportable
target
- 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()
Send
SendDialog
promptSend
in interface Send
public void addFeatureBounds(Envelope e)
public android.os.Bundle preDrawCanvas(CapturePP cap)
Capturable
preDrawCanvas
in interface Capturable
cap
- Capture instance (use forward() to convert)public void drawCanvas(CapturePP cap, android.os.Bundle data)
Capturable
drawCanvas
in interface Capturable
cap
- Canvas to draw to (use getCanvas())data
- Point data saved in preDrawCanvas