Interface RadianceColorScheme
-
- All Superinterfaces:
RadianceTrait
,SchemeBaseColors
,SchemeDerivedColors
- All Known Implementing Classes:
AquaColorScheme
,BarbyPinkColorScheme
,BaseColorScheme
,BaseDarkColorScheme
,BaseLightColorScheme
,BelizeColorScheme
,BladeColorScheme
,BlendBiColorScheme
,BloodyMoonColorScheme
,BlueYonderColorScheme
,BottleGreenColorScheme
,BrickWallColorScheme
,BrownColorScheme
,BrownVelvetColorScheme
,CharcoalColorScheme
,CobaltSteelColorScheme
,ColorBlindColorScheme
,CremeColorScheme
,DarkGrayColorScheme
,DarkMetallicColorScheme
,DarkVioletColorScheme
,DesertMarsColorScheme
,DesertSandColorScheme
,DeuteranopiaColorScheme
,EarthFrescoColorScheme
,EbonyColorScheme
,EmeraldGrassColorScheme
,FauveMauveColorScheme
,GooseberryJungleColorScheme
,GreenPearlColorScheme
,HueShiftColorScheme
,InvertedColorScheme
,JadeForestColorScheme
,LightAquaColorScheme
,LightGrayColorScheme
,LimeGreenColorScheme
,MahoganyColorScheme
,MetallicColorScheme
,MixColorScheme
,NegatedColorScheme
,OliveColorScheme
,OrangeColorScheme
,OrchidAlloyColorScheme
,PeachColorScheme
,PlacidPinkColorScheme
,ProtanopiaColorScheme
,PurpleColorScheme
,RaspberryColorScheme
,SaturatedColorScheme
,SepiaColorScheme
,ShadeColorScheme
,ShiftColorScheme
,SkyHighColorScheme
,SpringLeafColorScheme
,SteelBlueColorScheme
,SunfireRedColorScheme
,SunGlareColorScheme
,SunsetColorScheme
,TerracottaColorScheme
,TintColorScheme
,ToneColorScheme
,TritanopiaColorScheme
,TurquoiseLakeColorScheme
,UltramarineColorScheme
,WildPineColorScheme
,YellowMarineColorScheme
public interface RadianceColorScheme extends RadianceTrait, SchemeBaseColors, SchemeDerivedColors
General interface for color schemes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RadianceColorScheme
blendWith(RadianceColorScheme otherScheme, double likenessToThisScheme)
Creates a blended version ofthis
color scheme based on another color scheme.default RadianceIcon.ColorFilter
getColorFilter(float brightnessFactor, float alpha)
RadianceColorScheme
hueShift(double hueShiftFactor)
Creates a hue-shifted (in HSB space) version ofthis
color scheme.RadianceColorScheme
invert()
Creates an inverted version ofthis
scheme.boolean
isDark()
Returns indication whether this color scheme uses dark colors.RadianceColorScheme
named(java.lang.String colorSchemeDisplayName)
This method is a fluent-interface builder utility for setting the display name for this color scheme.RadianceColorScheme
negate()
Creates a negated version ofthis
scheme.RadianceColorScheme
saturate(double saturateFactor)
Creates a saturated or desaturated version ofthis
scheme.RadianceColorScheme
shade(double shadeFactor)
Creates a shaded (shifted towards black) version ofthis
color scheme.RadianceColorScheme
shift(java.awt.Color backgroundShiftColor, double backgroundShiftFactor, java.awt.Color foregroundShiftColor, double foregroundShiftFactor)
Creates a shift version ofthis
scheme.RadianceColorScheme
shiftBackground(java.awt.Color backgroundShiftColor, double backgroundShiftFactor)
Creates a shift version ofthis
scheme.RadianceColorScheme
tint(double tintFactor)
Creates a tinted (shifted towards white) version ofthis
color scheme.RadianceColorScheme
tone(double toneFactor)
Creates a toned (shifted towards gray) version ofthis
color scheme.-
Methods inherited from interface org.pushingpixels.radiance.theming.api.trait.RadianceTrait
getDisplayName
-
Methods inherited from interface org.pushingpixels.radiance.theming.api.colorscheme.SchemeBaseColors
getDarkColor, getExtraLightColor, getForegroundColor, getLightColor, getMidColor, getUltraDarkColor, getUltraLightColor, toImage
-
Methods inherited from interface org.pushingpixels.radiance.theming.api.colorscheme.SchemeDerivedColors
getAccentedBackgroundFillColor, getBackgroundFillColor, getEchoColor, getFocusRingColor, getLineColor, getMarkColor, getSelectionBackgroundColor, getSelectionForegroundColor, getSeparatorPrimaryColor, getSeparatorSecondaryColor, getTextBackgroundFillColor
-
-
-
-
Method Detail
-
isDark
boolean isDark()
Returns indication whether this color scheme uses dark colors. Note that this method may be removed in the future. It is highly recommended to use one of the colors from the parentSchemeBaseColors
andSchemeDerivedColors
interfaces instead.- Returns:
true
if this color scheme uses dark colors,false
otherwise.
-
shift
RadianceColorScheme shift(java.awt.Color backgroundShiftColor, double backgroundShiftFactor, java.awt.Color foregroundShiftColor, double foregroundShiftFactor)
Creates a shift version ofthis
scheme.- Parameters:
backgroundShiftColor
- Shift color for background colors. Should have full opacity.backgroundShiftFactor
- Value in 0.0...1.0 range. Larger values shift more towards the specified color.foregroundShiftColor
- Shift color for foreground colors. Should have full opacity.foregroundShiftFactor
- Value in 0.0...1.0 range. Larger values shift more towards the specified color.- Returns:
- Shift version of
this
scheme.
-
shiftBackground
RadianceColorScheme shiftBackground(java.awt.Color backgroundShiftColor, double backgroundShiftFactor)
Creates a shift version ofthis
scheme.- Parameters:
backgroundShiftColor
- Shift color for background colors. Should have full opacity.backgroundShiftFactor
- Value in 0.0...1.0 range. Larger values shift more towards the specified color.- Returns:
- Shift version of
this
scheme that does not change the foreground color.
-
tint
RadianceColorScheme tint(double tintFactor)
Creates a tinted (shifted towards white) version ofthis
color scheme.- Parameters:
tintFactor
- Value in 0.0...1.0 range. Larger values shift more towards white color.- Returns:
- Tinted version of
this
scheme.
-
tone
RadianceColorScheme tone(double toneFactor)
Creates a toned (shifted towards gray) version ofthis
color scheme.- Parameters:
toneFactor
- Value in 0.0...1.0 range. Larger values shift more towards gray color.- Returns:
- Toned version of
this
scheme.
-
shade
RadianceColorScheme shade(double shadeFactor)
Creates a shaded (shifted towards black) version ofthis
color scheme.- Parameters:
shadeFactor
- Value in 0.0...1.0 range. Larger values shift more towards black color.- Returns:
- Shaded version of
this
scheme.
-
saturate
RadianceColorScheme saturate(double saturateFactor)
Creates a saturated or desaturated version ofthis
scheme. The value and brightness stay the same.- 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.
-
invert
RadianceColorScheme invert()
Creates an inverted version ofthis
scheme.- Returns:
- Inverted version of
this
scheme.
-
negate
RadianceColorScheme negate()
Creates a negated version ofthis
scheme.- Returns:
- Negated version of
this
scheme.
-
hueShift
RadianceColorScheme hueShift(double hueShiftFactor)
Creates a hue-shifted (in HSB space) version ofthis
color scheme.- Parameters:
hueShiftFactor
- Value in -1.0...1.0 range.- Returns:
- Hue-shifted version of
this
scheme.
-
blendWith
RadianceColorScheme blendWith(RadianceColorScheme otherScheme, double likenessToThisScheme)
Creates a blended version ofthis
color scheme based on another color scheme.- 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.
-
named
RadianceColorScheme named(java.lang.String colorSchemeDisplayName)
This method is a fluent-interface builder utility for setting the display name for this color scheme. The implementation must return the samethis
instance.- Parameters:
colorSchemeDisplayName
- New display name for this color scheme.- Returns:
- This color scheme.
-
getColorFilter
default RadianceIcon.ColorFilter getColorFilter(float brightnessFactor, float alpha)
-
-