public final class Rotation
extends java.lang.Object
implements java.io.Serializable
CLOCKWISE
or
ANTICLOCKWISE
).Modifier and Type | Field and Description |
---|---|
static Rotation |
ANTICLOCKWISE
The reverse order renders the primary dataset first.
|
static Rotation |
CLOCKWISE
Clockwise.
|
private double |
factor
The factor (-1.0 for
CLOCKWISE and 1.0 for
ANTICLOCKWISE ). |
private java.lang.String |
name
The name.
|
private static long |
serialVersionUID
For serialization.
|
Modifier | Constructor and Description |
---|---|
private |
Rotation(java.lang.String name,
double factor)
Private constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Compares this object for equality with an other object.
|
double |
getFactor()
Returns the rotation factor, which is -1.0 for
CLOCKWISE
and 1.0 for ANTICLOCKWISE . |
int |
hashCode()
Returns a hash code value for the object.
|
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 Rotation CLOCKWISE
public static final Rotation ANTICLOCKWISE
private java.lang.String name
private double factor
CLOCKWISE
and 1.0 for
ANTICLOCKWISE
).private Rotation(java.lang.String name, double factor)
name
- the name.factor
- the rotation factor.public java.lang.String toString()
toString
in class java.lang.Object
null
).public double getFactor()
CLOCKWISE
and 1.0 for ANTICLOCKWISE
.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the other objectpublic int hashCode()
hashCode
in class java.lang.Object
private java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException
- if there is a problem.