Class DerivedColorsResolverLight
- java.lang.Object
-
- org.pushingpixels.substance.api.colorscheme.DerivedColorsResolverLight
-
- All Implemented Interfaces:
SchemeDerivedColorsResolver
public class DerivedColorsResolverLight extends Object implements 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 Constructor Description DerivedColorsResolverLight()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Color
getBackgroundFillColor(SubstanceColorScheme colorScheme)
Returns the background fill color forthis
scheme.Color
getFocusRingColor(SubstanceColorScheme colorScheme)
Returns the focus ring color forthis
scheme.Color
getLineColor(SubstanceColorScheme colorScheme)
Returns the line color forthis
scheme.Color
getSelectionBackgroundColor(SubstanceColorScheme colorScheme)
Returns the selection background color forthis
scheme.Color
getSelectionForegroundColor(SubstanceColorScheme colorScheme)
Returns the selection foreground color forthis
scheme.Color
getTextBackgroundFillColor(SubstanceColorScheme colorScheme)
Returns the text background fill color forthis
scheme.Color
getWatermarkDarkColor(SubstanceColorScheme colorScheme)
Returns the watermark dark color forthis
scheme.Color
getWatermarkLightColor(SubstanceColorScheme colorScheme)
Returns the watermark light color forthis
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.
-
-
-
Method Detail
-
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
public SchemeDerivedColorsResolver 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
public Color getWatermarkStampColor(SubstanceColorScheme colorScheme)
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
public Color getWatermarkLightColor(SubstanceColorScheme colorScheme)
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
public Color getWatermarkDarkColor(SubstanceColorScheme colorScheme)
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
public Color getLineColor(SubstanceColorScheme colorScheme)
Description copied from interface:SchemeDerivedColorsResolver
Returns the line color forthis
scheme.- Specified by:
getLineColor
in interfaceSchemeDerivedColorsResolver
- Returns:
- The line color for
this
scheme.
-
getSelectionForegroundColor
public Color getSelectionForegroundColor(SubstanceColorScheme colorScheme)
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
public Color getSelectionBackgroundColor(SubstanceColorScheme colorScheme)
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
public Color getBackgroundFillColor(SubstanceColorScheme colorScheme)
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
public Color getFocusRingColor(SubstanceColorScheme colorScheme)
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
public Color getTextBackgroundFillColor(SubstanceColorScheme colorScheme)
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.
-
-