Package com.iizix.prop.ui.chart.axis2d
Enum AxisNumber
- java.lang.Object
- java.lang.Enum<AxisNumber>
- com.iizix.prop.ui.chart.axis2d.AxisNumber
- All Implemented Interfaces:
IPropCnrNumber
,java.io.Serializable
,java.lang.Comparable<AxisNumber>
public enum AxisNumber extends java.lang.Enum<AxisNumber> implements IPropCnrNumber
The Axis2D number settings the can be set or retrieved.- Author:
- Christopher Mindus
Enum Constant Summary
Enum Constants Enum Constant Description FROM
The "from" value forces the chart to render data visible from this value, not defined by default as Double.NaN.MAJOR_TICK_STEP
The amount to skip before a major tick is drawn.MAXIMUM
The maximum value or Double.NaN for default, i.e.MICRO_TICK_STEP
The amount to skip before a micro tick is drawn.MINIMUM
The minimum value or Double.NaN for default, i.e.MINOR_TICK_STEP
The amount to skip before a minor tick is drawn.TO
The "to" value forces the chart to render data visible to this value or, not defined by default as Double.NaN.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getDefaultValue()
Gets the default value when the property is not set.java.lang.String
getPropName()
Returns the name of the property, usually starting with '$'.static AxisNumber
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AxisNumber[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.iizix.prop.IPropCnrNumber
validate
Enum Constant Detail
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 Detail
values
public static AxisNumber[] 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 (AxisNumber c : AxisNumber.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static AxisNumber valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
getDefaultValue
public double getDefaultValue()
Gets the default value when the property is not set.- Specified by:
getDefaultValue
in interfaceIPropCnrNumber
getPropName
public java.lang.String getPropName()
Returns the name of the property, usually starting with '$'.- Specified by:
getPropName
in interfaceIPropCnrNumber