Package com.iizix.prop.ui.chart.axis2d
Enum AxisPosition
- java.lang.Object
- java.lang.Enum<AxisPosition>
- com.iizix.prop.ui.chart.axis2d.AxisPosition
- All Implemented Interfaces:
IPropCnrChoiceOption<IAxisChoiceOption>
,IAxisChoiceOption
,java.io.Serializable
,java.lang.Comparable<AxisPosition>
public enum AxisPosition extends java.lang.Enum<AxisPosition> implements IAxisChoiceOption
The position of the axis. Values: "leftOrBottom", "center" or "rightOrTop". Default is "leftOrBottom".- Author:
- Christopher Mindus
Enum Constant Summary
Enum Constants Enum Constant Description CENTER
LEFT_OR_BOTTOM
Default is LEFT_OR_BOTTOM.RIGHT_OR_TOP
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AxisPosition[]
enumValues()
Gets all the choices possible, including default.AxisPosition
getDefault()
Gets the default value.int
getInt()
Returns the choice as an integer value.java.lang.String
getPropName()
Gets the property name.static AxisPosition
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AxisPosition[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
LEFT_OR_BOTTOM
public static final AxisPosition LEFT_OR_BOTTOM
Default is LEFT_OR_BOTTOM.
CENTER
public static final AxisPosition CENTER
RIGHT_OR_TOP
public static final AxisPosition RIGHT_OR_TOP
Method Detail
values
public static AxisPosition[] 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 (AxisPosition c : AxisPosition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static AxisPosition 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 AxisPosition getDefault()
Gets the default value. This value is used to initialize the property.- Specified by:
getDefault
in interfaceIPropCnrChoiceOption<IAxisChoiceOption>
- Returns:
LEFT_OR_BOTTOM
.
enumValues
public AxisPosition[] 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>