Class MixColorScheme
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
Mixed color scheme.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Color
The foreground color.private Color
The main dark color.private Color
The main extra-light color.private Color
The main light color.private Color
The main medium color.private Color
The main ultra-dark color.private Color
The main ultra-light color.private RadianceColorScheme[]
The original color schemes.Fields inherited from class org.pushingpixels.radiance.theming.api.colorscheme.BaseColorScheme
displayName, isDark
-
Constructor Summary
ConstructorsConstructorDescriptionMixColorScheme
(String displayName, RadianceColorScheme... origSchemes) Creates a new mixed color scheme. -
Method Summary
Modifier and TypeMethodDescriptionblendWith
(RadianceColorScheme otherScheme, double likenessToThisScheme) Creates a blended version ofthis
color scheme based on another color scheme.Retrieves the dark color.Retrieves the extra color.Retrieves the foreground color.Retrieves the light color.Retrieves the medium color.Returns the original color schemes ofthis
mixed color scheme.Retrieves the ultra-dark color.Retrieves the ultra-light color.hueShift
(double hueShiftFactor) Creates a hue-shifted (in HSB space) version ofthis
color scheme.invert()
Creates an inverted version ofthis
scheme.negate()
Creates a negated version ofthis
scheme.saturate
(double saturateFactor) Creates a saturated or desaturated version ofthis
scheme.shade
(double shadeFactor) Creates a shaded (shifted towards black) version ofthis
color scheme.tint
(double tintFactor) Creates a tinted (shifted towards white) version ofthis
color scheme.tone
(double toneFactor) Creates a toned (shifted towards gray) version ofthis
color scheme.Methods inherited from class org.pushingpixels.radiance.theming.api.colorscheme.BaseColorScheme
getAccentedBackgroundFillColor, getBackgroundFillColor, getDisplayName, getEchoColor, getFocusRingColor, getLineColor, getMarkColor, getSelectionBackgroundColor, getSelectionForegroundColor, getSeparatorPrimaryColor, getSeparatorSecondaryColor, getTextBackgroundFillColor, isDark, named, shift, shiftBackground, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.pushingpixels.radiance.theming.api.colorscheme.RadianceColorScheme
getColorFilter
Methods inherited from interface org.pushingpixels.radiance.theming.api.colorscheme.SchemeBaseColors
toImage
-
Field Details
-
mainUltraLightColor
The main ultra-light color. -
mainExtraLightColor
The main extra-light color. -
mainLightColor
The main light color. -
mainMidColor
The main medium color. -
mainDarkColor
The main dark color. -
mainUltraDarkColor
The main ultra-dark color. -
foregroundColor
The foreground color. -
origSchemes
The original color schemes.
-
-
Constructor Details
-
MixColorScheme
Creates a new mixed color scheme.- Parameters:
displayName
- Display name for the new color scheme.origSchemes
- The original color schemes.
-
-
Method Details
-
getForegroundColor
Description copied from interface:SchemeBaseColors
Retrieves the foreground color.- Returns:
- Foreground color.
-
getUltraLightColor
Description copied from interface:SchemeBaseColors
Retrieves the ultra-light color.- Returns:
- Ultra-light color.
-
getExtraLightColor
Description copied from interface:SchemeBaseColors
Retrieves the extra color.- Returns:
- Extra color.
-
getLightColor
Description copied from interface:SchemeBaseColors
Retrieves the light color.- Returns:
- Light color.
-
getMidColor
Description copied from interface:SchemeBaseColors
Retrieves the medium color.- Returns:
- Medium color.
-
getDarkColor
Description copied from interface:SchemeBaseColors
Retrieves the dark color.- Returns:
- Dark color.
-
getUltraDarkColor
Description copied from interface:SchemeBaseColors
Retrieves the ultra-dark color.- Returns:
- Ultra-dark color.
-
getOrigSchemes
Returns the original color schemes ofthis
mixed color scheme.- Returns:
- The original color schemes of
this
mixed color scheme.
-
tint
Description copied from interface:RadianceColorScheme
Creates a tinted (shifted towards white) version ofthis
color scheme.- Specified by:
tint
in interfaceRadianceColorScheme
- Overrides:
tint
in classBaseColorScheme
- Parameters:
tintFactor
- Value in 0.0...1.0 range. Larger values shift more towards white color.- Returns:
- Tinted version of
this
scheme.
-
tone
Description copied from interface:RadianceColorScheme
Creates a toned (shifted towards gray) version ofthis
color scheme.- Specified by:
tone
in interfaceRadianceColorScheme
- Overrides:
tone
in classBaseColorScheme
- Parameters:
toneFactor
- Value in 0.0...1.0 range. Larger values shift more towards gray color.- Returns:
- Toned version of
this
scheme.
-
shade
Description copied from interface:RadianceColorScheme
Creates a shaded (shifted towards black) version ofthis
color scheme.- Specified by:
shade
in interfaceRadianceColorScheme
- Overrides:
shade
in classBaseColorScheme
- Parameters:
shadeFactor
- Value in 0.0...1.0 range. Larger values shift more towards black color.- Returns:
- Shaded version of
this
scheme.
-
saturate
Description copied from interface:RadianceColorScheme
Creates a saturated or desaturated version ofthis
scheme. The value and brightness stay the same.- Specified by:
saturate
in interfaceRadianceColorScheme
- Overrides:
saturate
in classBaseColorScheme
- 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
Description copied from interface:RadianceColorScheme
Creates a hue-shifted (in HSB space) version ofthis
color scheme.- Specified by:
hueShift
in interfaceRadianceColorScheme
- Overrides:
hueShift
in classBaseColorScheme
- Parameters:
hueShiftFactor
- Value in -1.0...1.0 range.- Returns:
- Hue-shifted version of
this
scheme.
-
invert
Description copied from interface:RadianceColorScheme
Creates an inverted version ofthis
scheme.- Specified by:
invert
in interfaceRadianceColorScheme
- Overrides:
invert
in classBaseColorScheme
- Returns:
- Inverted version of
this
scheme.
-
negate
Description copied from interface:RadianceColorScheme
Creates a negated version ofthis
scheme.- Specified by:
negate
in interfaceRadianceColorScheme
- Overrides:
negate
in classBaseColorScheme
- Returns:
- Negated version of
this
scheme.
-
blendWith
Description copied from interface:RadianceColorScheme
Creates a blended version ofthis
color scheme based on another color scheme.- Specified by:
blendWith
in interfaceRadianceColorScheme
- Overrides:
blendWith
in classBaseColorScheme
- 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.
-