public class DataPoint extends Object implements IDisplayDataPoint
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.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.Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.