Package com.atlassian.bamboo.charts
Class AbstractBambooChart
- java.lang.Object
-
- com.atlassian.bamboo.charts.AbstractBambooChart
-
- All Implemented Interfaces:
ChartBuilder
- Direct Known Subclasses:
AbstractTimePeriodGroupedChart,AuthorNumberBuildsBarChart,BambooReportLineChart,BuildFailuresChart,BuildTimesChart,CombinedBuildSummaryByBuildChart,CombinedBuildSummaryByTimeChart,TestCaseBuildTimesChart
public abstract class AbstractBambooChart extends Object implements ChartBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAbstractBambooChart.AutoRangeprotected static classAbstractBambooChart.NotifyListeners
-
Field Summary
Fields Modifier and Type Field Description protected StringchartTitleprotected StringcontextPathprotected intheightprotected booleanshortUrlUsedprotected intwidthprotected StringxAxisLabelprotected StringyAxisLabel
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBambooChart()protectedAbstractBambooChart(int height, int width, String chartTitle, String xAxisLabel, String yAxisLabel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureDurationRangeAxis(@NotNull org.jfree.chart.JFreeChart chart, @NotNull AbstractBambooChart.AutoRange autoRange)Helper method to display "nice" durations rather than just in secondsprotected voidconfigureDurationRangeAxis(org.jfree.chart.JFreeChart chart)protected voidconfigureDurationRangeAxisForSeconds(org.jfree.chart.JFreeChart chart)protected @NotNull Map<String,Object>generateChartImage(@NotNull org.jfree.chart.JFreeChart chart)protected @NotNull Map<String,Object>generateChartImage(@NotNull org.jfree.chart.JFreeChart chart, @NotNull Map<String,Object> params)protected StringgenerateRandomMapName()StringgetChartTitle()StringgetContextPath()intgetHeight()intgetWidth()StringgetxAxisLabel()StringgetyAxisLabel()booleanisShortUrlUsed()voidsetChartTitle(String chartTitle)voidsetContextPath(String contextPath)voidsetHeight(int height)voidsetShortUrlUsed(boolean shortUrlUsed)voidsetWidth(int width)voidsetxAxisLabel(String xAxisLabel)voidsetyAxisLabel(String yAxisLabel)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.charts.ChartBuilder
generateChartParams
-
-
-
-
Method Detail
-
generateChartImage
@NotNull protected @NotNull Map<String,Object> generateChartImage(@NotNull @NotNull org.jfree.chart.JFreeChart chart, @NotNull @NotNull Map<String,Object> params)
-
generateRandomMapName
protected String generateRandomMapName()
-
getHeight
public int getHeight()
-
setHeight
public void setHeight(int height)
-
getWidth
public int getWidth()
-
setWidth
public void setWidth(int width)
-
getChartTitle
public String getChartTitle()
-
setChartTitle
public void setChartTitle(String chartTitle)
-
getxAxisLabel
public String getxAxisLabel()
-
setxAxisLabel
public void setxAxisLabel(String xAxisLabel)
-
getyAxisLabel
public String getyAxisLabel()
-
setyAxisLabel
public void setyAxisLabel(String yAxisLabel)
-
getContextPath
public String getContextPath()
-
setContextPath
public void setContextPath(String contextPath)
-
isShortUrlUsed
public boolean isShortUrlUsed()
-
setShortUrlUsed
public void setShortUrlUsed(boolean shortUrlUsed)
-
generateChartImage
@NotNull protected @NotNull Map<String,Object> generateChartImage(@NotNull @NotNull org.jfree.chart.JFreeChart chart)
-
configureDurationRangeAxis
protected void configureDurationRangeAxis(@NotNull @NotNull org.jfree.chart.JFreeChart chart, @NotNull @NotNull AbstractBambooChart.AutoRange autoRange)Helper method to display "nice" durations rather than just in seconds- Parameters:
chart- chart to change the duration autoRange - autorange setting for absolute duration display
-
configureDurationRangeAxis
protected void configureDurationRangeAxis(org.jfree.chart.JFreeChart chart)
-
configureDurationRangeAxisForSeconds
protected void configureDurationRangeAxisForSeconds(org.jfree.chart.JFreeChart chart)
-
-