org.jfree.util
Class Rotation

java.lang.Object
  extended byorg.jfree.util.Rotation
All Implemented Interfaces:
java.io.Serializable

public final class Rotation
extends java.lang.Object
implements java.io.Serializable

Used to indicate the direction (clockwise or anticlockwise) for a rotation.

Author:
David Gilbert
See Also:
Serialized Form

Field Summary
static Rotation ANTICLOCKWISE
          The reverse order renders the primary dataset first.
static Rotation CLOCKWISE
          Clockwise.
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns true if this object is equal to the specified object, and false otherwise.
 double getFactor()
          Returns the rotation factor, which is -1.0 for CLOCKWISE and 1.0 for ANTICLOCKWISE.
 java.lang.String toString()
          Returns a string representing the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLOCKWISE

public static final Rotation CLOCKWISE
Clockwise.


ANTICLOCKWISE

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

Method Detail

toString

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

Returns:
The string.

getFactor

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

Returns:
The rotation factor.

equals

public boolean equals(java.lang.Object o)
Returns true if this object is equal to the specified object, and false otherwise.

Parameters:
o - the other object.
Returns:
A boolean.