|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.data.xy.XYDataItem
public class XYDataItem
Represents one (x, y) data item for an XYSeries
.
Constructor Summary | |
---|---|
XYDataItem(double x,
double y)
Constructs a new data item. |
|
XYDataItem(java.lang.Number x,
java.lang.Number y)
Constructs a new data item. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a clone of this object. |
int |
compareTo(java.lang.Object o1)
Returns an integer indicating the order of this object relative to another object. |
boolean |
equals(java.lang.Object obj)
Tests if this object is equal to another. |
java.lang.Number |
getX()
Returns the x-value. |
double |
getXValue()
Returns the x-value as a double primitive. |
java.lang.Number |
getY()
Returns the y-value. |
double |
getYValue()
Returns the y-value as a double primitive. |
int |
hashCode()
Returns a hash code. |
void |
setY(double y)
Sets the y-value for this data item. |
void |
setY(java.lang.Number y)
Sets the y-value for this data item. |
java.lang.String |
toString()
Returns a string representing this instance, primarily for debugging use. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XYDataItem(java.lang.Number x, java.lang.Number y)
x
- the x-value (null
NOT permitted).y
- the y-value (null
permitted).public XYDataItem(double x, double y)
x
- the x-value.y
- the y-value.Method Detail |
---|
public java.lang.Number getX()
null
).public double getXValue()
getX()
,
getYValue()
public java.lang.Number getY()
null
).public double getYValue()
getY()
,
getXValue()
public void setY(double y)
y
- the new y-value.public void setY(java.lang.Number y)
y
- the new y-value (null
permitted).public int compareTo(java.lang.Object o1)
For the order we consider only the x-value: negative == "less-than", zero == "equal", positive == "greater-than".
compareTo
in interface java.lang.Comparable
o1
- the object being compared to.
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- not thrown by this class, but
subclasses may differ.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to test against for equality (null
permitted).
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |