public class ShiftColorScheme extends BaseColorScheme
Modifier and Type | Field and Description |
---|---|
protected static LazyResettableHashMap<SubstanceColorScheme> |
shiftedCache
Cache of shifted schemes.
|
derivedColorsResolver, displayName, isDark
Constructor and Description |
---|
ShiftColorScheme(SubstanceColorScheme origScheme,
java.awt.Color shiftColor,
double shiftFactor)
Creates a new shifted color scheme.
|
ShiftColorScheme(SubstanceColorScheme origScheme,
java.awt.Color backgroundShiftColor,
double backgroundShiftFactor,
java.awt.Color foregroundShiftColor,
double foregroundShiftFactor,
boolean shiftByBrightness)
Creates a new shifted color scheme.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getDarkColor()
Retrieves the dark color.
|
java.awt.Color |
getExtraLightColor()
Retrieves the extra color.
|
java.awt.Color |
getForegroundColor()
Retrieves the foreground color.
|
java.awt.Color |
getLightColor()
Retrieves the light color.
|
java.awt.Color |
getMidColor()
Retrieves the medium color.
|
SubstanceColorScheme |
getOrigScheme()
Returns the original color scheme.
|
static SubstanceColorScheme |
getShiftedScheme(SubstanceColorScheme orig,
java.awt.Color backgroundShiftColor,
double backgroundShiftFactor,
java.awt.Color foregroundShiftColor,
double foregroundShiftFactor)
Returns a shifted color scheme.
|
double |
getShiftFactor()
Returns the shift factor.
|
java.awt.Color |
getUltraDarkColor()
Retrieves the ultra-dark color.
|
java.awt.Color |
getUltraLightColor()
Retrieves the ultra-light color.
|
getBackgroundFillColor, getDisplayName, getFocusRingColor, getLineColor, getSelectionBackgroundColor, getSelectionForegroundColor, getTextBackgroundFillColor, getWatermarkDarkColor, getWatermarkLightColor, getWatermarkStampColor, hueShift, invert, isDark, named, negate, saturate, shade, shift, shiftBackground, tint, tone, toString
protected static final LazyResettableHashMap<SubstanceColorScheme> shiftedCache
public ShiftColorScheme(SubstanceColorScheme origScheme, java.awt.Color shiftColor, double shiftFactor)
origScheme
- The original color scheme.shiftColor
- Shift color for the colors.shiftFactor
- Shift factor for the colors. Should be in 0.0-1.0 range.public ShiftColorScheme(SubstanceColorScheme origScheme, java.awt.Color backgroundShiftColor, double backgroundShiftFactor, java.awt.Color foregroundShiftColor, double foregroundShiftFactor, boolean shiftByBrightness)
origScheme
- The original color scheme.backgroundShiftColor
- Shift color for the background colors.backgroundShiftFactor
- Shift factor for the background colors. Should be in 0.0-1.0
range.foregroundShiftColor
- Shift color for the foreground colors.foregroundShiftFactor
- Shift factor for the foreground colors. Should be in 0.0-1.0
range.shiftByBrightness
- If true
, the shift will account for the
brightness of the original color scheme colors.public java.awt.Color getForegroundColor()
SchemeBaseColors
public java.awt.Color getUltraLightColor()
SchemeBaseColors
public java.awt.Color getExtraLightColor()
SchemeBaseColors
public java.awt.Color getLightColor()
SchemeBaseColors
public java.awt.Color getMidColor()
SchemeBaseColors
public java.awt.Color getDarkColor()
SchemeBaseColors
public java.awt.Color getUltraDarkColor()
SchemeBaseColors
public SubstanceColorScheme getOrigScheme()
public double getShiftFactor()
public static SubstanceColorScheme getShiftedScheme(SubstanceColorScheme orig, java.awt.Color backgroundShiftColor, double backgroundShiftFactor, java.awt.Color foregroundShiftColor, double foregroundShiftFactor)
orig
- The original color scheme.backgroundShiftColor
- Shift color for the background color scheme colors. May be
null
- in this case, the background color scheme
colors will not be shifted.backgroundShiftFactor
- Shift factor for the background color scheme colors. If the
shift color for the background color scheme colors is
null
, this value is ignored.foregroundShiftColor
- Shift color for the foreground color scheme colors. May be
null
- in this case, the foreground color scheme
colors will not be shifted.foregroundShiftFactor
- Shift factor for the foreground color scheme colors. If the
shift color for the foreground color scheme colors is
null
, this value is ignored.