- java.lang.Object
-
- java.lang.Enum<AxisLocation>
-
- org.jfree.chart.axis.AxisLocation
-
- All Implemented Interfaces:
Serializable,Comparable<AxisLocation>
public enum AxisLocation extends Enum<AxisLocation>
Used to indicate the location of an axis on a 2D plot, prior to knowing the orientation of the plot.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOTTOM_OR_LEFTAxis at the bottom or left.BOTTOM_OR_RIGHTAxis at the bottom or right.TOP_OR_LEFTAxis at the top or left.TOP_OR_RIGHTAxis at the top or right.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AxisLocationgetOpposite()Returns the location that is opposite to this location.static AxisLocationgetOpposite(AxisLocation location)Returns the location that is opposite to the supplied location.static AxisLocationvalueOf(String name)Returns the enum constant of this type with the specified name.static AxisLocation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOP_OR_LEFT
public static final AxisLocation TOP_OR_LEFT
Axis at the top or left.
-
TOP_OR_RIGHT
public static final AxisLocation TOP_OR_RIGHT
Axis at the top or right.
-
BOTTOM_OR_LEFT
public static final AxisLocation BOTTOM_OR_LEFT
Axis at the bottom or left.
-
BOTTOM_OR_RIGHT
public static final AxisLocation BOTTOM_OR_RIGHT
Axis at the bottom or right.
-
-
Method Detail
-
values
public static AxisLocation[] 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 (AxisLocation c : AxisLocation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AxisLocation 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 nameNullPointerException- if the argument is null
-
getOpposite
public AxisLocation getOpposite()
Returns the location that is opposite to this location.- Returns:
- The opposite location.
-
getOpposite
public static AxisLocation getOpposite(AxisLocation location)
Returns the location that is opposite to the supplied location.- Parameters:
location- the location (nullnot permitted).- Returns:
- The opposite location.
-
-