|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.tasks.util.BuildResultGraph
hudson.plugins.tasks.util.CategoryBuildResultGraph
public abstract class CategoryBuildResultGraph
A build result graph using a CategoryPlot. Uses a template method to
create a graph based on a series of build results.
| Constructor Summary | |
|---|---|
CategoryBuildResultGraph()
|
|
| Method Summary | |
|---|---|
protected abstract java.util.List<java.lang.Integer> |
computeSeries(BuildResult current)
Returns the series to plot for the specified build result. |
org.jfree.chart.JFreeChart |
create(GraphConfiguration configuration,
ResultAction<? extends BuildResult> resultAction,
java.lang.String pluginName)
Creates a PNG image trend graph with clickable map. |
org.jfree.chart.JFreeChart |
createAreaChart(org.jfree.data.category.CategoryDataset dataset)
Creates a stacked area graph from the specified data set. |
org.jfree.chart.JFreeChart |
createBlockChart(org.jfree.data.category.CategoryDataset dataset)
Creates a stacked block graph from the specified data set. |
protected abstract org.jfree.chart.JFreeChart |
createChart(org.jfree.data.category.CategoryDataset dataSet)
Creates the chart for the specified data set. |
protected org.jfree.chart.JFreeChart |
createChart(GraphConfiguration configuration,
ResultAction<? extends BuildResult> resultAction)
Creates the chart by iterating through all available actions. |
protected abstract org.jfree.chart.renderer.category.CategoryItemRenderer |
createRenderer(java.lang.String pluginName,
ToolTipProvider toolTipProvider)
Creates the renderer for this graph. |
protected abstract java.awt.Color[] |
getColors()
Returns the colors for this graph. |
protected void |
setCategoryPlotProperties(org.jfree.chart.plot.CategoryPlot plot)
Sets properties common to all category graphs of this plug-in. |
protected void |
setColors(org.jfree.chart.JFreeChart chart,
java.awt.Color[] colors)
Sets the series colors for the specified chart. |
| 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 |
|---|
public CategoryBuildResultGraph()
| Method Detail |
|---|
public org.jfree.chart.JFreeChart create(GraphConfiguration configuration,
ResultAction<? extends BuildResult> resultAction,
java.lang.String pluginName)
create in class BuildResultGraphconfiguration - the configuration parametersresultAction - the result action to start the graph computation frompluginName - the name of the plug-in
protected org.jfree.chart.JFreeChart createChart(GraphConfiguration configuration,
ResultAction<? extends BuildResult> resultAction)
configuration - the configuration parametersresultAction - the action to start with
protected abstract java.util.List<java.lang.Integer> computeSeries(BuildResult current)
current - the current build result
protected abstract org.jfree.chart.JFreeChart createChart(org.jfree.data.category.CategoryDataset dataSet)
dataSet - the data set to show in the graph
protected abstract org.jfree.chart.renderer.category.CategoryItemRenderer createRenderer(java.lang.String pluginName,
ToolTipProvider toolTipProvider)
pluginName - the name of the plug-intoolTipProvider - the tooltip provider
protected abstract java.awt.Color[] getColors()
protected void setColors(org.jfree.chart.JFreeChart chart,
java.awt.Color[] colors)
chart - the chartcolors - the colors to setprotected void setCategoryPlotProperties(org.jfree.chart.plot.CategoryPlot plot)
plot - the chart to set the properties forpublic org.jfree.chart.JFreeChart createAreaChart(org.jfree.data.category.CategoryDataset dataset)
dataset - the values to display
public org.jfree.chart.JFreeChart createBlockChart(org.jfree.data.category.CategoryDataset dataset)
dataset - the values to display
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||