Enum FillingMode

  • All Implemented Interfaces:
    Serializable, Comparable<FillingMode>, Key

    public enum FillingMode
    extends Enum<FillingMode>
    implements Key
    Represents how to fill the area under the line. This is an interfaces implemented on different way, as CHART.JS has implemented.
    Both line and radar charts support a fill option on the dataset object which can be used to create area between two datasets or a dataset.
    These are the different kinds of fill you can set:
    • Predefined values, mapped by Fill.
    • Absolute dataset index, as integer (1,2,3,...)
    • Relative dataset index, as string ("-1", "-2", "+1", "+2",...)
    • Predefined boolean, if true the fill is applied, othewise false.
    Author:
    Andrea "Stock" Stocchero
    • Enum Constant Detail

      • ABSOLUTE_DATASET_INDEX

        public static final FillingMode ABSOLUTE_DATASET_INDEX
        Links datasets by absolute dataset index, as integer (1,2,3,...)
      • RELATIVE_DATASET_INDEX

        public static final FillingMode RELATIVE_DATASET_INDEX
        Links datastes by relative dataset index, as string ("-1", "-2", "+1", "+2",...)
      • BASELINE

        public static final FillingMode BASELINE
        Baseline value to fill at specific axis value.
      • COLORS

        public static final FillingMode COLORS
        The fill options sets the color above and below the baseline.
      • PREDEFINED

        public static final FillingMode PREDEFINED
        Predefined values by Fill.
      • PREDEFINED_BOOLEAN

        public static final FillingMode PREDEFINED_BOOLEAN
        It is never really used, because the value is boolean.
    • Method Detail

      • values

        public static FillingMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FillingMode c : FillingMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FillingMode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • value

        public String value()
        Description copied from interface: Key
        Returns the name value of property
        Specified by:
        value in interface Key
        Returns:
        the name value of property