- java.lang.Object
-
- java.lang.Enum<PlotOrientation>
-
- org.jfree.chart.plot.PlotOrientation
-
- All Implemented Interfaces:
Serializable,Comparable<PlotOrientation>
public enum PlotOrientation extends Enum<PlotOrientation>
Used to indicate the orientation (horizontal or vertical) of a 2D plot. It is the direction of the y-axis that is the determinant (a conventional plot has a vertical y-axis).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HORIZONTALFor a plot where the range axis is horizontal.VERTICALFor a plot where the range axis is vertical.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisHorizontal()Returnstrueif this orientation isHORIZONTAL, andfalseotherwise.booleanisVertical()Returnstrueif this orientation isVERTICAL, andfalseotherwise.static PlotOrientationvalueOf(String name)Returns the enum constant of this type with the specified name.static PlotOrientation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HORIZONTAL
public static final PlotOrientation HORIZONTAL
For a plot where the range axis is horizontal.
-
VERTICAL
public static final PlotOrientation VERTICAL
For a plot where the range axis is vertical.
-
-
Method Detail
-
values
public static PlotOrientation[] 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 (PlotOrientation c : PlotOrientation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PlotOrientation 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
-
isHorizontal
public boolean isHorizontal()
Returnstrueif this orientation isHORIZONTAL, andfalseotherwise.- Returns:
- A boolean.
-
isVertical
public boolean isVertical()
Returnstrueif this orientation isVERTICAL, andfalseotherwise.- Returns:
- A boolean.
-
-