org.jfree.chart.axis

Class AxisLocation

public final class AxisLocation extends Object implements Serializable

Used to indicate the location of an axis on a 2D plot, prior to knowing the orientation of the plot.
Field Summary
static AxisLocationBOTTOM_OR_LEFT
Axis at the bottom or left.
static AxisLocationBOTTOM_OR_RIGHT
Axis at the bottom or right.
static AxisLocationTOP_OR_LEFT
Axis at the top or left.
static AxisLocationTOP_OR_RIGHT
Axis at the top or right.
Method Summary
booleanequals(Object obj)
Returns true if this object is equal to the specified object, and false otherwise.
AxisLocationgetOpposite()
Returns the location that is opposite to this location.
static AxisLocationgetOpposite(AxisLocation location)
Returns the location that is opposite to the supplied location.
StringtoString()
Returns a string representing the object.

Field Detail

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.

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.

Method Detail

equals

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

Parameters: obj the other object (null permitted).

Returns: A boolean.

getOpposite

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

Returns: The opposite location.

Since: 1.0.5

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.

toString

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

Returns: The string.