com.atlassian.bamboo.charts
Class AbstractBambooChart

java.lang.Object
  extended by com.atlassian.bamboo.charts.AbstractBambooChart
All Implemented Interfaces:
ChartBuilder
Direct Known Subclasses:
AbstractTimePeriodGroupedChart, BambooReportLineChart, BuildFailuresChart, BuildTimesChart, CombinedBuildSummaryByBuildChart, CombinedBuildSummaryByTimeChart, TestCaseBuildTimesChart

public abstract class AbstractBambooChart
extends java.lang.Object
implements ChartBuilder


Nested Class Summary
protected static class AbstractBambooChart.AutoRange
           
protected static class AbstractBambooChart.NotifyListeners
           
 
Field Summary
protected  java.lang.String chartTitle
           
protected  java.lang.String contextPath
           
protected  int height
           
protected  boolean shortUrlUsed
           
protected  int width
           
protected  java.lang.String xAxisLabel
           
protected  java.lang.String yAxisLabel
           
 
Constructor Summary
protected AbstractBambooChart()
           
protected AbstractBambooChart(int height, int width, java.lang.String chartTitle, java.lang.String xAxisLabel, java.lang.String yAxisLabel)
           
 
Method Summary
protected  void configureDurationRangeAxis(org.jfree.chart.JFreeChart chart)
           
protected  void configureDurationRangeAxis(org.jfree.chart.JFreeChart chart, AbstractBambooChart.AutoRange autoRange)
          Helper method to display "nice" durations rather than just in seconds
protected  void configureDurationRangeAxisForSeconds(org.jfree.chart.JFreeChart chart)
           
protected  java.util.Map<java.lang.String,java.lang.Object> generateChartImage(org.jfree.chart.JFreeChart chart)
           
protected  java.util.Map<java.lang.String,java.lang.Object> generateChartImage(org.jfree.chart.JFreeChart chart, java.util.Map<java.lang.String,java.lang.Object> params)
           
protected  java.lang.String generateRandomMapName()
           
 java.lang.String getChartTitle()
           
 java.lang.String getContextPath()
           
 int getHeight()
           
 int getWidth()
           
 java.lang.String getxAxisLabel()
           
 java.lang.String getyAxisLabel()
           
 boolean isShortUrlUsed()
           
 void setChartTitle(java.lang.String chartTitle)
           
 void setContextPath(java.lang.String contextPath)
           
 void setHeight(int height)
           
 void setShortUrlUsed(boolean shortUrlUsed)
           
 void setWidth(int width)
           
 void setxAxisLabel(java.lang.String xAxisLabel)
           
 void setyAxisLabel(java.lang.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
 

Field Detail

height

protected int height

width

protected int width

chartTitle

protected java.lang.String chartTitle

xAxisLabel

protected java.lang.String xAxisLabel

yAxisLabel

protected java.lang.String yAxisLabel

contextPath

protected java.lang.String contextPath

shortUrlUsed

protected boolean shortUrlUsed
Constructor Detail

AbstractBambooChart

protected AbstractBambooChart()

AbstractBambooChart

protected AbstractBambooChart(int height,
                              int width,
                              java.lang.String chartTitle,
                              java.lang.String xAxisLabel,
                              java.lang.String yAxisLabel)
Method Detail

generateChartImage

protected java.util.Map<java.lang.String,java.lang.Object> generateChartImage(org.jfree.chart.JFreeChart chart,
                                                                              java.util.Map<java.lang.String,java.lang.Object> params)

generateRandomMapName

protected java.lang.String generateRandomMapName()

getHeight

public int getHeight()

setHeight

public void setHeight(int height)

getWidth

public int getWidth()

setWidth

public void setWidth(int width)

getChartTitle

public java.lang.String getChartTitle()

setChartTitle

public void setChartTitle(java.lang.String chartTitle)

getxAxisLabel

public java.lang.String getxAxisLabel()

setxAxisLabel

public void setxAxisLabel(java.lang.String xAxisLabel)

getyAxisLabel

public java.lang.String getyAxisLabel()

setyAxisLabel

public void setyAxisLabel(java.lang.String yAxisLabel)

getContextPath

public java.lang.String getContextPath()

setContextPath

public void setContextPath(java.lang.String contextPath)

isShortUrlUsed

public boolean isShortUrlUsed()

setShortUrlUsed

public void setShortUrlUsed(boolean shortUrlUsed)

generateChartImage

protected java.util.Map<java.lang.String,java.lang.Object> generateChartImage(@NotNull
                                                                              org.jfree.chart.JFreeChart chart)

configureDurationRangeAxis

protected void configureDurationRangeAxis(org.jfree.chart.JFreeChart chart,
                                          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)


Copyright © 2011 Atlassian. All Rights Reserved.