org.jboss.seam.cron.examples.swinggrapher
Class SwingGrapher
java.lang.Object
org.jboss.seam.cron.examples.swinggrapher.SwingGrapher
@ApplicationScoped
public class SwingGrapher
- extends Object
- Author:
- Peter Royle
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FREE_MEMORY_LABEL
public static final String FREE_MEMORY_LABEL
- The label for the Free Memory axis.
- See Also:
- Constant Field Values
SwingGrapher
public SwingGrapher()
getCatDataSet
@Produces
public org.jfree.data.category.DefaultCategoryDataset getCatDataSet()
- Returns:
- the dataset used by the graph.
updateChart
public void updateChart(@Observes
Trigger second)
- Called every second to update the graph data and repaint the graph.
- Parameters:
second - The observed event.
collectGarbage
public void collectGarbage(@Observes
Trigger minute)
- Called every minute to request garbage collection.
- Parameters:
second - The observed event.
clearGraphData
public void clearGraphData(@Observes
Trigger e)
- Clear the graph every 2 minutes, at 20 seconds past the minute.
- Parameters:
e - The event observed.
Copyright © 2011 Seam Framework. All Rights Reserved.