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.

An enumeration of the vertical alignment types (TOP,BOTTOM and VERTICAL_CENTER).

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
           Bottom alignment.
static VerticalAlignment CENTER
           Center alignment.
static VerticalAlignment TOP
           Top alignment.
 
Method Summary
 boolean equals(java.lang.Object obj)
           Returns true if this object is equal to the specified object, and false otherwise.
static VerticalAlignment getOpposite(VerticalAlignment align)
           Returns the opposite vertical alignment.
 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

TOP

public static final VerticalAlignment TOP
Top alignment.


BOTTOM

public static final VerticalAlignment BOTTOM
Bottom alignment.


CENTER

public static final VerticalAlignment CENTER
Center alignment.

Method Detail

getOpposite

public static VerticalAlignment getOpposite(VerticalAlignment align)
Returns the opposite vertical alignment.

Parameters:
align - VerticalAlignment The vertical alignment.
Returns:
VerticalAlignment The opposite vertical alignment (never null).

toString

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

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

equals

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

Overrides:
equals in class java.lang.Object
Parameters:
obj - The object (null permitted).
Returns:
A boolean.

hashCode

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

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