Package com.atlassian.bamboo.charts
Class BuildFailuresChart
- java.lang.Object
-
- com.atlassian.bamboo.charts.AbstractBambooChart
-
- com.atlassian.bamboo.charts.BuildFailuresChart
-
- All Implemented Interfaces:
ChartBuilder
,org.jfree.chart.labels.XYToolTipGenerator
,org.jfree.chart.urls.XYURLGenerator
public class BuildFailuresChart extends AbstractBambooChart implements org.jfree.chart.labels.XYToolTipGenerator, org.jfree.chart.urls.XYURLGenerator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.atlassian.bamboo.charts.AbstractBambooChart
AbstractBambooChart.AutoRange, AbstractBambooChart.NotifyListeners
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<Integer,ResultStatisticsProvider>
buildResults
protected List<ResultsSummary>
filteredResults
protected PlanIdentifier
plan
protected String
series
-
Fields inherited from class com.atlassian.bamboo.charts.AbstractBambooChart
chartTitle, contextPath, height, shortUrlUsed, width, xAxisLabel, yAxisLabel
-
-
Constructor Summary
Constructors Constructor Description BuildFailuresChart(int height, int width, String chartTitle, String xAxisLabel, String yAxisLabel, @NotNull PlanIdentifier plan, @NotNull List<? extends ResultsSummary> filteredResults, @NotNull String series)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
appendTooltipSuffix(StringBuilder tooltip, ResultsSummary buildResultsSummary)
protected org.jfree.chart.JFreeChart
generateChart(org.jfree.data.xy.CategoryTableXYDataset dataSet1)
Map<String,Object>
generateChartParams()
String
generateToolTip(org.jfree.data.xy.XYDataset dataset, int row, int column)
String
generateURL(org.jfree.data.xy.XYDataset dataset, int row, int column)
org.jfree.chart.JFreeChart
getChart()
-
Methods inherited from class com.atlassian.bamboo.charts.AbstractBambooChart
configureDurationRangeAxis, configureDurationRangeAxis, configureDurationRangeAxisForSeconds, generateChartImage, generateChartImage, generateRandomMapName, getChartTitle, getContextPath, getHeight, getWidth, getxAxisLabel, getyAxisLabel, isShortUrlUsed, setChartTitle, setContextPath, setHeight, setShortUrlUsed, setWidth, setxAxisLabel, setyAxisLabel
-
-
-
-
Field Detail
-
plan
protected final PlanIdentifier plan
-
filteredResults
protected final List<ResultsSummary> filteredResults
-
series
protected final String series
-
buildResults
protected Map<Integer,ResultStatisticsProvider> buildResults
-
-
Constructor Detail
-
BuildFailuresChart
public BuildFailuresChart(int height, int width, String chartTitle, String xAxisLabel, String yAxisLabel, @NotNull @NotNull PlanIdentifier plan, @NotNull @NotNull List<? extends ResultsSummary> filteredResults, @NotNull @NotNull String series)
-
-
Method Detail
-
generateChartParams
public Map<String,Object> generateChartParams()
- Specified by:
generateChartParams
in interfaceChartBuilder
-
getChart
public org.jfree.chart.JFreeChart getChart()
-
generateChart
protected org.jfree.chart.JFreeChart generateChart(org.jfree.data.xy.CategoryTableXYDataset dataSet1)
-
generateToolTip
public String generateToolTip(org.jfree.data.xy.XYDataset dataset, int row, int column)
- Specified by:
generateToolTip
in interfaceorg.jfree.chart.labels.XYToolTipGenerator
-
generateURL
public String generateURL(org.jfree.data.xy.XYDataset dataset, int row, int column)
- Specified by:
generateURL
in interfaceorg.jfree.chart.urls.XYURLGenerator
-
appendTooltipSuffix
protected void appendTooltipSuffix(StringBuilder tooltip, ResultsSummary buildResultsSummary)
-
-