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.

描述方向,顺时针或逆时针两个方向.

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
          逆时针方向.
static Rotation CLOCKWISE
          顺时针方向.
 
Method Summary
 boolean equals(java.lang.Object o)
          测试两个对象是否相等.
 int getFactor()
          返回系数.
 int hashCode()
          计算hashcode值.
 java.lang.String toString()
          名称
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLOCKWISE

public static final Rotation CLOCKWISE
顺时针方向.


ANTICLOCKWISE

public static final Rotation ANTICLOCKWISE
逆时针方向.

Method Detail

toString

public java.lang.String toString()
名称

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

getFactor

public int getFactor()
返回系数.

Returns:
int 系数,如果是CLOCKWISE返回-1,如果是ANTICLOCKWISE返回1,其它返回0.

equals

public boolean equals(java.lang.Object o)
测试两个对象是否相等.

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

hashCode

public int hashCode()
计算hashcode值.

Overrides:
hashCode in class java.lang.Object
Returns:
int 对象的hashcode值.