Class MarkerInfo
java.lang.Object
com.motivewave.platform.sdk.common.BaseInfo
com.motivewave.platform.sdk.common.MarkerInfo
- All Implemented Interfaces:
Cloneable
Describes how to display a marker.
-
Field Summary
Modifier and TypeFieldDescriptionprotected Color
protected Color
protected Enums.Size
protected Color
protected Enums.MarkerType
-
Constructor Summary
ConstructorDescriptionMarkerInfo
(Enums.MarkerType type, Enums.Size size, Color fillColor, Color outlineColor, boolean enabled) Constructor.MarkerInfo
(Enums.MarkerType type, Enums.Size size, Color fillColor, Color textColor, Color outlineColor, boolean enabled) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a clone (copy) of this object.static MarkerInfo
fromJson
(Object json, MarkerInfo def) Gets the fill color of the marker.Gets the outline color of the marker.getSize()
Gets the size of the marker.Gets the text color of the marker.getType()
Gets the type of the marker.
-
Field Details
-
fillColor
-
textColor
-
outlineColor
-
type
-
size
-
-
Constructor Details
-
MarkerInfo
public MarkerInfo(Enums.MarkerType type, Enums.Size size, Color fillColor, Color outlineColor, boolean enabled) Constructor.- Parameters:
type
- type of marker to displaysize
- size of the markerfillColor
- color used to fill the marker backgroundoutlineColor
- color for the outlineenabled
- true if this marker is enabled
-
MarkerInfo
public MarkerInfo(Enums.MarkerType type, Enums.Size size, Color fillColor, Color textColor, Color outlineColor, boolean enabled) Constructor.- Parameters:
type
- type of marker to displaysize
- size of the markerfillColor
- color used to fill the marker backgroundtextColor
- color used to fill for the text (if applicable)outlineColor
- color for the outlineenabled
- true if this marker is enabled
-
-
Method Details
-
getType
Gets the type of the marker.- Returns:
- type of marker
-
getSize
Gets the size of the marker.- Returns:
- size of marker
-
getFillColor
Gets the fill color of the marker.- Returns:
- fill color for the marker
-
getTextColor
Gets the text color of the marker.- Returns:
- text color for the marker
-
getOutlineColor
Gets the outline color of the marker.- Returns:
- outline color for the marker
-
clone
Creates a clone (copy) of this object. -
toJson
-
fromJson
-