org.jvnet.its
Class Graph<DS extends org.jfree.data.general.Dataset>

java.lang.Object
  extended by org.jvnet.its.Graph<DS>
Direct Known Subclasses:
BugCountGraph, BugsLifeGraph, CreatedVsResolvedGraph

public abstract class Graph<DS extends org.jfree.data.general.Dataset>
extends java.lang.Object

Author:
Kohsuke Kawaguchi

Constructor Summary
Graph()
           
 
Method Summary
protected abstract  DS buildDataSet(java.util.List<org.kohsuke.jnt.JNIssue.Activity> activities)
           
protected abstract  org.jfree.chart.JFreeChart createChart(DS ds)
           
 void generate(java.util.List<org.kohsuke.jnt.JNIssue.Activity> activities, java.io.File outDir)
           
protected abstract  java.lang.String getImageName()
           
protected  java.lang.Object loadDataset()
          Debug method.
protected  void saveDataset(org.jfree.data.general.Dataset ds)
           
 void write(org.jfree.chart.JFreeChart chart, java.io.File target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graph

public Graph()
Method Detail

generate

public void generate(java.util.List<org.kohsuke.jnt.JNIssue.Activity> activities,
                     java.io.File outDir)
              throws java.io.IOException
Throws:
java.io.IOException

getImageName

protected abstract java.lang.String getImageName()

createChart

protected abstract org.jfree.chart.JFreeChart createChart(DS ds)

buildDataSet

protected abstract DS buildDataSet(java.util.List<org.kohsuke.jnt.JNIssue.Activity> activities)
                                                                   throws java.io.IOException
Throws:
java.io.IOException

loadDataset

protected java.lang.Object loadDataset()
                                throws java.io.IOException
Debug method.

Throws:
java.io.IOException

saveDataset

protected void saveDataset(org.jfree.data.general.Dataset ds)
                    throws java.io.IOException
Throws:
java.io.IOException

write

public void write(org.jfree.chart.JFreeChart chart,
                  java.io.File target)
           throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2008. All Rights Reserved.