Enum Class AxisNumber

java.lang.Object
java.lang.Enum<AxisNumber>
com.iizix.prop.ui.chart.axis2d.AxisNumber
All Implemented Interfaces:
IPropCnrNumber, Serializable, Comparable<AxisNumber>, Constable

public enum AxisNumber extends Enum<AxisNumber> implements IPropCnrNumber
The Axis2D number settings the can be set or retrieved.
Author:
Christopher Mindus
  • Enum Constant Details

    • MINIMUM

      public static final AxisNumber MINIMUM
      The minimum value or Double.NaN for default, i.e. automatic.
    • MAXIMUM

      public static final AxisNumber MAXIMUM
      The maximum value or Double.NaN for default, i.e. automatic.
    • FROM

      public static final AxisNumber FROM
      The "from" value forces the chart to render data visible from this value, not defined by default as Double.NaN.
    • TO

      public static final AxisNumber TO
      The "to" value forces the chart to render data visible to this value or, not defined by default as Double.NaN.
    • MAJOR_TICK_STEP

      public static final AxisNumber MAJOR_TICK_STEP
      The amount to skip before a major tick is drawn. When not set the major ticks step is computed from the data range.

      Default 4.0.

    • MINOR_TICK_STEP

      public static final AxisNumber MINOR_TICK_STEP
      The amount to skip before a minor tick is drawn. When not set the minor ticks step is computed from the data range.

      Default 2.0.

    • MICRO_TICK_STEP

      public static final AxisNumber MICRO_TICK_STEP
      The amount to skip before a micro tick is drawn. When not set the micro ticks step is computed from. the data range.

      Default 1.0.

  • Method Details

    • values

      public static AxisNumber[] 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 AxisNumber 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
    • getDefaultValue

      public double getDefaultValue()
      Gets the default value when the property is not set.
      Specified by:
      getDefaultValue in interface IPropCnrNumber
    • getPropName

      public String getPropName()
      Returns the name of the property, usually starting with '$'.
      Specified by:
      getPropName in interface IPropCnrNumber