hudson.plugins.tasks.util
Class HealthGraph

java.lang.Object
  extended by hudson.plugins.tasks.util.BuildResultGraph
      extended by hudson.plugins.tasks.util.CategoryBuildResultGraph
          extended by hudson.plugins.tasks.util.HealthGraph

public class HealthGraph
extends CategoryBuildResultGraph

Builds a graph showing all warnings by health descriptor.

Author:
Ulli Hafner

Constructor Summary
HealthGraph(AbstractHealthDescriptor healthDescriptor)
          Creates a new instance of HealthGraph.
 
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.tasks.util.CategoryBuildResultGraph
create, createAreaChart, createBlockChart, createChart, setCategoryPlotProperties, setColors
 
Methods inherited from class hudson.plugins.tasks.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

HealthGraph

public HealthGraph(AbstractHealthDescriptor healthDescriptor)
Creates a new instance of HealthGraph.

Parameters:
healthDescriptor - the builder to create the graph
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

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

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


Copyright © 2009. All Rights Reserved.