com.jidesoft.chart.axis
Enum AxisPlacement
java.lang.Object
java.lang.Enum<AxisPlacement>
com.jidesoft.chart.axis.AxisPlacement
- All Implemented Interfaces:
- Serializable, Comparable<AxisPlacement>
public enum AxisPlacement
- extends Enum<AxisPlacement>
EAxisPlacement is used to specify where to put an axis on a chart. There are four possible values:
LEADING
TRAILING
CENTER
FLOATING
For horizontal placement, LEADING
means on the left and
TRAILING
means on the right. For vertical placement, LEADING
means on the bottom and
TRAILING
means on the top. Floating means that the axes can move when the chart is panned.>
This
approach means that we can easily switch the orientation of the axis and still have meaningful placement values for
an axis.
- Author:
- Simon White (swhite@catalysoft.com)
Method Summary |
static AxisPlacement |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static AxisPlacement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
LEADING
public static final AxisPlacement LEADING
TRAILING
public static final AxisPlacement TRAILING
CENTER
public static final AxisPlacement CENTER
FLOATING
public static final AxisPlacement FLOATING
values
public static AxisPlacement[] 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 (AxisPlacement c : AxisPlacement.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static AxisPlacement 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