Enum Class CurveType

java.lang.Object
java.lang.Enum<CurveType>
com.jbstrap.ui.components.charts.params.enums.CurveType
All Implemented Interfaces:
Serializable, Comparable<CurveType>, Constable

public enum CurveType extends Enum<CurveType>
Chart value marker curve types.
Since:
4.0
Author:
JBStrap
  • Enum Constant Details

    • STEPPED_START

      public static final CurveType STEPPED_START
      A stepped line chart where data points are displayed at the start of each step.
    • STRAIGHT

      public static final CurveType STRAIGHT
      A line chart with straight line segments connecting data points.
    • SMOOTH

      public static final CurveType SMOOTH
      A spline chart where data points are connected with smoothed curves.
    • STEPPED_END

      public static final CurveType STEPPED_END
      A stepped line chart where data points are displayed at the end of each step.
    • STEPPED_CENETR

      public static final CurveType STEPPED_CENETR
      Centered stepped chart: data points are displayed in the center of each step.
  • Method Details

    • values

      public static CurveType[] 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 CurveType 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<CurveType>
    • fromName

      public static CurveType fromName(String name)
      Determines a curve type by its name.
      Parameters:
      name - Curve type name
      Returns:
      Curve type for the specified name or null if there is no curve type for the specified name