Class HueShiftColorScheme

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

public class HueShiftColorScheme extends BaseColorScheme
Hue-shifted color scheme. A hue-shifted color scheme is a color scheme that is hue-shifted in HSB space.
  • Field Details

    • hueShiftFactor

      private double hueShiftFactor
      Hue-shift factor.
    • 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.
    • origScheme

      private RadianceColorScheme origScheme
      The original color scheme.
  • Constructor Details

    • HueShiftColorScheme

      public HueShiftColorScheme(RadianceColorScheme origScheme, double hueShiftFactor)
      Creates a new hue-shifted color scheme.
      Parameters:
      origScheme - The original color scheme.
      hueShiftFactor - Shift factor. Should be in -1.0-1.0 range.
  • 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.
    • getOrigScheme

      public RadianceColorScheme getOrigScheme()
      Returns the original color scheme.
      Returns:
      The original color scheme.
    • getHueShiftFactor

      public double getHueShiftFactor()
      Returns the hue-shift factor.
      Returns:
      Hue-shift factor.