Class BarInfo

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

public class BarInfo extends BaseInfo
Encapsulates information that describes a bar that is rendered on a graph.
  • Constructor Details

    • BarInfo

      public BarInfo(Color color, Integer fixedWidth, boolean enabled)
      Constructor
      Parameters:
      color - color of the bar
      fixedWidth - width of the bar (null if dynamic)
      enabled - true if this bar is enabled
  • Method Details

    • getColor

      public Color getColor()
      Gets the color of the bar.
      Returns:
      the color of this bar.
    • getFixedWidth

      public Integer getFixedWidth()
      Gets the fixed width of the bar (null if the width is dynamic)
      Returns:
      the fixed width of the bar (null if dynamic width)
    • clone

      public BarInfo 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 BarInfo fromJson(Object json, BarInfo def)