org.jfree.chart.axis
public final class: CategoryAnchor [javadoc |
source]
java.lang.Object
org.jfree.chart.axis.CategoryAnchor
All Implemented Interfaces:
Serializable
Used to indicate one of three positions within a category:
START,
MIDDLE and
END.
| Field Summary |
|---|
| public static final CategoryAnchor | START | Start of period. |
| public static final CategoryAnchor | MIDDLE | Middle of period. |
| public static final CategoryAnchor | END | End of period. |
| Method from org.jfree.chart.axis.CategoryAnchor Summary: |
|---|
|
equals, toString |
| Method from org.jfree.chart.axis.CategoryAnchor Detail: |
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof CategoryAnchor)) {
return false;
}
CategoryAnchor position = (CategoryAnchor) obj;
if (!this.name.equals(position.toString())) {
return false;
}
return true;
}
Returns true if this object is equal to the specified
object, and false otherwise. |
public String toString() {
return this.name;
}
Returns a string representing the object. |