hudson.plugins.analysis.graph
Class HealthGraph

java.lang.Object
  extended by hudson.plugins.analysis.graph.BuildResultGraph
      extended by hudson.plugins.analysis.graph.CategoryBuildResultGraph
          extended by hudson.plugins.analysis.graph.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  List<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(GraphConfiguration configuration, String pluginName, ToolTipProvider toolTipProvider)
          Creates the renderer for this graph.
protected  Color[] getColors()
          Returns the colors for this graph.
 String getId()
          Returns the ID of this graph.
 String getLabel()
          Returns a human readable label describing this graph.
 boolean isSelectable()
          Returns whether this graph is selectable.
 
Methods inherited from class hudson.plugins.analysis.graph.CategoryBuildResultGraph
create, createAggregation, createAreaChart, createBlockChart, createChart, createLineGraph, createLineRenderer, getRowId, setCategoryPlotProperties, setColors
 
Methods inherited from class hudson.plugins.analysis.graph.BuildResultGraph
computeDayDelta, computeDayDelta, createXYChart, getExampleImage, getGraph, getGraph, getPlugin, getRootUrl, isBuildTooOld, isDeactivated, isVisible, 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 health descriptor
Method Detail

isSelectable

public boolean isSelectable()
Description copied from class: BuildResultGraph
Returns whether this graph is selectable.

Overrides:
isSelectable in class BuildResultGraph
Returns:
true if this graph is selectable, false otherwise

getId

public String getId()
Description copied from class: BuildResultGraph
Returns the ID of this graph.

Specified by:
getId in class BuildResultGraph
Returns:
the ID of this graph

getLabel

public String getLabel()
Description copied from class: BuildResultGraph
Returns a human readable label describing this graph.

Specified by:
getLabel in class BuildResultGraph
Returns:
a label for this graph

computeSeries

protected List<Integer> computeSeries(BuildResult current)
Description copied from class: CategoryBuildResultGraph
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)
Description copied from class: CategoryBuildResultGraph
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(GraphConfiguration configuration,
                                                                                String pluginName,
                                                                                ToolTipProvider toolTipProvider)
Creates the renderer for this graph.

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

getColors

protected Color[] getColors()
Description copied from class: CategoryBuildResultGraph
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 © 2004-2012 Hudson. All Rights Reserved.