Class ColorProperty

All Implemented Interfaces:
Property

public class ColorProperty extends ValueHandlerProperty
A property of type Color.
  • Constructor Details

    • ColorProperty

      public ColorProperty(PropertyGroup group, String name, String description, PropertyValueHandler valueHandler)
      Constructor.
      Parameters:
      group - the property group
      name - the property name
      description - the property description
      valueHandler - handles values for this property
  • Method Details

    • get

      public Color get(Object valueContainer)
      Returns the color value of this property in a value container.
      Parameters:
      valueContainer - the value container
      Returns:
      the color value of this property
    • set

      public void set(Object valueContainer, Color color)
      Sets the color value of this property in a value container.
      Parameters:
      valueContainer - the value container
      color - the color value