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

Used to indicate the location of an axis on a 2D plot, prior to knowing the orientation of the chart.

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
           Axis at the bottom or left.
static AxisLocation BOTTOM_OR_RIGHT
           Axis at the bottom or right.
static AxisLocation TOP_OR_LEFT
           Axis at the top or left.
static AxisLocation TOP_OR_RIGHT
           Axis at the top or right.
 
Method Summary
 boolean equals(java.lang.Object obj)
           Returns true if this object is equal to the specified object, and false otherwise.
 AxisLocation getOpposite()
           Returns the location that is opposite to this location.
static AxisLocation getOpposite(AxisLocation location)
           Returns the location that is opposite to the supplied location.
 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_OR_LEFT

public static final AxisLocation TOP_OR_LEFT
Axis at the top or left.


TOP_OR_RIGHT

public static final AxisLocation TOP_OR_RIGHT
Axis at the top or right.


BOTTOM_OR_LEFT

public static final AxisLocation BOTTOM_OR_LEFT
Axis at the bottom or left.


BOTTOM_OR_RIGHT

public static final AxisLocation BOTTOM_OR_RIGHT
Axis at the bottom or right.

Method Detail

getOpposite

public AxisLocation getOpposite()
Returns the location that is opposite to this location.

Returns:
The opposite location.

getOpposite

public static AxisLocation getOpposite(AxisLocation location)
Returns the location that is opposite to the supplied location.

Parameters:
location - The location (null not permitted).
Returns:
The opposite location.

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 other 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:
a hash code value for this object.

toString

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

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