Package org.jfree.util
Class Rotation
- java.lang.Object
-
- org.jfree.util.Rotation
-
- All Implemented Interfaces:
Serializable
public final class Rotation extends Object implements Serializable
Represents a direction of rotation (CLOCKWISE
orANTICLOCKWISE
).- Author:
- David Gilbert
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Rotation
ANTICLOCKWISE
The reverse order renders the primary dataset first.static Rotation
CLOCKWISE
Clockwise.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Compares this object for equality with an other object.double
getFactor()
Returns the rotation factor, which is -1.0 forCLOCKWISE
and 1.0 forANTICLOCKWISE
.int
hashCode()
Returns a hash code value for the object.String
toString()
Returns a string representing the object.
-
-
-
Method Detail
-
toString
public String toString()
Returns a string representing the object.
-
getFactor
public double getFactor()
Returns the rotation factor, which is -1.0 forCLOCKWISE
and 1.0 forANTICLOCKWISE
.- Returns:
- the rotation factor.
-
equals
public boolean equals(Object o)
Compares this object for equality with an other object. Implementation note: This simply compares the factor instead of the name.
-
-