ca.utoronto.JCVSReport.report
Class TimeSeriesGraph

java.lang.Object
  extended byca.utoronto.JCVSReport.report.BasicGraph
      extended byca.utoronto.JCVSReport.report.TimeSeriesGraph
All Implemented Interfaces:
Graph

public class TimeSeriesGraph
extends BasicGraph

A graph that displays the values of one or more metrics over time.

Author:
David James

Field Summary
 
Fields inherited from class ca.utoronto.JCVSReport.report.BasicGraph
database, devMap, fileMap, id, incremental, perDeveloper, props
 
Constructor Summary
TimeSeriesGraph()
           
 
Method Summary
protected  org.jfree.chart.JFreeChart getChart()
          Build a chart from a seriesCollection
protected  org.jfree.data.general.Dataset getDataset()
          Build a seriesCollection object from an SQL query NOTE: We assume that the SQL query returns values sorted by date
 String getTitle()
          Get the title of the graph object
 
Methods inherited from class ca.utoronto.JCVSReport.report.BasicGraph
executeQuery, getHeight, getKey, getMetricNames, getProperty, getProperty, getSeriesLabel, getStoredMetricValue, getWidth, getXLabel, getYLabel, init, setPerDeveloper, storeMetricValue, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeSeriesGraph

public TimeSeriesGraph()
Method Detail

getDataset

protected org.jfree.data.general.Dataset getDataset()
                                             throws Exception
Build a seriesCollection object from an SQL query NOTE: We assume that the SQL query returns values sorted by date

Specified by:
getDataset in class BasicGraph
Throws:
Exception

getChart

protected org.jfree.chart.JFreeChart getChart()
                                       throws Exception
Build a chart from a seriesCollection

Specified by:
getChart in class BasicGraph
Throws:
Exception

getTitle

public String getTitle()
Get the title of the graph object

Specified by:
getTitle in interface Graph
Overrides:
getTitle in class BasicGraph


JCVSReport: Easy Progress Reports for CVS/Java Projects. By David James.