com.atlassian.bamboo.charts.timeperiod
Class AverageDurationLineChart

java.lang.Object
  extended by com.atlassian.bamboo.charts.AbstractBambooChart
      extended by com.atlassian.bamboo.charts.timeperiod.AbstractTimePeriodGroupedChart
          extended by com.atlassian.bamboo.charts.timeperiod.AverageDurationLineChart
All Implemented Interfaces:
ChartBuilder, org.jfree.chart.labels.XYToolTipGenerator

public class AverageDurationLineChart
extends AbstractTimePeriodGroupedChart
implements org.jfree.chart.labels.XYToolTipGenerator


Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.bamboo.charts.AbstractBambooChart
AbstractBambooChart.AutoRange, AbstractBambooChart.NotifyListeners
 
Field Summary
 
Fields inherited from class com.atlassian.bamboo.charts.timeperiod.AbstractTimePeriodGroupedChart
DAY, MONTH, WEEK, YEAR
 
Fields inherited from class com.atlassian.bamboo.charts.AbstractBambooChart
chartTitle, contextPath, height, shortUrlUsed, width, xAxisLabel, yAxisLabel
 
Constructor Summary
AverageDurationLineChart(int height, int width, java.lang.String chartTitle, java.lang.String xAxisLabel, java.lang.String yAxisLabel, java.lang.String periodRange, java.util.List<? extends ResultStatisticsProvider> filteredResults)
           
 
Method Summary
protected  TimePeriodCollater createNewPeriod(java.util.Date buildDate, ResultStatisticsProvider result, java.lang.String seriesName)
           
 java.util.Map<java.lang.String,java.lang.Object> generateChartParams()
           
 java.lang.String generateToolTip(org.jfree.data.xy.XYDataset xyDataset, int series, int item)
           
 org.jfree.chart.JFreeChart getChart()
           
protected  void writeCounterToDataSet(org.jfree.data.time.TimeTableXYDataset dataset, TimePeriodCollater counter)
           
 
Methods inherited from class com.atlassian.bamboo.charts.timeperiod.AbstractTimePeriodGroupedChart
getAllPeriodsBetweenDates, getEarliestBuildDate, getLatestbuildDate, getPeriod, getPeriodRange, isInPeriod, populateDataSet
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AverageDurationLineChart

public AverageDurationLineChart(int height,
                                int width,
                                java.lang.String chartTitle,
                                java.lang.String xAxisLabel,
                                java.lang.String yAxisLabel,
                                java.lang.String periodRange,
                                java.util.List<? extends ResultStatisticsProvider> filteredResults)
Method Detail

generateChartParams

public java.util.Map<java.lang.String,java.lang.Object> generateChartParams()
Specified by:
generateChartParams in interface ChartBuilder

getChart

public org.jfree.chart.JFreeChart getChart()

generateToolTip

public java.lang.String generateToolTip(org.jfree.data.xy.XYDataset xyDataset,
                                        int series,
                                        int item)
Specified by:
generateToolTip in interface org.jfree.chart.labels.XYToolTipGenerator

createNewPeriod

protected TimePeriodCollater createNewPeriod(java.util.Date buildDate,
                                             ResultStatisticsProvider result,
                                             java.lang.String seriesName)
Specified by:
createNewPeriod in class AbstractTimePeriodGroupedChart

writeCounterToDataSet

protected void writeCounterToDataSet(org.jfree.data.time.TimeTableXYDataset dataset,
                                     TimePeriodCollater counter)
Specified by:
writeCounterToDataSet in class AbstractTimePeriodGroupedChart


Copyright © 2010 Atlassian. All Rights Reserved.