Class MixColorScheme

    • Field Detail

      • mainUltraLightColor

        private java.awt.Color mainUltraLightColor
        The main ultra-light color.
      • mainExtraLightColor

        private java.awt.Color mainExtraLightColor
        The main extra-light color.
      • mainLightColor

        private java.awt.Color mainLightColor
        The main light color.
      • mainMidColor

        private java.awt.Color mainMidColor
        The main medium color.
      • mainDarkColor

        private java.awt.Color mainDarkColor
        The main dark color.
      • mainUltraDarkColor

        private java.awt.Color mainUltraDarkColor
        The main ultra-dark color.
      • foregroundColor

        private java.awt.Color foregroundColor
        The foreground color.
    • Constructor Detail

      • MixColorScheme

        public MixColorScheme​(java.lang.String displayName,
                              RadianceColorScheme... origSchemes)
        Creates a new mixed color scheme.
        Parameters:
        displayName - Display name for the new color scheme.
        origSchemes - The original color schemes.
    • Method Detail

      • getForegroundColor

        public java.awt.Color getForegroundColor()
        Description copied from interface: SchemeBaseColors
        Retrieves the foreground color.
        Returns:
        Foreground color.
      • getUltraLightColor

        public java.awt.Color getUltraLightColor()
        Description copied from interface: SchemeBaseColors
        Retrieves the ultra-light color.
        Returns:
        Ultra-light color.
      • getExtraLightColor

        public java.awt.Color getExtraLightColor()
        Description copied from interface: SchemeBaseColors
        Retrieves the extra color.
        Returns:
        Extra color.
      • getLightColor

        public java.awt.Color getLightColor()
        Description copied from interface: SchemeBaseColors
        Retrieves the light color.
        Returns:
        Light color.
      • getMidColor

        public java.awt.Color getMidColor()
        Description copied from interface: SchemeBaseColors
        Retrieves the medium color.
        Returns:
        Medium color.
      • getDarkColor

        public java.awt.Color getDarkColor()
        Description copied from interface: SchemeBaseColors
        Retrieves the dark color.
        Returns:
        Dark color.
      • getUltraDarkColor

        public java.awt.Color getUltraDarkColor()
        Description copied from interface: SchemeBaseColors
        Retrieves the ultra-dark color.
        Returns:
        Ultra-dark color.
      • getOrigSchemes

        public RadianceColorScheme[] getOrigSchemes()
        Returns the original color schemes of this mixed color scheme.
        Returns:
        The original color schemes of this mixed color scheme.
      • tint

        public RadianceColorScheme tint​(double tintFactor)
        Description copied from interface: RadianceColorScheme
        Creates a tinted (shifted towards white) version of this color scheme.
        Specified by:
        tint in interface RadianceColorScheme
        Overrides:
        tint in class BaseColorScheme
        Parameters:
        tintFactor - Value in 0.0...1.0 range. Larger values shift more towards white color.
        Returns:
        Tinted version of this scheme.
      • tone

        public RadianceColorScheme tone​(double toneFactor)
        Description copied from interface: RadianceColorScheme
        Creates a toned (shifted towards gray) version of this color scheme.
        Specified by:
        tone in interface RadianceColorScheme
        Overrides:
        tone in class BaseColorScheme
        Parameters:
        toneFactor - Value in 0.0...1.0 range. Larger values shift more towards gray color.
        Returns:
        Toned version of this scheme.
      • shade

        public RadianceColorScheme shade​(double shadeFactor)
        Description copied from interface: RadianceColorScheme
        Creates a shaded (shifted towards black) version of this color scheme.
        Specified by:
        shade in interface RadianceColorScheme
        Overrides:
        shade in class BaseColorScheme
        Parameters:
        shadeFactor - Value in 0.0...1.0 range. Larger values shift more towards black color.
        Returns:
        Shaded version of this scheme.
      • saturate

        public RadianceColorScheme saturate​(double saturateFactor)
        Description copied from interface: RadianceColorScheme
        Creates a saturated or desaturated version of this scheme. The value and brightness stay the same.
        Specified by:
        saturate in interface RadianceColorScheme
        Overrides:
        saturate in class BaseColorScheme
        Parameters:
        saturateFactor - Value in -1.0...1.0 range. Positive values create more saturated colors. Negative values create more desaturated colors.
        Returns:
        Saturated version of this scheme.
      • blendWith

        public RadianceColorScheme blendWith​(RadianceColorScheme otherScheme,
                                             double likenessToThisScheme)
        Description copied from interface: RadianceColorScheme
        Creates a blended version of this color scheme based on another color scheme.
        Specified by:
        blendWith in interface RadianceColorScheme
        Overrides:
        blendWith in class BaseColorScheme
        Parameters:
        otherScheme - The other color scheme for blending colors.
        likenessToThisScheme - Defines how close the colors of the resulting color scheme are to this scheme. Value of 1.0 returns a color scheme with the exact colors of this color scheme. Value of 0.0 returns a color scheme with the exact colors of the other color scheme.
        Returns:
        Blended color scheme.