public static class PlacePointTool.MarkerCreator
extends java.lang.Object
Constructor and Description |
---|
MarkerCreator(GeoPoint point)
Build a marker creator with a point supplied.
|
MarkerCreator(GeoPointMetaData point)
Build a marker with a more robust GeoPointMetaData point.
|
Modifier and Type | Method and Description |
---|---|
PlacePointTool.MarkerCreator |
disableAutomaticIcon(boolean disable)
If the flag is set to true, ATAK will make no effort to set an icon or change
an icon for the marker dropped.
|
Marker |
placePoint() |
PlacePointTool.MarkerCreator |
setAction(java.lang.String action)
The ability to perform an action on the newly created marker after it is dropped.
|
PlacePointTool.MarkerCreator |
setArchive(boolean archive)
Defaults to true and signals if this marker should be saved to the database
This is different from nevercot since it allows for a marker to be turned into
cursor on target but does not allow it to be persisted.
|
PlacePointTool.MarkerCreator |
setCallsign(java.lang.String callsign) |
PlacePointTool.MarkerCreator |
setColor(int color)
Indicates the color of the marker.
|
PlacePointTool.MarkerCreator |
setHow(java.lang.String how)
Sets the CoT how for a marker such as m-g or h-i-g-o
|
PlacePointTool.MarkerCreator |
setIconPath(java.lang.String iconsetPath)
The iconset path to use when rendering the icon for the marker
|
PlacePointTool.MarkerCreator |
setMetaString(java.lang.String key,
java.lang.String value)
Ability to set meta string properties on the Marker prior to its creation.
|
PlacePointTool.MarkerCreator |
setNeverPersist(boolean persist)
Defaults to false and indicates if this marker should never be turned into CoT
|
PlacePointTool.MarkerCreator |
setPrefix(java.lang.String prefix) |
PlacePointTool.MarkerCreator |
setReadiness(boolean readiness)
Sets the readiness flag for the marker.
|
PlacePointTool.MarkerCreator |
setShowFiveLine(boolean show)
For markers that when placed automatically show the five line when placed,
show the five line based on the boolean
|
PlacePointTool.MarkerCreator |
setShowMedNineLine(boolean showMedNineLine) |
PlacePointTool.MarkerCreator |
setShowNewRadial(boolean showNewRadial) |
PlacePointTool.MarkerCreator |
setShowNineLine(boolean showNineLine) |
PlacePointTool.MarkerCreator |
setShowNineLine(boolean showNineLine,
java.lang.String friendlyUID) |
PlacePointTool.MarkerCreator |
setTextColor(int color) |
PlacePointTool.MarkerCreator |
setType(java.lang.String type)
Sets the type of the marker based on the CoT 2525 types or custom types
used in ATAK
|
PlacePointTool.MarkerCreator |
setUid(java.lang.String uid)
Sets the uid of the marker.
|
PlacePointTool.MarkerCreator |
showCotDetails(boolean showEditor)
The ability to disable the editor from displaying when a marker is dropped.
|
public MarkerCreator(GeoPoint point)
point
- the point for the MarkerCreator.public MarkerCreator(GeoPointMetaData point)
point
- the point for the marker.public PlacePointTool.MarkerCreator setMetaString(java.lang.String key, java.lang.String value)
key
- the key for the string valuevalue
- the value to be added to the marker prior to persistingpublic PlacePointTool.MarkerCreator setReadiness(boolean readiness)
readiness
- true or falsepublic PlacePointTool.MarkerCreator setType(java.lang.String type)
type
- the custom typepublic PlacePointTool.MarkerCreator setUid(java.lang.String uid)
uid
- the universally unique identifierpublic PlacePointTool.MarkerCreator setHow(java.lang.String how)
how
- the how for the CoTpublic PlacePointTool.MarkerCreator setShowFiveLine(boolean show)
show
- if true the five line will be shown.public PlacePointTool.MarkerCreator setIconPath(java.lang.String iconsetPath)
iconsetPath
- the iconset path in the appropriate iconset format - usually
asset://[uid]/directory/namepublic PlacePointTool.MarkerCreator disableAutomaticIcon(boolean disable)
public PlacePointTool.MarkerCreator setNeverPersist(boolean persist)
persist
- true means it should never turn into CoT. This is different from
archive which indicates that a marker can be turned into CoT.public PlacePointTool.MarkerCreator setArchive(boolean archive)
archive
- true for savingpublic PlacePointTool.MarkerCreator setCallsign(java.lang.String callsign)
public PlacePointTool.MarkerCreator setPrefix(java.lang.String prefix)
public PlacePointTool.MarkerCreator setColor(int color)
color
- used to multiply against the existing colors of the iconpublic PlacePointTool.MarkerCreator setTextColor(int color)
public PlacePointTool.MarkerCreator showCotDetails(boolean showEditor)
showEditor
- if showEditor is false, the editor is not shown when the marker is dropped.public PlacePointTool.MarkerCreator setShowNineLine(boolean showNineLine)
public PlacePointTool.MarkerCreator setAction(java.lang.String action)
public PlacePointTool.MarkerCreator setShowNewRadial(boolean showNewRadial)
public PlacePointTool.MarkerCreator setShowNineLine(boolean showNineLine, java.lang.String friendlyUID)
public PlacePointTool.MarkerCreator setShowMedNineLine(boolean showMedNineLine)
public Marker placePoint()