hudson.plugins.covcomplplot.util
Class CustomGraph

java.lang.Object
  extended by hudson.plugins.covcomplplot.util.CustomGraph
Direct Known Subclasses:
CovComplPlotTaget.GraphImpl

public abstract class CustomGraph
extends java.lang.Object


Field Summary
protected  int defaultH
           
protected  int defaultW
           
protected  org.jfree.chart.JFreeChart graph
           
protected  long timestamp
           
 
Constructor Summary
protected CustomGraph(java.util.Calendar timestamp, int defaultW, int defaultH)
           
protected CustomGraph(long timestamp, int defaultW, int defaultH)
           
 
Method Summary
protected abstract  org.jfree.chart.JFreeChart createGraph()
          Actually render a chart.
 void doPng(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Renders a graph.
protected  java.awt.image.BufferedImage render(org.jfree.chart.ChartRenderingInfo info)
           
protected  java.awt.image.BufferedImage render(org.kohsuke.stapler.StaplerRequest req, org.jfree.chart.ChartRenderingInfo info)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timestamp

protected final long timestamp

defaultW

protected final int defaultW

defaultH

protected final int defaultH

graph

protected volatile org.jfree.chart.JFreeChart graph
Constructor Detail

CustomGraph

protected CustomGraph(long timestamp,
                      int defaultW,
                      int defaultH)
Parameters:
timestamp - Timestamp of this graph. Used for HTTP cache related headers. If the graph doesn't have any timestamp to tie it to, pass -1.

CustomGraph

protected CustomGraph(java.util.Calendar timestamp,
                      int defaultW,
                      int defaultH)
Method Detail

createGraph

protected abstract org.jfree.chart.JFreeChart createGraph()
Actually render a chart.


render

protected java.awt.image.BufferedImage render(org.jfree.chart.ChartRenderingInfo info)

render

protected java.awt.image.BufferedImage render(org.kohsuke.stapler.StaplerRequest req,
                                              org.jfree.chart.ChartRenderingInfo info)

doPng

public void doPng(org.kohsuke.stapler.StaplerRequest req,
                  org.kohsuke.stapler.StaplerResponse rsp)
           throws java.io.IOException
Renders a graph.

Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.