org.jfree.util

Class Rotation

public final class Rotation extends Object implements Serializable

Represents a direction of rotation (CLOCKWISE or ANTICLOCKWISE).

Author: David Gilbert

Field Summary
static RotationANTICLOCKWISE
The reverse order renders the primary dataset first.
static RotationCLOCKWISE
Clockwise.
Method Summary
booleanequals(Object o)
Compares this object for equality with an other object.
doublegetFactor()
Returns the rotation factor, which is -1.0 for CLOCKWISE and 1.0 for ANTICLOCKWISE.
inthashCode()
Returns a hash code value for the object.
StringtoString()
Returns a string representing the object.

Field Detail

ANTICLOCKWISE

public static final Rotation ANTICLOCKWISE
The reverse order renders the primary dataset first.

CLOCKWISE

public static final Rotation CLOCKWISE
Clockwise.

Method Detail

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.

Parameters: o the other object

Returns: true or false

getFactor

public double getFactor()
Returns the rotation factor, which is -1.0 for CLOCKWISE and 1.0 for ANTICLOCKWISE.

Returns: the rotation factor.

hashCode

public int hashCode()
Returns a hash code value for the object.

Returns: the hashcode

toString

public String toString()
Returns a string representing the object.

Returns: the string (never null).