SchemeBaseColors, SchemeDerivedColors, SubstanceColorScheme, SubstanceTraitBaseDarkColorScheme, BaseLightColorSchemepublic abstract class BaseColorScheme extends java.lang.Object implements SubstanceColorScheme
| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.String |
displayName |
Display name of this color scheme.
|
protected boolean |
isDark |
Indicates whether this color scheme is dark.
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
BaseColorScheme(java.lang.String displayName,
boolean isDark) |
Constructs the basic functionality of a color scheme.
|
| Modifier and Type | Method | Description |
|---|---|---|
SubstanceColorScheme |
blendWith(SubstanceColorScheme otherScheme,
double likenessToThisScheme) |
Creates a blended version of
this color scheme based on another
color scheme. |
java.awt.Color |
getBackgroundFillColor() |
Returns the background fill color for
this scheme. |
java.lang.String |
getDisplayName() |
Returns the display name of
this trait. |
java.awt.Color |
getFocusRingColor() |
Returns the focus ring color for
this scheme. |
java.awt.Color |
getLineColor() |
Returns the line color for
this scheme. |
java.awt.Color |
getSelectionBackgroundColor() |
Returns the selection background color for
this scheme. |
java.awt.Color |
getSelectionForegroundColor() |
Returns the selection foreground color for
this scheme. |
java.awt.Color |
getSeparatorDarkColor() |
Returns the dark separator color for
this scheme. |
java.awt.Color |
getSeparatorLightColor() |
Returns the light separator color for
this scheme. |
java.awt.Color |
getSeparatorShadowColor() |
Returns the shadow separator color for
this scheme. |
java.awt.Color |
getTextBackgroundFillColor() |
Returns the text background fill color for
this scheme. |
SubstanceColorScheme |
hueShift(double hueShiftFactor) |
Creates a hue-shifted (in HSB space) version of
this color
scheme. |
SubstanceColorScheme |
invert() |
Creates an inverted version of
this scheme. |
boolean |
isDark() |
Returns indication whether this color scheme uses dark colors.
|
SubstanceColorScheme |
named(java.lang.String colorSchemeDisplayName) |
This method is a fluent-interface builder utility for setting the display
name for this color scheme.
|
SubstanceColorScheme |
negate() |
Creates a negated version of
this scheme. |
SubstanceColorScheme |
saturate(double saturateFactor) |
Creates a saturated or desaturated version of
this scheme. |
SubstanceColorScheme |
shade(double shadeFactor) |
Creates a shaded (shifted towards black) version of
this
color scheme. |
SubstanceColorScheme |
shift(java.awt.Color backgroundShiftColor,
double backgroundShiftFactor,
java.awt.Color foregroundShiftColor,
double foregroundShiftFactor) |
Creates a shift version of
this scheme. |
SubstanceColorScheme |
shiftBackground(java.awt.Color backgroundShiftColor,
double backgroundShiftFactor) |
Creates a shift version of
this scheme. |
SubstanceColorScheme |
tint(double tintFactor) |
Creates a tinted (shifted towards white) version of
this
color scheme. |
SubstanceColorScheme |
tone(double toneFactor) |
Creates a toned (shifted towards gray) version of
this color
scheme. |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDarkColor, getExtraLightColor, getForegroundColor, getLightColor, getMidColor, getUltraDarkColor, getUltraLightColor, toImageprotected boolean isDark
protected java.lang.String displayName
protected BaseColorScheme(java.lang.String displayName,
boolean isDark)
displayName - Display name.isDark - Indication whether the color scheme is dark.public final java.lang.String getDisplayName()
SubstanceTraitthis trait. This method is part
of officially supported API.getDisplayName in interface SubstanceTraitthis trait.public final boolean isDark()
SubstanceColorSchemeisDark in interface SubstanceColorSchemetrue if this color scheme uses dark colors,
false otherwise.public final SubstanceColorScheme shift(java.awt.Color backgroundShiftColor, double backgroundShiftFactor, java.awt.Color foregroundShiftColor, double foregroundShiftFactor)
SubstanceColorSchemethis scheme.shift in interface SubstanceColorSchemebackgroundShiftColor - 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.this scheme.public final SubstanceColorScheme shiftBackground(java.awt.Color backgroundShiftColor, double backgroundShiftFactor)
SubstanceColorSchemethis scheme.shiftBackground in interface SubstanceColorSchemebackgroundShiftColor - 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.this scheme that does not change
the foreground color.public SubstanceColorScheme tint(double tintFactor)
SubstanceColorSchemethis
color scheme.tint in interface SubstanceColorSchemetintFactor - Value in 0.0...1.0 range. Larger values shift more towards
white color.this scheme.public SubstanceColorScheme tone(double toneFactor)
SubstanceColorSchemethis color
scheme.tone in interface SubstanceColorSchemetoneFactor - Value in 0.0...1.0 range. Larger values shift more towards
gray color.this scheme.public SubstanceColorScheme shade(double shadeFactor)
SubstanceColorSchemethis
color scheme.shade in interface SubstanceColorSchemeshadeFactor - Value in 0.0...1.0 range. Larger values shift more towards
black color.this scheme.public SubstanceColorScheme saturate(double saturateFactor)
SubstanceColorSchemethis scheme.
The value and brightness stay the same.saturate in interface SubstanceColorSchemesaturateFactor - Value in -1.0...1.0 range. Positive values create more
saturated colors. Negative values create more desaturated
colors.this scheme.public SubstanceColorScheme invert()
SubstanceColorSchemethis scheme.invert in interface SubstanceColorSchemethis scheme.public SubstanceColorScheme negate()
SubstanceColorSchemethis scheme.negate in interface SubstanceColorSchemethis scheme.public SubstanceColorScheme hueShift(double hueShiftFactor)
SubstanceColorSchemethis color
scheme.hueShift in interface SubstanceColorSchemehueShiftFactor - Value in -1.0...1.0 range.this scheme.public SubstanceColorScheme blendWith(SubstanceColorScheme otherScheme, double likenessToThisScheme)
SubstanceColorSchemethis color scheme based on another
color scheme.blendWith in interface SubstanceColorSchemeotherScheme - 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.public java.awt.Color getBackgroundFillColor()
SchemeDerivedColorsthis scheme.getBackgroundFillColor in interface SchemeDerivedColorsthis scheme.public java.awt.Color getFocusRingColor()
SchemeDerivedColorsthis scheme.getFocusRingColor in interface SchemeDerivedColorsthis scheme.SubstanceSkin.getOverlayColor(SubstanceSlices.ColorOverlayType, SubstanceSlices.DecorationAreaType, ComponentState)public java.awt.Color getLineColor()
SchemeDerivedColorsthis scheme.getLineColor in interface SchemeDerivedColorsthis scheme.SubstanceSkin.getOverlayColor(SubstanceSlices.ColorOverlayType, SubstanceSlices.DecorationAreaType, ComponentState)public java.awt.Color getSelectionForegroundColor()
SchemeDerivedColorsthis scheme.getSelectionForegroundColor in interface SchemeDerivedColorsthis scheme.public java.awt.Color getSelectionBackgroundColor()
SchemeDerivedColorsthis scheme.getSelectionBackgroundColor in interface SchemeDerivedColorsthis scheme.public java.awt.Color getTextBackgroundFillColor()
SchemeDerivedColorsthis scheme.getTextBackgroundFillColor in interface SchemeDerivedColorsthis scheme.public java.awt.Color getSeparatorLightColor()
SchemeDerivedColorsthis scheme.getSeparatorLightColor in interface SchemeDerivedColorsthis scheme.public java.awt.Color getSeparatorDarkColor()
SchemeDerivedColorsthis scheme.getSeparatorDarkColor in interface SchemeDerivedColorsthis scheme.public java.awt.Color getSeparatorShadowColor()
SchemeDerivedColorsthis scheme.getSeparatorShadowColor in interface SchemeDerivedColorsthis scheme.public final SubstanceColorScheme named(java.lang.String colorSchemeDisplayName)
SubstanceColorSchemethis instance.named in interface SubstanceColorSchemecolorSchemeDisplayName - New display name for this color scheme.public java.lang.String toString()
toString in class java.lang.Object