public final class PlotOrientation
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static PlotOrientation |
HORIZONTAL
For a plot where the range axis is horizontal.
|
private java.lang.String |
name
The name.
|
private static long |
serialVersionUID
For serialization.
|
static PlotOrientation |
VERTICAL
For a plot where the range axis is vertical.
|
| Modifier | Constructor and Description |
|---|---|
private |
PlotOrientation(java.lang.String name)
Private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns
true if this object is equal to the specified
object, and false otherwise. |
int |
hashCode()
Returns a hash code for this instance.
|
boolean |
isHorizontal()
Returns
true if this orientation is HORIZONTAL,
and false otherwise. |
boolean |
isVertical()
Returns
true if this orientation is VERTICAL,
and false otherwise. |
private java.lang.Object |
readResolve()
Ensures that serialization returns the unique instances.
|
java.lang.String |
toString()
Returns a string representing the object.
|
private static final long serialVersionUID
public static final PlotOrientation HORIZONTAL
public static final PlotOrientation VERTICAL
private java.lang.String name
private PlotOrientation(java.lang.String name)
name - the name.public boolean isHorizontal()
true if this orientation is HORIZONTAL,
and false otherwise.public boolean isVertical()
true if this orientation is VERTICAL,
and false otherwise.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
true if this object is equal to the specified
object, and false otherwise.equals in class java.lang.Objectobj - the object (null permitted).public int hashCode()
hashCode in class java.lang.Objectprivate java.lang.Object readResolve()
throws java.io.ObjectStreamException
java.io.ObjectStreamException - if there is a problem.