Enum Display

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

    public enum Display
    extends Enum<Display>
    implements Key
    The display option controls the visibility of an item.
    Controls the axis global visibility (visible when true, hidden when false).
    Author:
    Andrea "Stock" Stocchero
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AUTO
      The axis is visible only if at least one associated dataset is visible.
      For plugin or point labels, the label is hidden if it overlap with another label.
      The display 'auto' option can be used to prevent overlapping labels, based on the following rules when two labels overlap:
      if both labels are display: true, they will be drawn overlapping if both labels are display: 'auto', the one with the highest data index will be hidden.
      FALSE
      The item is hidden.
      TRUE
      This is default and the item is drawn.
    • Enum Constant Detail

      • TRUE

        public static final Display TRUE
        This is default and the item is drawn.
      • FALSE

        public static final Display FALSE
        The item is hidden.
      • AUTO

        public static final Display AUTO
        The axis is visible only if at least one associated dataset is visible.
        For plugin or point labels, the label is hidden if it overlap with another label.
        The display 'auto' option can be used to prevent overlapping labels, based on the following rules when two labels overlap:
        • if both labels are display: true, they will be drawn overlapping
        • if both labels are display: 'auto', the one with the highest data index will be hidden. If labels are at the same data index, the one with the lowest dataset index will be hidden.
        • if one label is display: true and the other one is display: 'auto', the one with 'auto' will be hidden (whatever the data/dataset indices).
    • Method Detail

      • values

        public static Display[] 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 (Display c : Display.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Display 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