Interface ModeledColor<C extends java.lang.Enum<C> & ModeledColor.Component>

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  ModeledColor.Component
      The color component used in the color space.
    • Method Detail

      • getComponent

        double getComponent​(C component)
        Determines the value of the given color component.
        Parameters:
        component - The color component for which a value should be retrieved.
        Returns:
        The value of the requested color component.
      • getAbsoluteComponent

        long getAbsoluteComponent​(C component,
                                  int bitDepth)
        Determines the absolute value of the given color component with the given bit depth. For example, retrieving a component with value 0.5 and a bit depth of 16 would produce 128 or 0x80.
        Parameters:
        component - The color component for which a value should be retrieved.
        bitDepth - The number of bits to use for the given color component.
        Returns:
        The absolute value of the requested color component at the given bit depth.
        See Also:
        getComponent(Enum)