net.sf.jagzilla
Class ChartFactory
java.lang.Object
net.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChartFactory
public ChartFactory()
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 productsfrom - must be dd/mm/yyyy formatted date from to search or nullto - 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.