com.ijchart.xychart.constant
Class AxisLocation

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

public final class AxisLocation
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 AxisLocation BOTTOM_OR_LEFT
          坐标轴在底端或左边.
static AxisLocation BOTTOM_OR_RIGHT
          坐标轴在底端或右边
static AxisLocation TOP_OR_LEFT
          坐标轴在顶端或左边.
 
Method Summary
 boolean equals(java.lang.Object obj)
          测试两个对象是否相等.
 AxisLocation getOpposite()
          返回相对的位置.
static AxisLocation getOpposite(AxisLocation location)
          返回相对的位置
 int hashCode()
          计算has hcode值.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TOP_OR_LEFT

public static final AxisLocation TOP_OR_LEFT
坐标轴在顶端或左边.


TOP_OR_RIGHT

public static final AxisLocation TOP_OR_RIGHT
坐标轴在顶端或右边


BOTTOM_OR_LEFT

public static final AxisLocation BOTTOM_OR_LEFT
坐标轴在底端或左边.


BOTTOM_OR_RIGHT

public static final AxisLocation BOTTOM_OR_RIGHT
坐标轴在底端或右边

Method Detail

getOpposite

public AxisLocation getOpposite()
返回相对的位置.

Returns:
The opposite location.

getOpposite

public static AxisLocation getOpposite(AxisLocation location)
返回相对的位置

Parameters:
location - AxisLocation对象 (不可为null).
Returns:
相对的位置.

equals

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

Overrides:
equals in class java.lang.Object
Parameters:
obj - 要比较的对象.
Returns:
A boolean.

hashCode

public int hashCode()
计算has hcode值.

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

toString

public java.lang.String toString()
覆盖toString方法.

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