Package org.jfree.util
Class Rotation
java.lang.Object
org.jfree.util.Rotation
- All Implemented Interfaces:
Serializable
Represents a direction of rotation (
CLOCKWISE
or
ANTICLOCKWISE
).- Author:
- David Gilbert
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares this object for equality with an other object.double
Returns the rotation factor, which is -1.0 forCLOCKWISE
and 1.0 forANTICLOCKWISE
.int
hashCode()
Returns a hash code value for the object.toString()
Returns a string representing the object.
-
Field Details
-
CLOCKWISE
Clockwise. -
ANTICLOCKWISE
The reverse order renders the primary dataset first.
-
-
Method Details
-
toString
Returns a string representing the object. -
getFactor
Returns the rotation factor, which is -1.0 forCLOCKWISE
and 1.0 forANTICLOCKWISE
.- Returns:
- the rotation factor.
-
equals
Compares this object for equality with an other object. Implementation note: This simply compares the factor instead of the name. -
hashCode
Returns a hash code value for the object.
-