Class DerivedColorsResolverLight
java.lang.Object
org.pushingpixels.substance.api.colorscheme.DerivedColorsResolverLight
- All Implemented Interfaces:
SchemeDerivedColorsResolver
Resolver of derived colors for light color schemes. This class is not
accessible outside the package and is for internal use only.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBackgroundFillColor
(SubstanceColorScheme colorScheme) Returns the background fill color forthis
scheme.getFocusRingColor
(SubstanceColorScheme colorScheme) Returns the focus ring color forthis
scheme.getLineColor
(SubstanceColorScheme colorScheme) Returns the line color forthis
scheme.getSelectionBackgroundColor
(SubstanceColorScheme colorScheme) Returns the selection background color forthis
scheme.getSelectionForegroundColor
(SubstanceColorScheme colorScheme) Returns the selection foreground color forthis
scheme.getTextBackgroundFillColor
(SubstanceColorScheme colorScheme) Returns the text background fill color forthis
scheme.getWatermarkDarkColor
(SubstanceColorScheme colorScheme) Returns the watermark dark color forthis
scheme.getWatermarkLightColor
(SubstanceColorScheme colorScheme) Returns the watermark light color forthis
scheme.getWatermarkStampColor
(SubstanceColorScheme colorScheme) Resolves a derived color for a given color scheme.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.
-
Constructor Details
-
DerivedColorsResolverLight
public DerivedColorsResolverLight()
-
-
Method Details
-
isDark
public boolean isDark()Description copied from interface:SchemeDerivedColorsResolver
Determines if this resolver is for dark color schemes.- Specified by:
isDark
in interfaceSchemeDerivedColorsResolver
- Returns:
true
if it should be used in dark schemes
-
invert
Description copied from interface:SchemeDerivedColorsResolver
Inverts this resolver, for use with inverted color schemes and switching from light to dark schemes or vice versa.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 returnthis
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; }
- Specified by:
invert
in interfaceSchemeDerivedColorsResolver
- Returns:
- an inversion of this resolver
-
getWatermarkStampColor
Description copied from interface:SchemeDerivedColorsResolver
Resolves a derived color for a given color scheme.- Specified by:
getWatermarkStampColor
in interfaceSchemeDerivedColorsResolver
- Returns:
- the watermark stamp color for the supplied scheme.
-
getWatermarkLightColor
Description copied from interface:SchemeDerivedColorsResolver
Returns the watermark light color forthis
scheme.- Specified by:
getWatermarkLightColor
in interfaceSchemeDerivedColorsResolver
- Returns:
- Watermark light color for
this
scheme.
-
getWatermarkDarkColor
Description copied from interface:SchemeDerivedColorsResolver
Returns the watermark dark color forthis
scheme.- Specified by:
getWatermarkDarkColor
in interfaceSchemeDerivedColorsResolver
- Returns:
- Watermark dark color for
this
scheme.
-
getLineColor
Description copied from interface:SchemeDerivedColorsResolver
Returns the line color forthis
scheme.- Specified by:
getLineColor
in interfaceSchemeDerivedColorsResolver
- Returns:
- The line color for
this
scheme.
-
getSelectionForegroundColor
Description copied from interface:SchemeDerivedColorsResolver
Returns the selection foreground color forthis
scheme.- Specified by:
getSelectionForegroundColor
in interfaceSchemeDerivedColorsResolver
- Returns:
- The selection foreground color for
this
scheme.
-
getSelectionBackgroundColor
Description copied from interface:SchemeDerivedColorsResolver
Returns the selection background color forthis
scheme.- Specified by:
getSelectionBackgroundColor
in interfaceSchemeDerivedColorsResolver
- Returns:
- The selection background color for
this
scheme.
-
getBackgroundFillColor
Description copied from interface:SchemeDerivedColorsResolver
Returns the background fill color forthis
scheme.- Specified by:
getBackgroundFillColor
in interfaceSchemeDerivedColorsResolver
- Returns:
- The background fill color for
this
scheme.
-
getFocusRingColor
Description copied from interface:SchemeDerivedColorsResolver
Returns the focus ring color forthis
scheme.- Specified by:
getFocusRingColor
in interfaceSchemeDerivedColorsResolver
- Returns:
- The focus ring color for
this
scheme.
-
getTextBackgroundFillColor
Description copied from interface:SchemeDerivedColorsResolver
Returns the text background fill color forthis
scheme.- Specified by:
getTextBackgroundFillColor
in interfaceSchemeDerivedColorsResolver
- Returns:
- The text background fill color for
this
scheme.
-