Class ColorOption.Value

java.lang.Object
dev.boze.api.option.ColorOption.Value
Enclosing class:
ColorOption

public static class ColorOption.Value extends Object
Color selection value stored by the option.
  • Field Details

    • name

      public final String name
      The name/identifier of the selected color
    • color

      public final ClientColor color
      The selected color
    • fillOpacity

      public float fillOpacity
      The opacity value for fill operations
    • outlineOpacity

      public float outlineOpacity
      The opacity value for outline operations
    • singleOpacity

      public final boolean singleOpacity
      Whether this value uses single opacity
  • Constructor Details

    • Value

      public Value(String name, ClientColor color, float fillOpacity)
      Creates a new value with single opacity
      Parameters:
      name - The name/identifier of the color
      color - The color
      fillOpacity - The opacity value used
    • Value

      public Value(String name, ClientColor color, float fillOpacity, float outlineOpacity)
      Creates a new value with separate fill and outline opacity
      Parameters:
      name - The name/identifier of the color
      color - The color
      fillOpacity - The opacity value for fill
      outlineOpacity - The opacity value for outline
  • Method Details

    • copy

      public ColorOption.Value copy()
      Creates a copy of this value
      Returns:
      A new Value instance with the same properties