|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.gui.image.chart.DataPoint
public class DataPoint
DataPoint holds a data and label for a single data point in a chart. A collection of DataPoint objects are used to chart a series of data points.
| Constructor Summary | |
|---|---|
DataPoint(double value)
Constructs a DataPoint object with the specified value and an empty label. |
|
DataPoint(double value,
long timestamp)
Constructs a DataPoint object with the specified value and and specified label. |
|
DataPoint(double value,
String label)
Constructs a DataPoint object with the specified value and and specified label. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getLabel()
Retrieves the label of a chart data point. |
long |
getTimestamp()
Retrieves the absolute time. |
double |
getValue()
Retrieves the value of a chart data point. |
int |
hashCode()
|
void |
setLabel(String label)
Sets the label of a chart data point. |
void |
setValue(double value)
Sets the value of a chart data point. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataPoint(double value)
value - A floating point value for the object data point.
public DataPoint(double value,
long timestamp)
value - A floating point value for the object's data point.timestamp - A timestamp for the object's data point.
public DataPoint(double value,
String label)
value - A floating point value for the object's data point.label - A String label for the object's data point.| Method Detail |
|---|
public long getTimestamp()
getTimestamp in interface IDisplayDataPointpublic String getLabel()
getLabel in interface IDisplayDataPointpublic void setLabel(String label)
label - A String label for a chart data point.public double getValue()
getValue in interface IDataPointpublic void setValue(double value)
value - A floating point value for a chart data point.public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||