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
FieldsModifier and TypeFieldDescriptionprotected Colorprotected Colorprotected Enums.Sizeprotected Colorprotected Enums.MarkerType -
Constructor Summary
ConstructorsConstructorDescriptionMarkerInfo(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 MarkerInfofromJson(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.protected voidwithFillColor(Color fillColor) withOutlineColor(Color outlineColor) withSize(Enums.Size size) withTextColor(Color textColor) withType(Enums.MarkerType type)
-
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
-
updateKey
-
getType
-
getSize
-
getFillColor
-
getTextColor
-
getOutlineColor
Gets the outline color of the marker.- Returns:
- outline color for the marker
-
withFillColor
-
withType
-
withSize
-
withTextColor
-
withOutlineColor
-
clone
Creates a clone (copy) of this object. -
toJson
-
fromJson
-