|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.analysis.graph.BuildResultGraph
hudson.plugins.analysis.graph.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 List<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,
String pluginName)
Creates a PNG image trend graph with clickable map. |
org.jfree.chart.JFreeChart |
createAggregation(GraphConfiguration configuration,
Collection<ResultAction<? extends BuildResult>> resultActions,
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> action)
Creates the chart by iterating through all available actions. |
protected org.jfree.chart.JFreeChart |
createLineGraph(org.jfree.data.category.CategoryDataset dataSet,
boolean hasLegend)
Creates a line graph for the specified data set. |
protected org.jfree.chart.renderer.category.CategoryItemRenderer |
createLineRenderer()
Creates a line renderer with predefined stroke. |
protected abstract org.jfree.chart.renderer.category.CategoryItemRenderer |
createRenderer(GraphConfiguration configuration,
String pluginName,
ToolTipProvider toolTipProvider)
Creates the renderer for this graph. |
protected abstract Color[] |
getColors()
Returns the colors for this graph. |
protected String |
getRowId(int level)
Returns the row identifier for the specified level. |
protected void |
setCategoryPlotProperties(org.jfree.chart.plot.CategoryPlot plot)
Sets properties common to all category graphs of this plug-in. |
void |
setColors(org.jfree.chart.JFreeChart chart,
Color[] colors)
Sets the series colors for the specified chart. |
| Methods inherited from class hudson.plugins.analysis.graph.BuildResultGraph |
|---|
computeDayDelta, computeDayDelta, createXYChart, getExampleImage, getGraph, getGraph, getId, getLabel, getPlugin, getRootUrl, isBuildTooOld, isDeactivated, isSelectable, isVisible, 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,
String pluginName)
create in class BuildResultGraphconfiguration - the configuration parametersresultAction - the result action to start the graph computation frompluginName - the name of the plug-in
public org.jfree.chart.JFreeChart createAggregation(GraphConfiguration configuration,
Collection<ResultAction<? extends BuildResult>> resultActions,
String pluginName)
createAggregation in class BuildResultGraphconfiguration - the configuration parametersresultActions - the result actions to start the graph computation frompluginName - the name of the plug-in
protected org.jfree.chart.JFreeChart createChart(GraphConfiguration configuration,
ResultAction<? extends BuildResult> action)
configuration - the configuration parametersaction - the action to start with
protected String getRowId(int level)
level - the level
protected abstract List<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(GraphConfiguration configuration,
String pluginName,
ToolTipProvider toolTipProvider)
configuration - the graph configurationpluginName - the name of the plug-intoolTipProvider - the tooltip provider
protected abstract Color[] getColors()
public void setColors(org.jfree.chart.JFreeChart chart,
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
protected org.jfree.chart.renderer.category.CategoryItemRenderer createLineRenderer()
protected org.jfree.chart.JFreeChart createLineGraph(org.jfree.data.category.CategoryDataset dataSet,
boolean hasLegend)
dataSet - the data to plothasLegend - determines whether to show a legend
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||