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 Detail

      • isValid

        static boolean isValid​(ColorScheme scheme)
        Returns true if color scheme passed as argument is not null and its properties are not null.
        Parameters:
        scheme - color scheme to be checked
        Returns:
        true if color scheme passed as argument is not null and its properties are not null
      • getColors

        List<IsColor> getColors()
        Returns a list of colors which are composing a color scheme.
        Returns:
        a list of colors which are composing a color scheme