hudson.plugins.findbugs.util
Class BuildResultGraph

java.lang.Object
  extended by hudson.plugins.findbugs.util.BuildResultGraph
Direct Known Subclasses:
CategoryBuildResultGraph, DifferenceGraph

public abstract class BuildResultGraph
extends java.lang.Object

Base class for build results graphs.

Author:
Ulli Hafner

Constructor Summary
BuildResultGraph()
           
 
Method Summary
protected  long computeDayDelta(java.util.Calendar first, java.util.Calendar second)
          Computes the delta between two dates in days.
abstract  org.jfree.chart.JFreeChart create(GraphConfiguration configuration, ResultAction<? extends BuildResult> resultAction, java.lang.String pluginName)
          Creates the trend graph.
 org.jfree.chart.JFreeChart createXYChart(org.jfree.data.xy.XYDataset dataset)
          Creates a XY graph from the specified data set.
 java.lang.String getRootUrl()
          Returns the root URL.
protected  void setPlotProperties(org.jfree.chart.plot.Plot plot)
          Sets properties common to all plots of this plug-in.
 void setRootUrl(java.lang.String rootUrl)
          Sets the root URL to the specified value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildResultGraph

public BuildResultGraph()
Method Detail

setRootUrl

public void setRootUrl(java.lang.String rootUrl)
Sets the root URL to the specified value.

Parameters:
rootUrl - the value to set

getRootUrl

public java.lang.String getRootUrl()
Returns the root URL.

Returns:
the root URL

create

public abstract org.jfree.chart.JFreeChart create(GraphConfiguration configuration,
                                                  ResultAction<? extends BuildResult> resultAction,
                                                  java.lang.String pluginName)
Creates the trend graph.

Parameters:
configuration - the configuration parameters
resultAction - the result action to start the graph computation from
pluginName - the name of the plug-in
Returns:
the graph

computeDayDelta

protected long computeDayDelta(java.util.Calendar first,
                               java.util.Calendar second)
Computes the delta between two dates in days.

Parameters:
first - the first date
second - the second date
Returns:
the delta between two dates in days

setPlotProperties

protected void setPlotProperties(org.jfree.chart.plot.Plot plot)
Sets properties common to all plots of this plug-in.

Parameters:
plot - the plot to set the properties for

createXYChart

public org.jfree.chart.JFreeChart createXYChart(org.jfree.data.xy.XYDataset dataset)
Creates a XY graph from the specified data set.

Parameters:
dataset - the values to display
Returns:
the created graph


Copyright © 2009. All Rights Reserved.