SchemeDerivedColorsResolverpublic class DerivedColorsResolverLight extends Object implements SchemeDerivedColorsResolver
| Constructor | Description |
|---|---|
DerivedColorsResolverLight() |
| Modifier and Type | Method | Description |
|---|---|---|
Color |
getBackgroundFillColor(SubstanceColorScheme colorScheme) |
Returns the background fill color for
this scheme. |
Color |
getFocusRingColor(SubstanceColorScheme colorScheme) |
Returns the focus ring color for
this scheme. |
Color |
getLineColor(SubstanceColorScheme colorScheme) |
Returns the line color for
this scheme. |
Color |
getSelectionBackgroundColor(SubstanceColorScheme colorScheme) |
Returns the selection background color for
this scheme. |
Color |
getSelectionForegroundColor(SubstanceColorScheme colorScheme) |
Returns the selection foreground color for
this scheme. |
Color |
getTextBackgroundFillColor(SubstanceColorScheme colorScheme) |
Returns the text background fill color for
this scheme. |
Color |
getWatermarkDarkColor(SubstanceColorScheme colorScheme) |
Returns the watermark dark color for
this scheme. |
Color |
getWatermarkLightColor(SubstanceColorScheme colorScheme) |
Returns the watermark light color for
this scheme. |
Color |
getWatermarkStampColor(SubstanceColorScheme colorScheme) |
Resolves a derived color for a given color scheme.
|
SchemeDerivedColorsResolver |
invert() |
Inverts this resolver, for use with inverted color schemes and switching from light to dark
schemes or vice versa.
|
boolean |
isDark() |
Determines if this resolver is for dark color schemes.
|
public boolean isDark()
SchemeDerivedColorsResolverisDark in interface SchemeDerivedColorsResolvertrue if it should be used in dark schemespublic SchemeDerivedColorsResolver invert()
SchemeDerivedColorsResolver
Some resolvers may not support this option. They may choose to throw an
UnsupportedOperationException in that case. Instead of throwing the exception
developers may choose to simply return this signifying that the resolver cannot be
inverted. Another option would be to use assertions, allowing the developers to discover
mistakes during creation, but still being useful for clients:
public void SchemeDerivedColorsResolver invert() {
assert false : "this resolver cannot be inverted";
return this;
}
invert in interface SchemeDerivedColorsResolverpublic Color getWatermarkStampColor(SubstanceColorScheme colorScheme)
SchemeDerivedColorsResolvergetWatermarkStampColor in interface SchemeDerivedColorsResolverpublic Color getWatermarkLightColor(SubstanceColorScheme colorScheme)
SchemeDerivedColorsResolverthis scheme.getWatermarkLightColor in interface SchemeDerivedColorsResolverthis scheme.public Color getWatermarkDarkColor(SubstanceColorScheme colorScheme)
SchemeDerivedColorsResolverthis scheme.getWatermarkDarkColor in interface SchemeDerivedColorsResolverthis scheme.public Color getLineColor(SubstanceColorScheme colorScheme)
SchemeDerivedColorsResolverthis scheme.getLineColor in interface SchemeDerivedColorsResolverthis scheme.public Color getSelectionForegroundColor(SubstanceColorScheme colorScheme)
SchemeDerivedColorsResolverthis scheme.getSelectionForegroundColor in interface SchemeDerivedColorsResolverthis scheme.public Color getSelectionBackgroundColor(SubstanceColorScheme colorScheme)
SchemeDerivedColorsResolverthis scheme.getSelectionBackgroundColor in interface SchemeDerivedColorsResolverthis scheme.public Color getBackgroundFillColor(SubstanceColorScheme colorScheme)
SchemeDerivedColorsResolverthis scheme.getBackgroundFillColor in interface SchemeDerivedColorsResolverthis scheme.public Color getFocusRingColor(SubstanceColorScheme colorScheme)
SchemeDerivedColorsResolverthis scheme.getFocusRingColor in interface SchemeDerivedColorsResolverthis scheme.public Color getTextBackgroundFillColor(SubstanceColorScheme colorScheme)
SchemeDerivedColorsResolverthis scheme.getTextBackgroundFillColor in interface SchemeDerivedColorsResolverthis scheme.