com.atlassian.bamboo.charts.timeperiod
Class AbstractTimePeriodGroupedChart

java.lang.Object
  extended by com.atlassian.bamboo.charts.AbstractBambooChart
      extended by com.atlassian.bamboo.charts.timeperiod.AbstractTimePeriodGroupedChart
All Implemented Interfaces:
ChartBuilder
Direct Known Subclasses:
AverageDurationLineChart, SuccessRatioStackedAreaChart

public abstract class AbstractTimePeriodGroupedChart
extends AbstractBambooChart


Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.bamboo.charts.AbstractBambooChart
AbstractBambooChart.AutoRange, AbstractBambooChart.NotifyListeners
 
Field Summary
static java.lang.String DAY
           
static java.lang.String MONTH
           
static java.lang.String WEEK
           
static java.lang.String YEAR
           
 
Fields inherited from class com.atlassian.bamboo.charts.AbstractBambooChart
chartTitle, contextPath, height, shortUrlUsed, width, xAxisLabel, yAxisLabel
 
Constructor Summary
AbstractTimePeriodGroupedChart(int height, int width, java.lang.String chartTitle, java.lang.String xAxisLabel, java.lang.String yAxisLabel, java.lang.String periodRange)
           
 
Method Summary
protected abstract  TimePeriodCollater createNewPeriod(java.util.Date buildDate, ResultStatisticsProvider result, java.lang.String seriesName)
           
protected  java.util.List getAllPeriodsBetweenDates(java.util.Date earliest, java.util.Date latest)
           
protected  org.jfree.data.time.RegularTimePeriod getPeriod(java.util.Date date, java.lang.String periodRange)
           
 java.lang.String getPeriodRange()
           
protected  boolean isInPeriod(org.jfree.data.time.RegularTimePeriod time, java.util.Date date)
           
protected  org.jfree.data.time.TimeTableXYDataset populateDataSet(java.util.Collection<ResultStatisticsProvider> results, org.jfree.data.time.TimeTableXYDataset dataset, java.lang.String seriesName)
           
protected abstract  void writeCounterToDataSet(org.jfree.data.time.TimeTableXYDataset dataset, TimePeriodCollater counter)
           
 
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
 
Methods inherited from interface com.atlassian.bamboo.charts.ChartBuilder
generateChartParams
 

Field Detail

MONTH

public static final java.lang.String MONTH
See Also:
Constant Field Values

YEAR

public static final java.lang.String YEAR
See Also:
Constant Field Values

WEEK

public static final java.lang.String WEEK
See Also:
Constant Field Values

DAY

public static final java.lang.String DAY
See Also:
Constant Field Values
Constructor Detail

AbstractTimePeriodGroupedChart

public AbstractTimePeriodGroupedChart(int height,
                                      int width,
                                      java.lang.String chartTitle,
                                      java.lang.String xAxisLabel,
                                      java.lang.String yAxisLabel,
                                      java.lang.String periodRange)
Method Detail

populateDataSet

protected org.jfree.data.time.TimeTableXYDataset populateDataSet(java.util.Collection<ResultStatisticsProvider> results,
                                                                 org.jfree.data.time.TimeTableXYDataset dataset,
                                                                 java.lang.String seriesName)

getAllPeriodsBetweenDates

protected java.util.List getAllPeriodsBetweenDates(java.util.Date earliest,
                                                   java.util.Date latest)

createNewPeriod

protected abstract TimePeriodCollater createNewPeriod(java.util.Date buildDate,
                                                      ResultStatisticsProvider result,
                                                      java.lang.String seriesName)

writeCounterToDataSet

protected abstract void writeCounterToDataSet(org.jfree.data.time.TimeTableXYDataset dataset,
                                              TimePeriodCollater counter)

getPeriod

protected org.jfree.data.time.RegularTimePeriod getPeriod(java.util.Date date,
                                                          java.lang.String periodRange)

isInPeriod

protected boolean isInPeriod(org.jfree.data.time.RegularTimePeriod time,
                             java.util.Date date)

getPeriodRange

public java.lang.String getPeriodRange()


Copyright © 2012 Atlassian. All Rights Reserved.