|
Kodo 4.2.0. generated on July 28 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.solarmetric.manage.jmx.gui.StatisticSeries
public class StatisticSeries
Example implementation of a DiagnosticDataSeries to work with a DiagnosticsChart instance. This requires managing the data collection and surfacing them through the required interface methods.
It also shows how to implement the required DiagnosticDataSeriesListener support, firing the appropriate notifications when the series has changed.
Constructor Summary | |
---|---|
StatisticSeries(String name)
|
Method Summary | |
---|---|
void |
addDataSeriesListener(com.bea.diagnostics.chart.DiagnosticDataSeriesListener l,
Object userObj)
|
void |
addSampleHoldValue(double xval,
double yval)
|
void |
addValue(double xval,
double yval)
|
protected void |
agePoints()
Trim the data points to limit memory usage. |
protected void |
fireNameChangeEvent()
Notify the chart layer the series name has changed. |
protected void |
fireSeriesChangedEvent()
Notify the chart layer the series has changed and needs to be redisplayed. |
String |
getSeriesName()
|
double[] |
getXValues()
|
double[] |
getYValues()
|
void |
removeDataSeriesListener(com.bea.diagnostics.chart.DiagnosticDataSeriesListener l)
|
void |
setSeriesName(String name)
|
protected double[] |
toDoubleArray(LinkedList list)
Internal helper for converting the internal lists into the required double[]'s for JClass and the DiagnosticsChart. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatisticSeries(String name)
Method Detail |
---|
public String getSeriesName()
getSeriesName
in interface com.bea.diagnostics.chart.DiagnosticDataSeries
public void setSeriesName(String name)
setSeriesName
in interface com.bea.diagnostics.chart.DiagnosticDataSeries
public double[] getXValues()
getXValues
in interface com.bea.diagnostics.chart.DiagnosticDataSeries
public double[] getYValues()
getYValues
in interface com.bea.diagnostics.chart.DiagnosticDataSeries
public void addDataSeriesListener(com.bea.diagnostics.chart.DiagnosticDataSeriesListener l, Object userObj)
addDataSeriesListener
in interface com.bea.diagnostics.chart.DiagnosticDataSeries
public void removeDataSeriesListener(com.bea.diagnostics.chart.DiagnosticDataSeriesListener l)
removeDataSeriesListener
in interface com.bea.diagnostics.chart.DiagnosticDataSeries
public void addValue(double xval, double yval)
public void addSampleHoldValue(double xval, double yval)
protected void agePoints()
protected void fireSeriesChangedEvent()
protected void fireNameChangeEvent()
protected double[] toDoubleArray(LinkedList list)
list
-
|
Kodo 4.2.0. generated on July 28 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |