|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsysteminformationmonitor.swing.model.CpuMonitorModel
public class CpuMonitorModel
Cpu Model which binds a JFreeChart and CategoryDataset. This class is responsible for updating the categoryDataset and JFreeChart.
| Constructor Summary | |
|---|---|
CpuMonitorModel(org.jfree.chart.JFreeChart chart,
org.jfree.data.category.DefaultCategoryDataset dataset)
Constructor which binds a chart to a dataset which monitors all the cpus on the system. |
|
CpuMonitorModel(org.jfree.chart.JFreeChart chart,
org.jfree.data.category.DefaultCategoryDataset dataset,
int series)
Constructor which binds a chart to a dataset which monitors a specific cpu series. |
|
| Method Summary | |
|---|---|
void |
initialize()
Method called with this classes is added to CpuProcess. |
void |
update()
Method called everytime the CpuProcess classes gets updated Cpu information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CpuMonitorModel(org.jfree.chart.JFreeChart chart,
org.jfree.data.category.DefaultCategoryDataset dataset)
chart - JFreeChart to bind to.dataset - Dataset to bind to.
public CpuMonitorModel(org.jfree.chart.JFreeChart chart,
org.jfree.data.category.DefaultCategoryDataset dataset,
int series)
chart - JFreeChart to bind to.dataset - Dataset to bind to.series - Cpu series to monitor.| Method Detail |
|---|
public void initialize()
Monitor
initialize in interface Monitorpublic void update()
Monitor
update in interface Monitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||