Class ColorInfo
java.lang.Object
com.motivewave.platform.sdk.common.BaseInfo
com.motivewave.platform.sdk.common.ColorInfo
- All Implemented Interfaces:
Cloneable
Describes a color and if it is enabled.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a clone (copy) of this object.static ColorInfo
getColor()
Gets the color (as chosen by the user).javafx.scene.paint.Color
Gets the JavaFX version of the color (as chosen by the user).getValue()
Gets the color (as chosen by the user).protected void
-
Constructor Details
-
ColorInfo
Constructor. Creates a ColorInfo object with the given color and enabled flag.- Parameters:
color
- color
-
ColorInfo
public ColorInfo(javafx.scene.paint.Color color) -
ColorInfo
Constructor. Creates a ColorInfo object with the given color and enabled flag.- Parameters:
color
- colorenabled
- 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
- colorenabled
- true if this setting is enabled
-
-
Method Details
-
updateKey
-
getColor
Gets the color (as chosen by the user).- Returns:
- color (as chosen by the user)
-
getValue
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
-
toJson
-
fromJson
-