Class AxisLocation

java.lang.Object
org.jfree.chart.axis.AxisLocation
All Implemented Interfaces:
Serializable

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.
See Also:
  • Field Details

  • Method Details

    • getOpposite

      Returns the location that is opposite to this location.
      Returns:
      The opposite location.
    • toString

      public String toString()
      Returns a string representing the object.
      Overrides:
      toString in class Object
      Returns:
      The string.
    • equals

      public boolean equals(Object obj)
      Returns true if this object is equal to the specified object, and false otherwise.
      Overrides:
      equals in class Object
      Parameters:
      obj - the other object (null permitted).
      Returns:
      A boolean.
    • hashCode

      public int hashCode()
      Returns a hash code for this instance.
      Overrides:
      hashCode in class Object
      Returns:
      A hash code.
    • 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.