Enum Class PathfinderType

java.lang.Object
java.lang.Enum<PathfinderType>
com.vaadin.flow.component.charts.model.PathfinderType
All Implemented Interfaces:
ChartEnum, Serializable, Comparable<PathfinderType>, Constable

public enum PathfinderType extends Enum<PathfinderType> implements ChartEnum
Pathfinder algorithm to use for chart that can connect two points (e.g. series items).
  • Enum Constant Details

    • STRAIGHT

      public static final PathfinderType STRAIGHT
      Draws a straight line between the connecting points. Does not avoid other points when drawing.
    • SIMPLE_CONNECT

      public static final PathfinderType SIMPLE_CONNECT
      Finds a path between the points using right angles only. Takes only starting/ending points into account, and will not avoid other points.
    • FAST_AVOID

      public static final PathfinderType FAST_AVOID
      Finds a path between the points using right angles only. Will attempt to avoid other points, but its focus is performance over accuracy. Works well with less dense datasets.
  • Method Details

    • values

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

      public static PathfinderType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

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