public class SegmentInfo extends Object implements Serializable, IStackedDataPoint
| Constructor and Description |
|---|
SegmentInfo(String label) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSegment(int index,
Segment s) |
String |
getLabel()
Retrieves the label of a chart data point.
|
Segment |
getSegment(int index) |
List |
getSegments() |
long |
getTimestamp() |
double |
getTotal() |
double |
getValue()
Retrieves the value of a chart data point.
|
double[] |
getValues()
Retrieves the value of a chart data point.
|
boolean |
removeSegment(Segment s) |
void |
setLabel(String label) |
void |
setTimestamp(long time) |
void |
setTotal(double d) |
String |
toString() |
public SegmentInfo(String label)
public void addSegment(int index,
Segment s)
public Segment getSegment(int index)
public List getSegments()
public boolean removeSegment(Segment s)
public double getTotal()
public void setTotal(double d)
public double getValue()
IDataPointgetValue in interface IDataPointpublic double[] getValues()
IStackedDataPointgetValues in interface IStackedDataPointpublic void setLabel(String label)
public String getLabel()
IDisplayDataPointgetLabel in interface IDisplayDataPointpublic void setTimestamp(long time)
public long getTimestamp()
getTimestamp in interface IDisplayDataPointCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.