Class HueShiftColorScheme
- java.lang.Object
-
- org.pushingpixels.substance.api.colorscheme.BaseColorScheme
-
- org.pushingpixels.substance.internal.colorscheme.HueShiftColorScheme
-
- All Implemented Interfaces:
SchemeBaseColors,SchemeDerivedColors,SubstanceColorScheme,SubstanceTrait
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 Summary
-
Fields inherited from class org.pushingpixels.substance.api.colorscheme.BaseColorScheme
derivedColorsResolver, displayName, isDark
-
-
Constructor Summary
Constructors Constructor Description HueShiftColorScheme(SubstanceColorScheme origScheme, double hueShiftFactor)Creates a new hue-shifted color scheme.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorgetDarkColor()Retrieves the dark color.ColorgetExtraLightColor()Retrieves the extra color.ColorgetForegroundColor()Retrieves the foreground color.doublegetHueShiftFactor()Returns the hue-shift factor.ColorgetLightColor()Retrieves the light color.ColorgetMidColor()Retrieves the medium color.SubstanceColorSchemegetOrigScheme()Returns the original color scheme.ColorgetUltraDarkColor()Retrieves the ultra-dark color.ColorgetUltraLightColor()Retrieves the ultra-light color.-
Methods inherited from class org.pushingpixels.substance.api.colorscheme.BaseColorScheme
getBackgroundFillColor, getDisplayName, getFocusRingColor, getLineColor, getResolver, getSelectionBackgroundColor, getSelectionForegroundColor, getTextBackgroundFillColor, getWatermarkDarkColor, getWatermarkLightColor, getWatermarkStampColor, hueShift, invert, isDark, named, negate, saturate, shade, shift, shiftBackground, tint, tone, toString
-
-
-
-
Constructor Detail
-
HueShiftColorScheme
public HueShiftColorScheme(SubstanceColorScheme 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 Detail
-
getForegroundColor
public Color getForegroundColor()
Description copied from interface:SchemeBaseColorsRetrieves the foreground color.- Returns:
- Foreground color.
-
getUltraLightColor
public Color getUltraLightColor()
Description copied from interface:SchemeBaseColorsRetrieves the ultra-light color.- Returns:
- Ultra-light color.
-
getExtraLightColor
public Color getExtraLightColor()
Description copied from interface:SchemeBaseColorsRetrieves the extra color.- Returns:
- Extra color.
-
getLightColor
public Color getLightColor()
Description copied from interface:SchemeBaseColorsRetrieves the light color.- Returns:
- Light color.
-
getMidColor
public Color getMidColor()
Description copied from interface:SchemeBaseColorsRetrieves the medium color.- Returns:
- Medium color.
-
getDarkColor
public Color getDarkColor()
Description copied from interface:SchemeBaseColorsRetrieves the dark color.- Returns:
- Dark color.
-
getUltraDarkColor
public Color getUltraDarkColor()
Description copied from interface:SchemeBaseColorsRetrieves the ultra-dark color.- Returns:
- Ultra-dark color.
-
getOrigScheme
public SubstanceColorScheme getOrigScheme()
Returns the original color scheme.- Returns:
- The original color scheme.
-
getHueShiftFactor
public double getHueShiftFactor()
Returns the hue-shift factor.- Returns:
- Hue-shift factor.
-
-