| java.lang.Object org.jfree.data.ComparableObjectItem
All known Subclasses: org.jfree.data.xy.XYIntervalDataItem, org.jfree.data.time.ohlc.OHLCItem, org.jfree.data.xy.YIntervalDataItem, org.jfree.data.xy.XIntervalDataItem, org.jfree.data.xy.VectorDataItem,
Method Summary | |
public Object | clone() Returns a clone of this object. | public int | compareTo(Object o1) Returns an integer indicating the order of this object relative to
another object.
For the order we consider only the x-value:
negative == "less-than", zero == "equal", positive == "greater-than".
Parameters: o1 - the object being compared to. | public boolean | equals(Object obj) Tests if this object is equal to another.
Parameters: obj - the object to test against for equality (null permitted). | protected Comparable | getComparable() Returns the x-value. | protected Object | getObject() Returns the y-value. | public int | hashCode() Returns a hash code. | protected void | setObject(Object y) Sets the y-value for this data item. |
ComparableObjectItem | public ComparableObjectItem(Comparable x, Object y)(Code) | | Constructs a new data item.
Parameters: x - the x-value (null NOT permitted). Parameters: y - the y-value (null permitted). |
compareTo | public int compareTo(Object o1)(Code) | | Returns an integer indicating the order of this object relative to
another object.
For the order we consider only the x-value:
negative == "less-than", zero == "equal", positive == "greater-than".
Parameters: o1 - the object being compared to. An integer indicating the order of this data pair objectrelative to another object. |
equals | public boolean equals(Object obj)(Code) | | Tests if this object is equal to another.
Parameters: obj - the object to test against for equality (null permitted). A boolean. |
getComparable | protected Comparable getComparable()(Code) | | Returns the x-value.
The x-value (never null ). |
getObject | protected Object getObject()(Code) | | Returns the y-value.
The y-value (possibly null ). |
hashCode | public int hashCode()(Code) | | Returns a hash code.
A hash code. |
setObject | protected void setObject(Object y)(Code) | | Sets the y-value for this data item. Note that there is no
corresponding method to change the x-value.
Parameters: y - the new y-value (null permitted). |
|
|