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 ColorgetBackgroundFillColor(SubstanceColorScheme colorScheme)Returns the background fill color forthisscheme.ColorgetFocusRingColor(SubstanceColorScheme colorScheme)Returns the focus ring color forthisscheme.ColorgetLineColor(SubstanceColorScheme colorScheme)Returns the line color forthisscheme.ColorgetSelectionBackgroundColor(SubstanceColorScheme colorScheme)Returns the selection background color forthisscheme.ColorgetSelectionForegroundColor(SubstanceColorScheme colorScheme)Returns the selection foreground color forthisscheme.ColorgetTextBackgroundFillColor(SubstanceColorScheme colorScheme)Returns the text background fill color forthisscheme.ColorgetWatermarkDarkColor(SubstanceColorScheme colorScheme)Returns the watermark dark color forthisscheme.ColorgetWatermarkLightColor(SubstanceColorScheme colorScheme)Returns the watermark light color forthisscheme.ColorgetWatermarkStampColor(SubstanceColorScheme colorScheme)Resolves a derived color for a given color scheme.SchemeDerivedColorsResolverinvert()Inverts this resolver, for use with inverted color schemes and switching from light to dark schemes or vice versa.booleanisDark()Determines if this resolver is for dark color schemes.
-
-
-
Method Detail
-
isDark
public boolean isDark()
Description copied from interface:SchemeDerivedColorsResolverDetermines if this resolver is for dark color schemes.- Specified by:
isDarkin interfaceSchemeDerivedColorsResolver- Returns:
trueif it should be used in dark schemes
-
invert
public SchemeDerivedColorsResolver invert()
Description copied from interface:SchemeDerivedColorsResolverInverts 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
UnsupportedOperationExceptionin that case. Instead of throwing the exception developers may choose to simply returnthissignifying 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:
invertin interfaceSchemeDerivedColorsResolver- Returns:
- an inversion of this resolver
-
getWatermarkStampColor
public Color getWatermarkStampColor(SubstanceColorScheme colorScheme)
Description copied from interface:SchemeDerivedColorsResolverResolves a derived color for a given color scheme.- Specified by:
getWatermarkStampColorin interfaceSchemeDerivedColorsResolver- Returns:
- the watermark stamp color for the supplied scheme.
-
getWatermarkLightColor
public Color getWatermarkLightColor(SubstanceColorScheme colorScheme)
Description copied from interface:SchemeDerivedColorsResolverReturns the watermark light color forthisscheme.- Specified by:
getWatermarkLightColorin interfaceSchemeDerivedColorsResolver- Returns:
- Watermark light color for
thisscheme.
-
getWatermarkDarkColor
public Color getWatermarkDarkColor(SubstanceColorScheme colorScheme)
Description copied from interface:SchemeDerivedColorsResolverReturns the watermark dark color forthisscheme.- Specified by:
getWatermarkDarkColorin interfaceSchemeDerivedColorsResolver- Returns:
- Watermark dark color for
thisscheme.
-
getLineColor
public Color getLineColor(SubstanceColorScheme colorScheme)
Description copied from interface:SchemeDerivedColorsResolverReturns the line color forthisscheme.- Specified by:
getLineColorin interfaceSchemeDerivedColorsResolver- Returns:
- The line color for
thisscheme.
-
getSelectionForegroundColor
public Color getSelectionForegroundColor(SubstanceColorScheme colorScheme)
Description copied from interface:SchemeDerivedColorsResolverReturns the selection foreground color forthisscheme.- Specified by:
getSelectionForegroundColorin interfaceSchemeDerivedColorsResolver- Returns:
- The selection foreground color for
thisscheme.
-
getSelectionBackgroundColor
public Color getSelectionBackgroundColor(SubstanceColorScheme colorScheme)
Description copied from interface:SchemeDerivedColorsResolverReturns the selection background color forthisscheme.- Specified by:
getSelectionBackgroundColorin interfaceSchemeDerivedColorsResolver- Returns:
- The selection background color for
thisscheme.
-
getBackgroundFillColor
public Color getBackgroundFillColor(SubstanceColorScheme colorScheme)
Description copied from interface:SchemeDerivedColorsResolverReturns the background fill color forthisscheme.- Specified by:
getBackgroundFillColorin interfaceSchemeDerivedColorsResolver- Returns:
- The background fill color for
thisscheme.
-
getFocusRingColor
public Color getFocusRingColor(SubstanceColorScheme colorScheme)
Description copied from interface:SchemeDerivedColorsResolverReturns the focus ring color forthisscheme.- Specified by:
getFocusRingColorin interfaceSchemeDerivedColorsResolver- Returns:
- The focus ring color for
thisscheme.
-
getTextBackgroundFillColor
public Color getTextBackgroundFillColor(SubstanceColorScheme colorScheme)
Description copied from interface:SchemeDerivedColorsResolverReturns the text background fill color forthisscheme.- Specified by:
getTextBackgroundFillColorin interfaceSchemeDerivedColorsResolver- Returns:
- The text background fill color for
thisscheme.
-
-