public class ResultChart extends Object
results.| Modifier and Type | Class and Description |
|---|---|
class |
ResultChart.APXYLineAndShapeRenderer
From http://www.jfree.org/phpBB2/viewtopic.php?f=3&t=37814
|
| Modifier and Type | Field and Description |
|---|---|
static long[] |
WINDOW_SIZES
Stardard window sizes
|
| Constructor and Description |
|---|
ResultChart(org.alfresco.bm.event.ResultService resultService) |
| Modifier and Type | Method and Description |
|---|---|
org.jfree.chart.JFreeChart |
createXYChart(long startTime,
long endTime,
int resultCount,
int smoothingCount)
Construct an X-Y chart
|
static long |
getWindowSize(long startTime,
long endTime,
int windowCount)
Helper method to calculate a window size (ms) such that the approximate number
of results is retrieved across the given time range.
|
void |
handleToggle(ActionEvent e)
Handler for series toggle checkboxes.
|
void |
showXYChart(int resultCount,
int smoothingCount,
int startPercent,
int endPercent,
String notes) |
public ResultChart(org.alfresco.bm.event.ResultService resultService)
resultService - the service to iterate over the resultspublic static long getWindowSize(long startTime,
long endTime,
int windowCount)
startTime - beginning of resultsendTime - end of resultswindowCount - number of windows to fit inpublic org.jfree.chart.JFreeChart createXYChart(long startTime,
long endTime,
int resultCount,
int smoothingCount)
newResultWaitTime - how long to wait before polling for new results.
A value of zero or less will terminate polling.startTime - the time of the first event to plot (null to ignore)endTime - the time of the last event to plot (null to ignore)windowSize - the data window size (values are grouped and averaged)public void showXYChart(int resultCount,
int smoothingCount,
int startPercent,
int endPercent,
String notes)
resultCount - number of data points to plotsmoothingCount - number of data points to keep for smoothingstartPercent - the start time as a percentage of the overall timeendPercent - the end time as a percentage of the overall timepublic void handleToggle(ActionEvent e)
e - the action event.Copyright © 2013. All Rights Reserved.