com.ijchart.xychart.constant
Class Rotation

java.lang.Object
  extended by com.ijchart.xychart.constant.Rotation
All Implemented Interfaces:
java.io.Serializable

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

Title: IJChart

Description: a chart library for the Java(tm) platform.

Used to indicate the orientation (clockwise or anticlockwise).

Copyright: Copyright (c) 2013

Company:

Version:
1.0
Author:
zhang feng min,shanghai china. Contract me by email.
See Also:
Serialized Form

Field Summary
static Rotation ANTICLOCKWISE
           anticlockwise.
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.
 int getFactor()
           Returns the factor.
 int hashCode()
           Returns a hash code value for the object
 java.lang.String toString()
           Returns a string representing the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLOCKWISE

public static final Rotation CLOCKWISE
clockwise.


ANTICLOCKWISE

public static final Rotation ANTICLOCKWISE
anticlockwise.

Method Detail

toString

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

Overrides:
toString in class java.lang.Object
Returns:
The string.

getFactor

public int getFactor()
Returns the factor.

Returns:
int The factor,-1 if this is CLOCKWISE otherwise,1 if this is ANTICLOCKWISE,0 otherwise.

equals

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

Overrides:
equals in class java.lang.Object
Parameters:
o - the other object.
Returns:
A boolean.

hashCode

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

Overrides:
hashCode in class java.lang.Object
Returns:
int A hash code value for this object.