Class BlendBiColorScheme
java.lang.Object
org.pushingpixels.radiance.theming.api.colorscheme.BaseColorScheme
org.pushingpixels.radiance.theming.internal.colorscheme.BlendBiColorScheme
- All Implemented Interfaces:
RadianceColorScheme
,SchemeBaseColors
,SchemeDerivedColors
,RadianceTrait
Blended color scheme.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate RadianceColorScheme
The main original color scheme.private double
Likeness to the first scheme.private 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 secondary original color scheme.Fields inherited from class org.pushingpixels.radiance.theming.api.colorscheme.BaseColorScheme
displayName, isDark
-
Constructor Summary
ConstructorsConstructorDescriptionBlendBiColorScheme
(RadianceColorScheme firstScheme, RadianceColorScheme secondScheme, double firstSchemeLikeness) Creates a new blended color scheme. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the dark color.Retrieves the extra color.Returns the main original color scheme.double
Returns the likeness to the first scheme.Retrieves the foreground color.Retrieves the light color.Retrieves the medium color.Returns the secondary original color scheme.Retrieves the ultra-dark color.Retrieves the ultra-light color.Methods inherited from class org.pushingpixels.radiance.theming.api.colorscheme.BaseColorScheme
blendWith, getAccentedBackgroundFillColor, getBackgroundFillColor, getDisplayName, getEchoColor, getFocusRingColor, getLineColor, getMarkColor, getSelectionBackgroundColor, getSelectionForegroundColor, getSeparatorPrimaryColor, getSeparatorSecondaryColor, getTextBackgroundFillColor, hueShift, invert, isDark, named, negate, saturate, shade, shift, shiftBackground, tint, tone, 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. -
firstScheme
The main original color scheme. -
secondScheme
The secondary original color scheme. -
firstSchemeLikeness
private double firstSchemeLikenessLikeness to the first scheme. Values close to 0.0 will create scheme that closely matches the second original scheme. Values close to 1.0 will create scheme that closely matches the second original scheme.
-
-
Constructor Details
-
BlendBiColorScheme
public BlendBiColorScheme(RadianceColorScheme firstScheme, RadianceColorScheme secondScheme, double firstSchemeLikeness) Creates a new blended color scheme.- Parameters:
firstScheme
- The first original color scheme.secondScheme
- The second original color scheme.firstSchemeLikeness
- Likeness to the first scheme. Values close to 0.0 will create scheme that closely matches the second original scheme. Values close to 1.0 will create scheme that closely matches the second original scheme.
-
-
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.
-
getFirstSchemeLikeness
public double getFirstSchemeLikeness()Returns the likeness to the first scheme.- Returns:
- Likeness to the first scheme
-
getFirstScheme
Returns the main original color scheme.- Returns:
- The main original color scheme.
-
getSecondScheme
Returns the secondary original color scheme.- Returns:
- The secondary original color scheme.
-