Interface ColorLibrary

  • All Known Implementing Classes:
    ListBasedColorLibrary

    public interface ColorLibrary
    Color scheme interface
    Since:
    0.2
    Author:
    Erich Schubert
    • Field Detail

      • COLOR_LINE_COLORS

        static final java.lang.String COLOR_LINE_COLORS
        List of line colors
        See Also:
        Constant Field Values
      • COLOR_PAGE_BACKGROUND

        static final java.lang.String COLOR_PAGE_BACKGROUND
        Named color for the page background
        See Also:
        Constant Field Values
      • COLOR_AXIS_LINE

        static final java.lang.String COLOR_AXIS_LINE
        Named color for a typical axis
        See Also:
        Constant Field Values
      • COLOR_AXIS_TICK

        static final java.lang.String COLOR_AXIS_TICK
        Named color for a typical axis tick mark
        See Also:
        Constant Field Values
      • COLOR_AXIS_MINOR_TICK

        static final java.lang.String COLOR_AXIS_MINOR_TICK
        Named color for a typical axis tick mark
        See Also:
        Constant Field Values
      • COLOR_AXIS_LABEL

        static final java.lang.String COLOR_AXIS_LABEL
        Named color for a typical axis label
        See Also:
        Constant Field Values
      • COLOR_KEY_BACKGROUND

        static final java.lang.String COLOR_KEY_BACKGROUND
        Named color for the background of the key box
        See Also:
        Constant Field Values
      • COLOR_KEY_LABEL

        static final java.lang.String COLOR_KEY_LABEL
        Named color for a label in the key part
        See Also:
        Constant Field Values
      • COLOR_PLOT_BACKGROUND

        static final java.lang.String COLOR_PLOT_BACKGROUND
        Background color for plot area
        See Also:
        Constant Field Values
    • Method Detail

      • getNumberOfNativeColors

        int getNumberOfNativeColors()
        Return the number of native colors available. These are guaranteed to be unique.
        Returns:
        number of native colors
      • getColor

        java.lang.String getColor​(int index)
        Return the i'th color.
        Parameters:
        index - color index
        Returns:
        color in hexadecimal notation (#aabbcc) or color name ("red") as valid in CSS and SVG.