public class Placemark
extends java.lang.Object
implements java.io.Serializable
Container for a Meridian Placemark and its related fields
| Constructor and Description |
|---|
Placemark()
An empty Placemark constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Placemark |
fromClientLocationDataJSON(org.json.JSONObject json,
EditorKey appKey)
Static initializer for creating a Placemark from its json representation with extra location data.
|
static java.util.List<Placemark> |
fromJSONArray(org.json.JSONArray json,
java.lang.String locationId)
Static initializer for creating an List of Placemarks from its json representation.
|
static Placemark |
fromJSONObject(org.json.JSONObject json,
java.lang.String locationId)
Static initializer for creating a Placemark from its json representation.
|
static Placemark |
fromJSONObjectAndAppKey(org.json.JSONObject json,
EditorKey appKey)
Static initializer for creating a Placemark from its json representation.
|
Polygon |
getArea()
The area on its parent Meridian Map that this placemark represents.
|
int |
getColor()
The shading color of this placemark, this is based on its
type and should be used to color any UI representing this placemark. |
EditorKey |
getKey()
Gets the Meridian EditorKey for this Placemark.
|
short |
getMajor()
If this placemark represents a Beacon this will be the Beacon’s major identifier.
|
MapInfo.ZoomLevel |
getMaxZoomLevel()
The maximum zoom level that this placmark should be visible at on its parent Meridian Map.
|
short |
getMinor()
If this placemark represents a Beacon this will be the Beacon’s minor identifier.
|
MapInfo.ZoomLevel |
getMinZoomLevel()
The minimum zoom level that this placmark should be visible at on its parent Meridian Map.
|
java.lang.String |
getName()
The human readable name of this Placemark (e.g.
|
EditorKey |
getRelatedMapKey()
The Meridian Key for a Map that this Placemark is connected to, this will not be the same as the parent key of the
key. |
java.lang.String |
getType()
The Meridian Placemark type of this placemark.
|
java.lang.String |
getTypeName()
The Human readable name of this Meridian Placemark type.
|
java.lang.String |
getUID()
A unique identifier to link this placemark to objects outside of the Meridian Editor.
|
float |
getX()
This placemark’s x coordinate on its parent Meridian Map.
|
float |
getY()
This placemark’s y coordinate on its parent Meridian Map.
|
boolean |
isFacility() |
boolean |
isHideOnMap()
Indicates if the placemark should be visible on its parent Meridian Map.
|
boolean |
isInvalid()
Returns true if the placemark does not represent a point on a map.
|
java.lang.String |
majorMinorString()
Gets the major/minor of this placemark if it represents a Beacon.
|
void |
setArea(Polygon area)
The area on its parent Meridian Map that this placemark represents.
|
void |
setColor(int color)
The shading color of this placemark, this is based on its
type and should be used to color any UI representing this placemark. |
void |
setFacility(boolean facility) |
void |
setHideOnMap(boolean hideOnMap)
Indicates if the placemark should be visible on its parent Meridian Map.
|
void |
setKey(EditorKey key)
Sets the Meridian EditorKey for this Placemark.
|
void |
setMajor(short major)
If this placemark represents a Beacon this will be the Beacon’s major identifier.
|
void |
setMaxZoomLevel(MapInfo.ZoomLevel maxZoomLevel)
The maximum zoom level that this placmark should be visible at on its parent Meridian Map.
|
void |
setMinor(short minor)
If this placemark represents a Beacon this will be the Beacon’s minor identifier.
|
void |
setMinZoomLevel(MapInfo.ZoomLevel minZoomLevel)
The minimum zoom level that this placmark should be visible at on its parent Meridian Map.
|
void |
setName(java.lang.String name)
The human readable name of this Placemark (e.g.
|
void |
setRelatedMapKey(EditorKey relatedMapKey)
The Meridian Key for a Map that this Placemark is connected to, this will not be the same as the parent key of the
key. |
void |
setType(java.lang.String type)
The Meridian Placemark type of this placemark.
|
void |
setTypeName(java.lang.String typeName)
The Human readable name of this Meridian Placemark type.
|
void |
setX(float x)
This placemark’s x coordinate on its parent Meridian Map.
|
void |
setY(float y)
This placemark’s y coordinate on its parent Meridian Map.
|
java.lang.String |
toString() |
public EditorKey getKey()
Gets the Meridian EditorKey for this Placemark.
public void setKey(EditorKey key)
Sets the Meridian EditorKey for this Placemark.
public EditorKey getRelatedMapKey()
The Meridian Key for a Map that this Placemark is connected to, this will not be the same as the parent key of the key.
public void setRelatedMapKey(EditorKey relatedMapKey)
The Meridian Key for a Map that this Placemark is connected to, this will not be the same as the parent key of the key.
public java.lang.String getName()
The human readable name of this Placemark (e.g. ‘Joe’s Office’, ‘Fountain’)
public void setName(java.lang.String name)
The human readable name of this Placemark (e.g. ‘Joe’s Office’, ‘Fountain’)
public java.lang.String getType()
The Meridian Placemark type of this placemark. (e.g. ‘shop’, ’lounge)
public void setType(java.lang.String type)
The Meridian Placemark type of this placemark. (e.g. ‘shop’, ’lounge)
public java.lang.String getTypeName()
The Human readable name of this Meridian Placemark type.
public void setTypeName(java.lang.String typeName)
The Human readable name of this Meridian Placemark type.
public java.lang.String getUID()
A unique identifier to link this placemark to objects outside of the Meridian Editor.
public float getX()
This placemark’s x coordinate on its parent Meridian Map.
public void setX(float x)
This placemark’s x coordinate on its parent Meridian Map.
public float getY()
This placemark’s y coordinate on its parent Meridian Map.
public void setY(float y)
This placemark’s y coordinate on its parent Meridian Map.
public int getColor()
The shading color of this placemark, this is based on its type and should be used to color any UI representing this placemark.
public void setColor(int color)
The shading color of this placemark, this is based on its type and should be used to color any UI representing this placemark.
public MapInfo.ZoomLevel getMaxZoomLevel()
The maximum zoom level that this placmark should be visible at on its parent Meridian Map.
public void setMaxZoomLevel(MapInfo.ZoomLevel maxZoomLevel)
The maximum zoom level that this placmark should be visible at on its parent Meridian Map.
public MapInfo.ZoomLevel getMinZoomLevel()
The minimum zoom level that this placmark should be visible at on its parent Meridian Map.
public void setMinZoomLevel(MapInfo.ZoomLevel minZoomLevel)
The minimum zoom level that this placmark should be visible at on its parent Meridian Map.
public boolean isHideOnMap()
Indicates if the placemark should be visible on its parent Meridian Map.
public void setHideOnMap(boolean hideOnMap)
Indicates if the placemark should be visible on its parent Meridian Map.
public short getMajor()
If this placemark represents a Beacon this will be the Beacon’s major identifier.
public void setMajor(short major)
If this placemark represents a Beacon this will be the Beacon’s major identifier.
public short getMinor()
If this placemark represents a Beacon this will be the Beacon’s minor identifier.
public void setMinor(short minor)
If this placemark represents a Beacon this will be the Beacon’s minor identifier.
public Polygon getArea()
The area on its parent Meridian Map that this placemark represents.
public void setArea(Polygon area)
The area on its parent Meridian Map that this placemark represents.
public boolean isFacility()
public void setFacility(boolean facility)
public static Placemark fromJSONObjectAndAppKey(org.json.JSONObject json, EditorKey appKey) throws org.json.JSONException
Static initializer for creating a Placemark from its json representation.
json - A known json representation of the Placemark to be initialized.appKey - A known Meridian App key for the initialized placemark.org.json.JSONException - on JSON parsing errorfromJSONArray(org.json.JSONArray, String),
fromJSONObject(org.json.JSONObject, String),
fromClientLocationDataJSON(org.json.JSONObject, EditorKey)public static Placemark fromJSONObject(org.json.JSONObject json, java.lang.String locationId) throws org.json.JSONException
Static initializer for creating a Placemark from its json representation.
json - A known json representation of the Placemark to be initialized.locationId - A known Meridian location id for the initialized placemark.org.json.JSONException - on JSON parsing errorfromJSONArray(org.json.JSONArray, String),
fromJSONObjectAndAppKey(org.json.JSONObject, EditorKey),
fromClientLocationDataJSON(org.json.JSONObject, EditorKey)public static Placemark fromClientLocationDataJSON(org.json.JSONObject json, EditorKey appKey) throws org.json.JSONException
Static initializer for creating a Placemark from its json representation with extra location data.
json - A known json representation of the Placemark to be initialized.appKey - A known Meridian App key for the initialized placemark.org.json.JSONException - on JSON parsing errorfromJSONArray(org.json.JSONArray, String),
fromJSONObject(org.json.JSONObject, String),
fromJSONObjectAndAppKey(org.json.JSONObject, EditorKey)public static java.util.List<Placemark> fromJSONArray(org.json.JSONArray json, java.lang.String locationId) throws org.json.JSONException
Static initializer for creating an List of Placemarks from its json representation.
json - A json representation of the Placemark List.locationId - A known Meridian location id for the placemarks in the list.org.json.JSONException - on JSON parsing errorfromClientLocationDataJSON(org.json.JSONObject, EditorKey),
fromJSONObject(org.json.JSONObject, String),
fromJSONObjectAndAppKey(org.json.JSONObject, EditorKey)public java.lang.String majorMinorString()
Gets the major/minor of this placemark if it represents a Beacon.
public boolean isInvalid()
Returns true if the placemark does not represent a point on a map.
public java.lang.String toString()
toString in class java.lang.Object