ca.utoronto.JCVSReport.report
Interface Graph

All Known Implementing Classes:
BasicGraph

public interface Graph

Write a single graph out to an HTML file

Author:
David James

Method Summary
 String[] getMetricNames()
          Get a list of metrics supported by this graph
 String getTitle()
          Get the title of the graph
 void init(MetricDatabase database, String id, ResourceBundle props)
          Initialize Graph from properties file
 void setPerDeveloper(boolean value)
          Set whether we should report this metric per developer *
 void write(PrintWriter output, File directory)
          Output this report to an HTML file
 

Method Detail

init

public void init(MetricDatabase database,
                 String id,
                 ResourceBundle props)
          throws Exception
Initialize Graph from properties file

Parameters:
database - Where to get our data
id - A unique ID for this graph
props - Properties of this graph
Throws:
Exception

write

public void write(PrintWriter output,
                  File directory)
           throws Exception
Output this report to an HTML file

Parameters:
output - Where to write the HTML report
directory - Where to store images
Throws:
Exception

getTitle

public String getTitle()
Get the title of the graph


setPerDeveloper

public void setPerDeveloper(boolean value)
Set whether we should report this metric per developer *

Parameters:
value - whether to report the metric

getMetricNames

public String[] getMetricNames()
Get a list of metrics supported by this graph



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