java.lang.Object
org.pushingpixels.radiance.theming.api.colorscheme.BaseColorScheme
org.pushingpixels.radiance.theming.extras.api.colorschemepack.MixColorScheme
All Implemented Interfaces:
RadianceColorScheme, SchemeBaseColors, SchemeDerivedColors, RadianceTrait

public class MixColorScheme extends BaseColorScheme
Mixed color scheme.
  • Field Details

    • mainUltraLightColor

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

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

      private Color mainLightColor
      The main light color.
    • mainMidColor

      private Color mainMidColor
      The main medium color.
    • mainDarkColor

      private Color mainDarkColor
      The main dark color.
    • mainUltraDarkColor

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

      private Color foregroundColor
      The foreground color.
    • origSchemes

      private RadianceColorScheme[] origSchemes
      The original color schemes.
  • Constructor Details

    • MixColorScheme

      public MixColorScheme(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 Details

    • getForegroundColor

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

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

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

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

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

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

      public 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.
    • hueShift

      public RadianceColorScheme hueShift(double hueShiftFactor)
      Description copied from interface: RadianceColorScheme
      Creates a hue-shifted (in HSB space) version of this color scheme.
      Specified by:
      hueShift in interface RadianceColorScheme
      Overrides:
      hueShift in class BaseColorScheme
      Parameters:
      hueShiftFactor - Value in -1.0...1.0 range.
      Returns:
      Hue-shifted version of this scheme.
    • invert

      public RadianceColorScheme invert()
      Description copied from interface: RadianceColorScheme
      Creates an inverted version of this scheme.
      Specified by:
      invert in interface RadianceColorScheme
      Overrides:
      invert in class BaseColorScheme
      Returns:
      Inverted version of this scheme.
    • negate

      public RadianceColorScheme negate()
      Description copied from interface: RadianceColorScheme
      Creates a negated version of this scheme.
      Specified by:
      negate in interface RadianceColorScheme
      Overrides:
      negate in class BaseColorScheme
      Returns:
      Negated 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.