Interface ColorScheme
-
- All Superinterfaces:
Key
- All Known Implementing Classes:
BrewerScheme
,GoogleChartScheme
,GwtMaterialScheme
,OfficeScheme
,TableauScheme
public interface ColorScheme extends Key
This interface defines what a color scheme must have in terms of methods.
A color scheme must have:
- name is the name of color scheme
- category is the category of color scheme. Out of the box there are 3 categories: brewer, office and tableau.
- colors is a list of colors which are composing a color scheme
This can be instantiated also for custom schemes, on top of the provided ones.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default String
category()
Returns the color scheme category.List<IsColor>
getColors()
Returns a list of colors which are composing a color scheme.static boolean
isValid(ColorScheme scheme)
Returnstrue
if color scheme passed as argument is notnull
and its properties are notnull
.
-
-
-
Method Detail
-
isValid
static boolean isValid(ColorScheme scheme)
Returnstrue
if color scheme passed as argument is notnull
and its properties are notnull
.- Parameters:
scheme
- color scheme to be checked- Returns:
true
if color scheme passed as argument is notnull
and its properties are notnull
-
category
default String category()
Returns the color scheme category. If not implemented, the default isColorSchemesOptions.DEFAULT_SCHEME_CATEGORY
.- Returns:
- the color scheme category. If not implemented, the default is
ColorSchemesOptions.DEFAULT_SCHEME_CATEGORY
-
-