Class Placemark
java.lang.Object
com.arubanetworks.meridian.editor.Placemark
- All Implemented Interfaces:
Serializable
Container for a Meridian Placemark and its related fields
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Placemark
fromClientLocationDataJSON
(JSONObject json, EditorKey appKey) Static initializer for creating a Placemark from its json representation with extra location data.fromJSONArray
(JSONArray json, String locationId) Static initializer for creating an List of Placemarks from its json representation.static Placemark
fromJSONObject
(JSONObject json, String locationId) Static initializer for creating a Placemark from its json representation.static Placemark
fromJSONObjectAndAppKey
(JSONObject json, EditorKey appKey) Static initializer for creating a Placemark from its json representation.getArea()
The area on its parent Meridian Map that this placemark represents.int
getColor()
The shading color of this placemark, this is based on itstype
and should be used to color any UI representing this placemark.Gets Location object containing latitude and longitude of the placemark if available.Returns the first custom field associated with this placemark.Returns the second custom field associated with this placemark.Returns the third custom field associated with this placemark.Returns the fourth custom field associated with this placemark.The human readable description of this PlacemarkgetEmail()
Returns the email address associated with this placemark.Returns an image representing this placemark.getKey()
Gets the Meridian EditorKey for this Placemark.short
getMajor()
If this placemark represents a Beacon this will be the Beacon’s major identifier.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.The minimum zoom level that this placmark should be visible at on its parent Meridian Map.getName()
The human readable name of this Placemark (e.g.getPhone()
Returns the phone number associated with this placemark.The Meridian Key for a Map that this Placemark is connected to, this will not be the same as the parent key of thekey
.double
If this placemark represents a Beacon this will be the Beacon’s RSSI offset.getType()
The Meridian Placemark type of this placemark.Get the human readable type category of this Meridian placemark type.The Human readable name of this Meridian Placemark type.getUID()
A unique identifier to link this placemark to objects outside of the Meridian Editor.getUrl()
Returns the url associated with this placemark.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
Returns true if the placemark is disabled.boolean
Returns true if the placemark is a facility.boolean
Indicates if the placemark should be visible on its parent Meridian Map.boolean
Returns true if the placemark does not represent a point on a map.boolean
Indicates if the placemark should be returned in search results.Gets the major/minor of this placemark if it represents a Beacon.void
Set the area on its parent Meridian Map that this placemark represents.void
setColor
(int color) Sets the shading color of this placemark.void
setCoordinates
(Location coordinates) Set this placemark’s coordinates (latitude & longitude).void
setCustom1
(String custom1) Sets the first custom field associated with this placemark.void
setCustom2
(String custom2) Sets the second custom field associated with this placemark.void
setCustom3
(String custom3) Sets the third custom field associated with this placemark.void
setCustom4
(String custom4) Sets the fourth custom field associated with this placemark.void
setDescription
(String description) Sets the human readable description of this Placemarkvoid
setDisabled
(boolean disabled) Sets if the placemark is disabled.void
Sets the email address associated with this placemark.void
setFacility
(boolean facility) Sets if the placemark is a facility.void
setHideOnMap
(boolean hideOnMap) Sets if the placemark should be visible on its parent Meridian Map.void
setImageLayout
(String imageLayout) void
setImageURL
(String imageURL) Sets an image representing this placemark.void
setIsSearchable
(boolean isSearchable) Sets if the placemark should be returned in search results.void
Sets the Meridian EditorKey for this Placemark.void
setMajor
(short major) If this placemark represents a Beacon this will set the Beacon’s major identifier.void
setMaxZoomLevel
(MapInfo.ZoomLevel maxZoomLevel) Sets 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 set the Beacon’s minor identifier.void
setMinZoomLevel
(MapInfo.ZoomLevel minZoomLevel) Sets the minimum zoom level that this placmark should be visible at on its parent Meridian Map.void
Sets the human readable name of this Placemark (e.g.void
Sets the phone number associated with this placemark.void
setRelatedMapKey
(EditorKey relatedMapKey) Sets the Meridian Key for a Map that this Placemark is connected to, this will not be the same as the parent key of thekey
.void
Sets the Meridian Placemark type of this placemark.void
setTypeCategory
(String typeCategory) Sets the human readable type category of this Meridian placemark type.void
setTypeName
(String typeName) Sets the Human readable name of this Meridian Placemark type.void
Sets the url associated with this placemark.void
setX
(float x) Set this placemark’s x coordinate on its parent Meridian Map.void
setY
(float y) Set this placemark’s y coordinate on its parent Meridian Map.Converts Placemark to its Client Location Data JSON representation data.toString()
-
Field Details
-
LAYOUT_WIDESCREEN
- See Also:
-
LAYOUT_FULL_PAGE
- See Also:
-
-
Constructor Details
-
Placemark
public Placemark()An empty Placemark constructor.
-
-
Method Details
-
getKey
Gets the Meridian EditorKey for this Placemark. -
setKey
Sets the Meridian EditorKey for this Placemark. -
getRelatedMapKey
The Meridian Key for a Map that this Placemark is connected to, this will not be the same as the parent key of thekey
. -
setRelatedMapKey
Sets the Meridian Key for a Map that this Placemark is connected to, this will not be the same as the parent key of thekey
. -
getName
The human readable name of this Placemark (e.g.‘Joe’s Office’, ‘Fountain’)
-
setName
Sets the human readable name of this Placemark (e.g.‘Joe’s Office’, ‘Fountain’)
-
getDescription
The human readable description of this Placemark -
setDescription
Sets the human readable description of this Placemark -
getType
The Meridian Placemark type of this placemark.(e.g. ‘shop’, ’lounge)
-
setType
Sets the Meridian Placemark type of this placemark.(e.g. ‘shop’, ’lounge)
-
getTypeName
The Human readable name of this Meridian Placemark type. -
setTypeName
Sets the Human readable name of this Meridian Placemark type. -
getTypeCategory
Get the human readable type category of this Meridian placemark type. -
setTypeCategory
Sets the human readable type category of this Meridian placemark type. -
getUID
A unique identifier to link this placemark to objects outside of the Meridian Editor. -
getX
public float getX()This placemark’s x coordinate on its parent Meridian Map. -
setX
public void setX(float x) Set this placemark’s x coordinate on its parent Meridian Map. -
getY
public float getY()This placemark’s y coordinate on its parent Meridian Map. -
setY
public void setY(float y) Set this placemark’s y coordinate on its parent Meridian Map. -
getCoordinates
Gets Location object containing latitude and longitude of the placemark if available. -
setCoordinates
Set this placemark’s coordinates (latitude & longitude). -
getColor
public int getColor()The shading color of this placemark, this is based on itstype
and should be used to color any UI representing this placemark. -
setColor
public void setColor(int color) Sets the shading color of this placemark. -
getMaxZoomLevel
The maximum zoom level that this placmark should be visible at on its parent Meridian Map. -
setMaxZoomLevel
Sets the maximum zoom level that this placmark should be visible at on its parent Meridian Map. -
getMinZoomLevel
The minimum zoom level that this placmark should be visible at on its parent Meridian Map. -
setMinZoomLevel
Sets the minimum zoom level that this placmark should be visible at on its parent Meridian Map. -
isHideOnMap
public boolean isHideOnMap()Indicates if the placemark should be visible on its parent Meridian Map. -
setHideOnMap
public void setHideOnMap(boolean hideOnMap) Sets if the placemark should be visible on its parent Meridian Map. -
isSearchable
public boolean isSearchable()Indicates if the placemark should be returned in search results. -
setIsSearchable
public void setIsSearchable(boolean isSearchable) Sets if the placemark should be returned in search results. -
getMajor
public short getMajor()If this placemark represents a Beacon this will be the Beacon’s major identifier. -
setMajor
public void setMajor(short major) If this placemark represents a Beacon this will set the Beacon’s major identifier. -
getRSSIOffset
public double getRSSIOffset()If this placemark represents a Beacon this will be the Beacon’s RSSI offset. -
getMinor
public short getMinor()If this placemark represents a Beacon this will be the Beacon’s minor identifier. -
setMinor
public void setMinor(short minor) If this placemark represents a Beacon this will set the Beacon’s minor identifier. -
getArea
The area on its parent Meridian Map that this placemark represents. -
setArea
Set the area on its parent Meridian Map that this placemark represents. -
isFacility
public boolean isFacility()Returns true if the placemark is a facility. -
setFacility
public void setFacility(boolean facility) Sets if the placemark is a facility. -
isDisabled
public boolean isDisabled()Returns true if the placemark is disabled. -
setDisabled
public void setDisabled(boolean disabled) Sets if the placemark is disabled. -
getImageURL
Returns an image representing this placemark. -
setImageURL
Sets an image representing this placemark. -
getImageLayout
-
setImageLayout
-
getUrl
Returns the url associated with this placemark. -
setUrl
Sets the url associated with this placemark. -
getEmail
Returns the email address associated with this placemark. -
setEmail
Sets the email address associated with this placemark. -
getPhone
Returns the phone number associated with this placemark. -
setPhone
Sets the phone number associated with this placemark. -
getCustom1
Returns the first custom field associated with this placemark. -
setCustom1
Sets the first custom field associated with this placemark. -
getCustom2
Returns the second custom field associated with this placemark. -
setCustom2
Sets the second custom field associated with this placemark. -
getCustom3
Returns the third custom field associated with this placemark. -
setCustom3
Sets the third custom field associated with this placemark. -
getCustom4
Returns the fourth custom field associated with this placemark. -
setCustom4
Sets the fourth custom field associated with this placemark. -
fromJSONObjectAndAppKey
public static Placemark fromJSONObjectAndAppKey(JSONObject json, EditorKey appKey) throws JSONException Static initializer for creating a Placemark from its json representation.- Parameters:
json
- A known json representation of the Placemark to be initialized.appKey
- A known Meridian App key for the initialized placemark.- Returns:
- The initialized Placemark.
- Throws:
JSONException
- on JSON parsing error- See Also:
-
fromJSONObject
Static initializer for creating a Placemark from its json representation.- Parameters:
json
- A known json representation of the Placemark to be initialized.locationId
- A known Meridian location id for the initialized placemark.- Returns:
- The initialized Placemark.
- Throws:
JSONException
- on JSON parsing error- See Also:
-
fromClientLocationDataJSON
public static Placemark fromClientLocationDataJSON(JSONObject json, EditorKey appKey) throws JSONException Static initializer for creating a Placemark from its json representation with extra location data.- Parameters:
json
- A known json representation of the Placemark to be initialized.appKey
- A known Meridian App key for the initialized placemark.- Returns:
- The initialized Placemark.
- Throws:
JSONException
- on JSON parsing error- See Also:
-
toClientLocationDataJSONObject
Converts Placemark to its Client Location Data JSON representation data.- Returns:
- The JSON representation.
- Throws:
JSONException
- on JSON encoding error
-
fromJSONArray
Static initializer for creating an List of Placemarks from its json representation.- Parameters:
json
- A json representation of the Placemark List.locationId
- A known Meridian location id for the placemarks in the list.- Returns:
- An initialized List of Placemarks.
- Throws:
JSONException
- on JSON parsing error- See Also:
-
majorMinorString
Gets the major/minor of this placemark if it represents a Beacon. -
isInvalid
public boolean isInvalid()Returns true if the placemark does not represent a point on a map. -
toString
-