Interface RGBColorValue

All Superinterfaces:
Cloneable, CSSColorValue, CSSPrimitiveValue, CSSTypedValue, CSSValue
All Known Implementing Classes:
RGBColorValue

@Deprecated(forRemoval=true) public interface RGBColorValue extends CSSColorValue
Deprecated, for removal: This API element is subject to removal in a future version.
Top-level color values with the RGB color model are no longer guaranteed to implement this interface. Furthermore, this interface is not especially useful since the getColor() method became available. This interface is considered unsafe and error-prone, it will be removed in the future.
Represents a RGB color value.

Instead of using this interface, cast the result of CSSColorValue.getColor() to the appropriate interface (like RGBAColor) according to the given CSSColorValue.getColorModel().

  • Method Details

    • getRGBColorValue

      @Deprecated default RGBAColor getRGBColorValue()
      Deprecated.
      Get the RGB(A) color represented by this value.
      Returns:
      the RGB color.
      See Also:
    • getColor

      RGBAColor getColor()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the RGB(A) color represented by this value.
      Specified by:
      getColor in interface CSSColorValue
      Returns:
      the RGB color.
    • clone

      RGBColorValue clone()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CSSValue
      Creates and returns a copy of this value.
      Specified by:
      clone in interface CSSColorValue
      Specified by:
      clone in interface CSSValue
      Returns:
      a clone of this value.