uk.co.concise.maven.hdc.report
Class TimeChart

java.lang.Object
  extended by uk.co.concise.maven.hdc.HibernatePlugin
      extended by uk.co.concise.maven.hdc.report.TimeChart

public class TimeChart
extends HibernatePlugin

Creates a set of historical charts and an xml file specifying which charts have been created. This is used for the historical report.

Author:
martenssonb

Constructor Summary
TimeChart()
          Default construction, required by Jelly.
TimeChart(java.lang.String dbDriverClass, java.lang.String dbUrl, java.lang.String dbUser, java.lang.String dbPass, java.lang.String dbHibernateDialect, java.lang.String reportDirectory, int width, int height)
          Constructor taking same parameters as are passed when this class is used as a tag.
 
Method Summary
protected  org.jfree.data.XYDataset createDataSet(Label label)
          Creates the data set for a label.
 int getHeight()
          The height in pixels of the generated chart image.
 java.lang.String getReportDirectory()
          Returns the directory where report output should be saved.
 int getWidth()
          The width in pixels of the generated chart image.
 void run()
          Called from Maven.
 void setHeight(int height)
          The height in pixels of the generated chart image.
 void setReportDirectory(java.lang.String reportDirectory)
          Sets the directory where report output should be saved.
 void setWidth(int width)
          The width in pixels of the generated chart image.
 
Methods inherited from class uk.co.concise.maven.hdc.HibernatePlugin
configure, getDbDriverClass, getDbHibernateDialect, getDbPass, getDbUrl, getDbUser, setDbDriverClass, setDbHibernateDialect, setDbPass, setDbUrl, setDbUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeChart

public TimeChart()
Default construction, required by Jelly.


TimeChart

public TimeChart(java.lang.String dbDriverClass,
                 java.lang.String dbUrl,
                 java.lang.String dbUser,
                 java.lang.String dbPass,
                 java.lang.String dbHibernateDialect,
                 java.lang.String reportDirectory,
                 int width,
                 int height)
Constructor taking same parameters as are passed when this class is used as a tag.

Parameters:
dbDriverClass - the JDBC driver class.
dbUrl - the URL to the database.
dbUser - the user used to access the database.
dbPass - the password for dbUser.
dbHibernateDialect - the dialect that hibernate will use to communicate with hibernate. See the hibernate documentation for more information.
reportDirectory - the directory where report output will be generated.
width - the width in pixels of the generated charts.
height - the height in pixels of the generated charts.
Method Detail

run

public void run()
Called from Maven.


createDataSet

protected org.jfree.data.XYDataset createDataSet(Label label)
Creates the data set for a label.

Parameters:
label - the label to create a dataset for.
Returns:
the data set for the label.

getReportDirectory

public java.lang.String getReportDirectory()
Returns the directory where report output should be saved.

Returns:
Returns the reportDirectory.

setReportDirectory

public void setReportDirectory(java.lang.String reportDirectory)
Sets the directory where report output should be saved.

Parameters:
reportDirectory - The reportDirectory to set.

getHeight

public int getHeight()
The height in pixels of the generated chart image.

Returns:
Returns the height.

setHeight

public void setHeight(int height)
The height in pixels of the generated chart image.

Parameters:
height - The height to set.

getWidth

public int getWidth()
The width in pixels of the generated chart image.

Returns:
Returns the width.

setWidth

public void setWidth(int width)
The width in pixels of the generated chart image.

Parameters:
width - The width to set.


Copyright © 2004-2005 Concise. All Rights Reserved.