org.jfree.chart.plot
public final class: PlotOrientation [javadoc |
source]
java.lang.Object
org.jfree.chart.plot.PlotOrientation
All Implemented Interfaces:
Serializable
Used to indicate the orientation (horizontal or vertical) of a 2D plot.
| Field Summary |
|---|
| public static final PlotOrientation | HORIZONTAL | For a plot where the range axis is horizontal. |
| public static final PlotOrientation | VERTICAL | For a plot where the range axis is vertical. |
| Method from org.jfree.chart.plot.PlotOrientation Detail: |
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof PlotOrientation)) {
return false;
}
PlotOrientation orientation = (PlotOrientation) obj;
if (!this.name.equals(orientation.toString())) {
return false;
}
return true;
}
Returns true if this object is equal to the specified
object, and false otherwise. |
public int hashCode() {
return this.name.hashCode();
}
Returns a hash code for this instance. |
public String toString() {
return this.name;
}
Returns a string representing the object. |