com.ijchart.xychart.constant
Class VerticalAlignment

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

public final class VerticalAlignment
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 VerticalAlignment BOTTOM
          底对齐.
static VerticalAlignment CENTER
          垂直居中.
 
Method Summary
 boolean equals(java.lang.Object obj)
          测试两个对象是否相等,相等返回true,否则返回false.
static VerticalAlignment getOpposite(VerticalAlignment align)
          返回相反的对齐方式.
 int hashCode()
          返回hashcode值.
 java.lang.String toString()
          覆盖toString方法.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TOP

public static final VerticalAlignment TOP
顶对齐.


BOTTOM

public static final VerticalAlignment BOTTOM
底对齐.


CENTER

public static final VerticalAlignment CENTER
垂直居中.

Method Detail

getOpposite

public static VerticalAlignment getOpposite(VerticalAlignment align)
返回相反的对齐方式.

Parameters:
align - VerticalAlignment 垂直对齐方式 (不可为null).
Returns:
VerticalAlignment 相反的垂直对齐方式 (不为null).

toString

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

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

equals

public boolean equals(java.lang.Object obj)
测试两个对象是否相等,相等返回true,否则返回false.

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

hashCode

public int hashCode()
返回hashcode值.

Overrides:
hashCode in class java.lang.Object
Returns:
hashcode值.