|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.jrefinery.data.XYDataPair
public class XYDataPair
Represents one (x, y) data item for an xy-series.
| Field Summary | |
|---|---|
protected java.lang.Number |
x
The x-value. |
protected java.lang.Number |
y
The y-value. |
| Constructor Summary | |
|---|---|
XYDataPair(double x,
double y)
Constructs a new data pair. |
|
XYDataPair(java.lang.Number x,
java.lang.Number y)
Constructs a new data pair. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o1)
Returns an integer indicating the order of this data pair object relative to another object. |
java.lang.Number |
getX()
Returns the x-value. |
java.lang.Number |
getY()
Returns the y-value. |
void |
setY(java.lang.Number y)
Sets the y-value for this data pair. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Number x
protected java.lang.Number y
| Constructor Detail |
|---|
public XYDataPair(java.lang.Number x,
java.lang.Number y)
x - The x-value.y - The y-value.
public XYDataPair(double x,
double y)
x - The x-value.y - The y-value.| Method Detail |
|---|
public java.lang.Number getX()
public java.lang.Number getY()
public void setY(java.lang.Number y)
Note that there is no corresponding method to change the x-value.
y - The new y-value.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.Comparableo1 - The object being compared to.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||