org.rhq.enterprise.gui.image.chart
Class StackedDataPoint
java.lang.Object
org.rhq.enterprise.gui.image.chart.DataPoint
org.rhq.enterprise.gui.image.chart.StackedDataPoint
- All Implemented Interfaces:
- IDataPoint, IDisplayDataPoint, IStackedDataPoint
public class StackedDataPoint
- extends DataPoint
- implements IStackedDataPoint
|
Constructor Summary |
StackedDataPoint(double[] values)
Constructs a StackedDataPoint object with the specified value and an empty label. |
StackedDataPoint(double[] values,
String label)
Constructs a DataPoint object with the specified value and and specified label. |
|
Method Summary |
double[] |
getValues()
Retrieves the value of a chart data point. |
void |
setValue(double value)
Sets the value of a chart data point. |
StackedDataPoint
public StackedDataPoint(double[] values)
- Constructs a StackedDataPoint object with the specified value and an empty label.
- Parameters:
value - A floating point value for the object data point.
StackedDataPoint
public StackedDataPoint(double[] values,
String label)
- Constructs a DataPoint object with the specified value and and specified label.
- Parameters:
value - A floating point value for the object's data point.label - A String label for the object's data point.
getValues
public double[] getValues()
- Retrieves the value of a chart data point. The label is displayed on the X axis for stacked performance charts.
- Specified by:
getValues in interface IStackedDataPoint
- Returns:
- A floating point value for a chart data point.
setValue
public void setValue(double value)
- Description copied from class:
DataPoint
- Sets the value of a chart data point. The data point is charted on the Y axis for line and column charts.
- Overrides:
setValue in class DataPoint
- Parameters:
value - A floating point value for a chart data point.
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.