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
public class BlendBiColorScheme extends BaseColorScheme
Blended color scheme.
-
-
Field Summary
Fields Modifier and Type Field Description private RadianceColorSchemefirstSchemeThe main original color scheme.private doublefirstSchemeLikenessLikeness to the first scheme.private java.awt.ColorforegroundColorThe foreground color.private java.awt.ColormainDarkColorThe main dark color.private java.awt.ColormainExtraLightColorThe main extra-light color.private java.awt.ColormainLightColorThe main light color.private java.awt.ColormainMidColorThe main medium color.private java.awt.ColormainUltraDarkColorThe main ultra-dark color.private java.awt.ColormainUltraLightColorThe main ultra-light color.private RadianceColorSchemesecondSchemeThe secondary original color scheme.-
Fields inherited from class org.pushingpixels.radiance.theming.api.colorscheme.BaseColorScheme
displayName, isDark
-
-
Constructor Summary
Constructors Constructor Description BlendBiColorScheme(RadianceColorScheme firstScheme, RadianceColorScheme secondScheme, double firstSchemeLikeness)Creates a new blended color scheme.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.ColorgetDarkColor()Retrieves the dark color.java.awt.ColorgetExtraLightColor()Retrieves the extra color.RadianceColorSchemegetFirstScheme()Returns the main original color scheme.doublegetFirstSchemeLikeness()Returns the likeness to the first scheme.java.awt.ColorgetForegroundColor()Retrieves the foreground color.java.awt.ColorgetLightColor()Retrieves the light color.java.awt.ColorgetMidColor()Retrieves the medium color.RadianceColorSchemegetSecondScheme()Returns the secondary original color scheme.java.awt.ColorgetUltraDarkColor()Retrieves the ultra-dark color.java.awt.ColorgetUltraLightColor()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 Detail
-
mainUltraLightColor
private java.awt.Color mainUltraLightColor
The main ultra-light color.
-
mainExtraLightColor
private java.awt.Color mainExtraLightColor
The main extra-light color.
-
mainLightColor
private java.awt.Color mainLightColor
The main light color.
-
mainMidColor
private java.awt.Color mainMidColor
The main medium color.
-
mainDarkColor
private java.awt.Color mainDarkColor
The main dark color.
-
mainUltraDarkColor
private java.awt.Color mainUltraDarkColor
The main ultra-dark color.
-
foregroundColor
private java.awt.Color foregroundColor
The foreground color.
-
firstScheme
private RadianceColorScheme firstScheme
The main original color scheme.
-
secondScheme
private RadianceColorScheme secondScheme
The secondary original color scheme.
-
firstSchemeLikeness
private double 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.
-
-
Constructor Detail
-
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 Detail
-
getForegroundColor
public java.awt.Color getForegroundColor()
Description copied from interface:SchemeBaseColorsRetrieves the foreground color.- Returns:
- Foreground color.
-
getUltraLightColor
public java.awt.Color getUltraLightColor()
Description copied from interface:SchemeBaseColorsRetrieves the ultra-light color.- Returns:
- Ultra-light color.
-
getExtraLightColor
public java.awt.Color getExtraLightColor()
Description copied from interface:SchemeBaseColorsRetrieves the extra color.- Returns:
- Extra color.
-
getLightColor
public java.awt.Color getLightColor()
Description copied from interface:SchemeBaseColorsRetrieves the light color.- Returns:
- Light color.
-
getMidColor
public java.awt.Color getMidColor()
Description copied from interface:SchemeBaseColorsRetrieves the medium color.- Returns:
- Medium color.
-
getDarkColor
public java.awt.Color getDarkColor()
Description copied from interface:SchemeBaseColorsRetrieves the dark color.- Returns:
- Dark color.
-
getUltraDarkColor
public java.awt.Color getUltraDarkColor()
Description copied from interface:SchemeBaseColorsRetrieves 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
public RadianceColorScheme getFirstScheme()
Returns the main original color scheme.- Returns:
- The main original color scheme.
-
getSecondScheme
public RadianceColorScheme getSecondScheme()
Returns the secondary original color scheme.- Returns:
- The secondary original color scheme.
-
-