Package org.jfree.chart.axis
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:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static AxisLocationBOTTOM_OR_LEFTAxis at the bottom or left.static AxisLocationBOTTOM_OR_RIGHTAxis at the bottom or right.static AxisLocationTOP_OR_LEFTAxis at the top or left.static AxisLocationTOP_OR_RIGHTAxis at the top or right. -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)Returnstrueif this object is equal to the specified object, andfalseotherwise.static AxisLocationgetOpposite(AxisLocation location)Returns the location that is opposite to the supplied location.StringtoString()Returns a string representing the object.
-
Field Details
-
TOP_OR_LEFT
Axis at the top or left. -
TOP_OR_RIGHT
Axis at the top or right. -
BOTTOM_OR_LEFT
Axis at the bottom or left. -
BOTTOM_OR_RIGHT
Axis at the bottom or right.
-
-
Method Details
-
toString
Returns a string representing the object. -
equals
Returnstrueif this object is equal to the specified object, andfalseotherwise. -
getOpposite
Returns the location that is opposite to the supplied location.- Parameters:
location- the location (nullnot permitted).- Returns:
- The opposite location.
-