Package dev.boze.api.option
Class ColorOption.Value
java.lang.Object
dev.boze.api.option.ColorOption.Value
- Enclosing class:
ColorOption
Color selection value stored by the option.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ClientColorThe selected colorfloatThe opacity value for fill operationsfinal StringThe name/identifier of the selected colorfloatThe opacity value for outline operationsfinal booleanWhether this value uses single opacity -
Constructor Summary
ConstructorsConstructorDescriptionValue(String name, ClientColor color, float fillOpacity) Creates a new value with single opacityValue(String name, ClientColor color, float fillOpacity, float outlineOpacity) Creates a new value with separate fill and outline opacity -
Method Summary
-
Field Details
-
name
The name/identifier of the selected color -
color
The selected color -
fillOpacity
public float fillOpacityThe opacity value for fill operations -
outlineOpacity
public float outlineOpacityThe opacity value for outline operations -
singleOpacity
public final boolean singleOpacityWhether this value uses single opacity
-
-
Constructor Details
-
Value
Creates a new value with single opacity- Parameters:
name- The name/identifier of the colorcolor- The colorfillOpacity- The opacity value used
-
Value
Creates a new value with separate fill and outline opacity- Parameters:
name- The name/identifier of the colorcolor- The colorfillOpacity- The opacity value for filloutlineOpacity- The opacity value for outline
-
-
Method Details
-
copy
Creates a copy of this value- Returns:
- A new Value instance with the same properties
-