| java.lang.Object org.jfree.data.xy.XYDataItem
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). | public Number | getX() Returns the x-value. | public Number | getY() Returns the y-value. | public int | hashCode() Returns a hash code. | public void | setY(double y) Sets the y-value for this data item. | public void | setY(Number y) Sets the y-value for this data item. |
XYDataItem | public XYDataItem(Number x, Number y)(Code) | | Constructs a new data item.
Parameters: x - the x-value (null NOT permitted). Parameters: y - the y-value (null permitted). |
XYDataItem | public XYDataItem(double x, double y)(Code) | | Constructs a new data item.
Parameters: x - the x-value. Parameters: y - the y-value. |
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. |
getX | public Number getX()(Code) | | Returns the x-value.
The x-value (never null ). |
getY | public Number getY()(Code) | | Returns the y-value.
The y-value (possibly null ). |
hashCode | public int hashCode()(Code) | | Returns a hash code.
A hash code. |
setY | public void setY(double 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. |
setY | public void setY(Number 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). |
|
|