hudson.plugins.findbugs.util
Class NewVersusFixedGraph

java.lang.Object
  extended by hudson.plugins.findbugs.util.BuildResultGraph
      extended by hudson.plugins.findbugs.util.CategoryBuildResultGraph
          extended by hudson.plugins.findbugs.util.NewVersusFixedGraph

public class NewVersusFixedGraph
extends CategoryBuildResultGraph

Builds a new versus fixed warnings graph for a specified result action.

Author:
Ulli Hafner

Constructor Summary
NewVersusFixedGraph()
           
 
Method Summary
protected  java.util.List<java.lang.Integer> computeSeries(BuildResult current)
          Returns the series to plot for the specified build result.
protected  org.jfree.chart.JFreeChart createChart(org.jfree.data.category.CategoryDataset dataSet)
          Creates the chart for the specified data set.
protected  org.jfree.chart.renderer.category.CategoryItemRenderer createRenderer(java.lang.String pluginName, ToolTipProvider toolTipProvider)
          Creates the renderer for this graph.
protected  java.awt.Color[] getColors()
          Returns the colors for this graph.
 
Methods inherited from class hudson.plugins.findbugs.util.CategoryBuildResultGraph
create, createAreaChart, createBlockChart, createChart, setCategoryPlotProperties, setColors
 
Methods inherited from class hudson.plugins.findbugs.util.BuildResultGraph
computeDayDelta, createXYChart, getRootUrl, setPlotProperties, setRootUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewVersusFixedGraph

public NewVersusFixedGraph()
Method Detail

computeSeries

protected java.util.List<java.lang.Integer> computeSeries(BuildResult current)
Returns the series to plot for the specified build result.

Specified by:
computeSeries in class CategoryBuildResultGraph
Parameters:
current - the current build result
Returns:
the series to plot

createChart

protected org.jfree.chart.JFreeChart createChart(org.jfree.data.category.CategoryDataset dataSet)
Creates the chart for the specified data set.

Specified by:
createChart in class CategoryBuildResultGraph
Parameters:
dataSet - the data set to show in the graph
Returns:
the created graph

getColors

protected java.awt.Color[] getColors()
Returns the colors for this graph. The first color is used for the first series value, etc.

Specified by:
getColors in class CategoryBuildResultGraph
Returns:
the colors

createRenderer

protected org.jfree.chart.renderer.category.CategoryItemRenderer createRenderer(java.lang.String pluginName,
                                                                                ToolTipProvider toolTipProvider)
Creates the renderer for this graph.

Specified by:
createRenderer in class CategoryBuildResultGraph
Parameters:
pluginName - the name of the plug-in
toolTipProvider - the tooltip provider
Returns:
the renderer


Copyright © 2009. All Rights Reserved.