net.sf.jagzilla
Class ChartFactory

java.lang.Object
  extended bynet.sf.jagzilla.ChartFactory

public class ChartFactory
extends java.lang.Object

creates JFreeChart charts with information from the database. This class uses the BugQuery and SystemQuery interfaces to retrive information on bugs and component, products.
This class returns chart objects (see http://www.jfree.org/chart/ which are convienient to save to a file of send to an outputstream from a JSP page.

Author:
mike

Constructor Summary
ChartFactory()
           
 
Method Summary
 JFreeChart getBugStatusTimelineChart(BugQuery bq, SystemQuery sq, java.lang.String product, java.lang.String from, java.lang.String to)
           
 JFreeChart getTotalBugsByComponentChart(BugQuery bq, SystemQuery sq, java.lang.String product)
           
 JFreeChart getTotalBugsByDeveloperAssigned(BugQuery bq, SystemQuery sq)
           
static JFreeChart getTotalBugsByProductChart(BugQuery bq, SystemQuery sq)
          gets a chart 3D pie chart with the total ammount of bugs by product.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartFactory

public ChartFactory()
Method Detail

getTotalBugsByProductChart

public static JFreeChart getTotalBugsByProductChart(BugQuery bq,
                                                    SystemQuery sq)
                                             throws JagzillaException
gets a chart 3D pie chart with the total ammount of bugs by product.

Parameters:
bq -
sq -
Returns:
@throws JagzillaException if an error occurs
Throws:
JagzillaException

getTotalBugsByComponentChart

public JFreeChart getTotalBugsByComponentChart(BugQuery bq,
                                               SystemQuery sq,
                                               java.lang.String product)
                                        throws JagzillaException
Parameters:
bq -
sq -
product -
Returns:
@throws JagzillaException
Throws:
JagzillaException

getBugStatusTimelineChart

public JFreeChart getBugStatusTimelineChart(BugQuery bq,
                                            SystemQuery sq,
                                            java.lang.String product,
                                            java.lang.String from,
                                            java.lang.String to)
                                     throws JagzillaException
Parameters:
product - if null stats for all products
from - must be dd/mm/yyyy formatted date from to search or null
to - must be dd/mm/yyyy formatted date to to search or null
Returns:
Throws:
JagzillaException

getTotalBugsByDeveloperAssigned

public JFreeChart getTotalBugsByDeveloperAssigned(BugQuery bq,
                                                  SystemQuery sq)
                                           throws JagzillaException
Throws:
JagzillaException


Distributed under the GPL. By Miguel Griffa. See the Jagzilla project page for more info.