Class ColorInfo

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

public class ColorInfo extends BaseInfo
Describes a color and if it is enabled.
  • Constructor Details

    • ColorInfo

      public ColorInfo(Color color, boolean enabled)
      Constructor. Creates a ColorInfo object with the given color and enabled flag.
      Parameters:
      color - color
      enabled - true if this setting is enabled
    • ColorInfo

      public ColorInfo(javafx.scene.paint.Color color, boolean enabled)
      Constructor. Creates a ColorInfo object with the given color and enabled flag.
      Parameters:
      color - color
      enabled - true if this setting is enabled
  • Method Details

    • getColor

      public Color getColor()
      Gets the color (as chosen by the user).
      Returns:
      color (as chosen by the user)
    • getColorFX

      public javafx.scene.paint.Color getColorFX()
      Gets the JavaFX version of the color (as chosen by the user).
      Returns:
      color (as chosen by the user)
    • clone

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