Class MarkerInfo

java.lang.Object
com.motivewave.platform.sdk.common.BaseInfo
com.motivewave.platform.sdk.common.MarkerInfo
All Implemented Interfaces:
Cloneable

public class MarkerInfo extends BaseInfo
Describes how to display a marker.
  • Field Details

  • Constructor Details

    • MarkerInfo

      public MarkerInfo(Enums.MarkerType type, Enums.Size size, Color fillColor, Color outlineColor, boolean enabled)
      Constructor.
      Parameters:
      type - type of marker to display
      size - size of the marker
      fillColor - color used to fill the marker background
      outlineColor - color for the outline
      enabled - 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 display
      size - size of the marker
      fillColor - color used to fill the marker background
      textColor - color used to fill for the text (if applicable)
      outlineColor - color for the outline
      enabled - true if this marker is enabled
  • Method Details

    • getType

      public Enums.MarkerType getType()
      Gets the type of the marker.
      Returns:
      type of marker
    • getSize

      public Enums.Size getSize()
      Gets the size of the marker.
      Returns:
      size of marker
    • getFillColor

      public Color getFillColor()
      Gets the fill color of the marker.
      Returns:
      fill color for the marker
    • getTextColor

      public Color getTextColor()
      Gets the text color of the marker.
      Returns:
      text color for the marker
    • getOutlineColor

      public Color getOutlineColor()
      Gets the outline color of the marker.
      Returns:
      outline color for the marker
    • clone

      public MarkerInfo clone()
      Creates a clone (copy) of this object.
      Overrides:
      clone in class BaseInfo
      Returns:
      clone of this object
    • toJson

      public Object toJson(BaseInfo def)
      Specified by:
      toJson in class BaseInfo
    • fromJson

      public static MarkerInfo fromJson(Object json, MarkerInfo def)