Package com.iizix.prop.ui.chart.axis2d
Enum AxisFixUpper
- java.lang.Object
- java.lang.Enum<AxisFixUpper>
- com.iizix.prop.ui.chart.axis2d.AxisFixUpper
- All Implemented Interfaces:
IPropCnrChoiceOption<IAxisChoiceOption>
,IAxisChoiceOption
,java.io.Serializable
,java.lang.Comparable<AxisFixUpper>
public enum AxisFixUpper extends java.lang.Enum<AxisFixUpper> implements IAxisChoiceOption
This enum has the values of the alignment of the ticks and have 4 available options: MAJOR, MINOR, MICRO, and NONE. These default to NONE, and when set will force the end bounds to align to the corresponding tick division. If NONE is chosen, the end bounds will be the highest values in the data set.- Author:
- Christopher Mindus
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AxisFixUpper[]
enumValues()
Gets all the choices possible, including default.AxisFixUpper
getDefault()
Gets the default value.int
getInt()
Returns the choice as an integer value.java.lang.String
getPropName()
Gets the property name.static AxisFixUpper
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AxisFixUpper[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
NONE
public static final AxisFixUpper NONE
Default fixUpper. The end bounds will be the highest values in your data set.
MAJOR
public static final AxisFixUpper MAJOR
MINOR
public static final AxisFixUpper MINOR
MICRO
public static final AxisFixUpper MICRO
Method Detail
values
public static AxisFixUpper[] 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 (AxisFixUpper c : AxisFixUpper.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static AxisFixUpper 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
getDefault
public AxisFixUpper getDefault()
Gets the default value. This value is used to initialize the property.- Specified by:
getDefault
in interfaceIPropCnrChoiceOption<IAxisChoiceOption>
- Returns:
NONE
.
enumValues
public AxisFixUpper[] enumValues()
Gets all the choices possible, including default.- Specified by:
enumValues
in interfaceIPropCnrChoiceOption<IAxisChoiceOption>
getInt
public int getInt()
Returns the choice as an integer value.- Specified by:
getInt
in interfaceIPropCnrChoiceOption<IAxisChoiceOption>
getPropName
public java.lang.String getPropName()
Gets the property name.- Specified by:
getPropName
in interfaceIPropCnrChoiceOption<IAxisChoiceOption>