Enum HoverMode

java.lang.Object
java.lang.Enum<HoverMode>
software.xdev.chartjs.model.enums.HoverMode
All Implemented Interfaces:
Serializable, Comparable<HoverMode>

public enum HoverMode extends Enum<HoverMode>
  • Enum Constant Details

    • SINGLE

      public static final HoverMode SINGLE
      highlights the closest element
    • LABEL

      public static final HoverMode LABEL
      highlights elements in all datasets at the same X value
    • X_AXIS

      public static final HoverMode X_AXIS
      highlights elements in all datasets at the same X value, activates when hovering anywhere within the vertical slice of the x-axis representing that X value.
    • DATASET

      public static final HoverMode DATASET
      highlights the closest dataset
  • Method Details

    • values

      public static HoverMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static HoverMode 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<HoverMode>