Enum AxisType

  • All Implemented Interfaces:
    ChartEnum, Serializable, Comparable<AxisType>

    public enum AxisType
    extends Enum<AxisType>
    implements ChartEnum
    Enum representing different axis types. Can be one of LINEAR, LOGARITHMIC, CATEGORY or DATETIME. In a DATETIME axis, the numbers are given in milliseconds (or as Dates), and tick marks are placed on appropriate values like full hours or days. The default for new axes is LINEAR. CATEGORY is a convenience mode for where the point names of the first series are used for categories - avoiding the need to call Axis.setCategories(String...).
    • Enum Constant Detail

      • LINEAR

        public static final AxisType LINEAR
      • LOGARITHMIC

        public static final AxisType LOGARITHMIC
      • DATETIME

        public static final AxisType DATETIME
        In axis mode, the numbers are given in milliseconds (or as Date s), and tick marks are placed on appropriate values like full hours or days and formatted appropriately.
      • CATEGORY

        public static final AxisType CATEGORY
        a convenience mode for where the point names of the first series are used for categories - avoiding the need to call Axis.setCategories(String...). Note that mode does not affect "x" value, so all series must have same points defined in same order.
    • Method Detail

      • values

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

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