com.atlassian.bamboo.reports.collector
Class AbstractTimePeriodCollector

java.lang.Object
  extended by com.atlassian.bamboo.reports.collector.AbstractTimePeriodCollector
All Implemented Interfaces:
ReportCollector, BambooPluginModule
Direct Known Subclasses:
AverageDurationCollector, AverageQueuedDurationCollector, CloverCoverageCollector, CloverLinesOfCodeCollector, NumberOfBuildFailureCollector, NumberOfBuildsCollector, NumberOfTestsCollector, RatioOfSuccessCollector, TimeToFixCollector

public abstract class AbstractTimePeriodCollector
extends java.lang.Object
implements ReportCollector


Constructor Summary
protected AbstractTimePeriodCollector()
           
 
Method Summary
protected  TimePeriodCollater createCollater(org.jfree.data.time.RegularTimePeriod nextPeriod, java.lang.String key)
           
protected  java.lang.String getAutoDate(java.util.Date startDate, java.util.Date lastDate)
           
protected abstract  TimePeriodCollater getCollater()
           
 org.jfree.data.general.Dataset getDataset()
           
 java.util.Map getParams()
           
protected  org.jfree.data.time.RegularTimePeriod getPeriod(java.util.Date date, java.lang.String periodRange)
           
 java.lang.String getPeriodRange()
          One of AbstractTimePeriodGroupedChart.DAY, AbstractTimePeriodGroupedChart.WEEK and AbstractTimePeriodGroupedChart.MONTH.
 java.util.List getResultsList()
           
protected  boolean isInPeriod(org.jfree.data.time.RegularTimePeriod time, java.util.Date date)
           
 void setParams(java.util.Map params)
           
 void setResultsList(java.util.List resultsList)
           
protected  void writeCollaterToDataSet(org.jfree.data.time.TimeTableXYDataset dataset, TimePeriodCollater collater)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTimePeriodCollector

protected AbstractTimePeriodCollector()
Method Detail

getDataset

@NotNull
public org.jfree.data.general.Dataset getDataset()
Specified by:
getDataset in interface ReportCollector

getPeriodRange

public java.lang.String getPeriodRange()
Description copied from interface: ReportCollector
One of AbstractTimePeriodGroupedChart.DAY, AbstractTimePeriodGroupedChart.WEEK and AbstractTimePeriodGroupedChart.MONTH.

Specified by:
getPeriodRange in interface ReportCollector
Returns:

getAutoDate

protected java.lang.String getAutoDate(java.util.Date startDate,
                                       java.util.Date lastDate)

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)

writeCollaterToDataSet

protected void writeCollaterToDataSet(org.jfree.data.time.TimeTableXYDataset dataset,
                                      TimePeriodCollater collater)

createCollater

protected TimePeriodCollater createCollater(org.jfree.data.time.RegularTimePeriod nextPeriod,
                                            java.lang.String key)

getCollater

protected abstract TimePeriodCollater getCollater()

getResultsList

public java.util.List getResultsList()

setResultsList

public void setResultsList(java.util.List resultsList)
Specified by:
setResultsList in interface ReportCollector

getParams

public java.util.Map getParams()

setParams

public void setParams(java.util.Map params)
Specified by:
setParams in interface ReportCollector


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.