public final class

AxisLocation

extends Object
implements Serializable
java.lang.Object
   ↳ org.jfree.chart.axis.AxisLocation

Class Overview

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

Summary

Fields
public static final AxisLocation BOTTOM_OR_LEFT Axis at the bottom or left.
public static final AxisLocation BOTTOM_OR_RIGHT Axis at the bottom or right.
public static final AxisLocation TOP_OR_LEFT Axis at the top or left.
public static final AxisLocation TOP_OR_RIGHT Axis at the top or right.
Public Methods
boolean equals(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.
String toString()
Returns a string representing the object.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final AxisLocation BOTTOM_OR_LEFT

Axis at the bottom or left.

public static final AxisLocation BOTTOM_OR_RIGHT

Axis at the bottom or right.

public static final AxisLocation TOP_OR_LEFT

Axis at the top or left.

public static final AxisLocation TOP_OR_RIGHT

Axis at the top or right.

Public Methods

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.

public AxisLocation getOpposite ()

Returns the location that is opposite to this location.

Returns
  • The opposite location.

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.

public String toString ()

Returns a string representing the object.

Returns
  • The string.