Package org.jfree.chart.axis
Class AxisLocation
java.lang.Object
org.jfree.chart.axis.AxisLocation
- All Implemented Interfaces:
Serializable
Used to indicate the location of an axis on a 2D plot, prior to knowing the
orientation of the plot.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AxisLocation
Axis at the bottom or left.static final AxisLocation
Axis at the bottom or right.private final String
The name.private static final long
For serialization.static final AxisLocation
Axis at the top or left.static final AxisLocation
Axis at the top or right. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if this object is equal to the specified object, andfalse
otherwise.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 for this instance.private Object
Ensures that serialization returns the unique instances.toString()
Returns a string representing the object.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor serialization.- See Also:
-
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. -
name
The name.
-
-
Constructor Details
-
AxisLocation
Private constructor.- Parameters:
name
- the name.
-
-
Method Details
-
getOpposite
Returns the location that is opposite to this location.- Returns:
- The opposite location.
-
toString
Returns a string representing the object. -
equals
Returnstrue
if this object is equal to the specified object, andfalse
otherwise. -
hashCode
public int hashCode()Returns a hash code for this instance. -
getOpposite
Returns the location that is opposite to the supplied location.- Parameters:
location
- the location (null
not permitted).- Returns:
- The opposite location.
-
readResolve
Ensures that serialization returns the unique instances.- Returns:
- The object.
- Throws:
ObjectStreamException
- if there is a problem.
-