org.codehaus.mojo.dashboard.report.plugin.chart.time
Class AbstractTimeChartStrategy

java.lang.Object
  extended by org.codehaus.mojo.dashboard.report.plugin.chart.AbstractChartStrategy
      extended by org.codehaus.mojo.dashboard.report.plugin.chart.time.AbstractTimeChartStrategy
All Implemented Interfaces:
IChartStrategy
Direct Known Subclasses:
CheckstyleTimeChartStrategy, CloverTimeChartStrategy, CoberturaTimeChartStrategy, CpdTimeChartStrategy, FindBugsTimeChartStrategy, PmdTimeChartStrategy, SurefireTimeChartStrategy

public abstract class AbstractTimeChartStrategy
extends AbstractChartStrategy


Field Summary
protected  java.util.ResourceBundle bundle
           
protected  org.jfree.data.time.TimeSeriesCollection defaultdataset
           
protected  java.util.List mResults
           
protected  java.lang.Class periodClass
           
protected  TimePeriod timePeriod
           
static java.lang.String xAxisLabel
           
static java.lang.String yAxisLabel
           
 
Constructor Summary
AbstractTimeChartStrategy(java.util.ResourceBundle bundle, java.lang.String title, java.util.List results, java.lang.String timeUnit, java.util.Date startDate, java.util.Date endDate)
           
 
Method Summary
protected  org.jfree.data.time.RegularTimePeriod getChartDate(java.util.Date keyDate)
           
 org.jfree.data.general.Dataset getDataset()
           
 java.util.Date getEndDate()
           
 org.jfree.chart.labels.XYItemLabelGenerator getLabelGenerator()
           
 org.jfree.chart.axis.NumberAxis getRangeAxis()
           
 java.util.Date getStartDate()
           
 TimePeriod getTimePeriod()
           
 java.lang.String getXAxisLabel()
           
 java.lang.String getYAxisLabel()
           
 
Methods inherited from class org.codehaus.mojo.dashboard.report.plugin.chart.AbstractChartStrategy
getPaintColor, getTitle, isDatasetEmpty, setDatasetEmpty, setTitle, setXAxisLabel, setYAxisLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.mojo.dashboard.report.plugin.chart.IChartStrategy
fillDataset
 

Field Detail

xAxisLabel

public static java.lang.String xAxisLabel

yAxisLabel

public static java.lang.String yAxisLabel

defaultdataset

protected org.jfree.data.time.TimeSeriesCollection defaultdataset

bundle

protected java.util.ResourceBundle bundle

mResults

protected java.util.List mResults

timePeriod

protected TimePeriod timePeriod

periodClass

protected java.lang.Class periodClass
Constructor Detail

AbstractTimeChartStrategy

public AbstractTimeChartStrategy(java.util.ResourceBundle bundle,
                                 java.lang.String title,
                                 java.util.List results,
                                 java.lang.String timeUnit,
                                 java.util.Date startDate,
                                 java.util.Date endDate)
Method Detail

getDataset

public org.jfree.data.general.Dataset getDataset()

getXAxisLabel

public java.lang.String getXAxisLabel()
Specified by:
getXAxisLabel in interface IChartStrategy
Overrides:
getXAxisLabel in class AbstractChartStrategy
Returns:

getYAxisLabel

public java.lang.String getYAxisLabel()
Specified by:
getYAxisLabel in interface IChartStrategy
Overrides:
getYAxisLabel in class AbstractChartStrategy
Returns:

getChartDate

protected org.jfree.data.time.RegularTimePeriod getChartDate(java.util.Date keyDate)

getTimePeriod

public TimePeriod getTimePeriod()

getRangeAxis

public org.jfree.chart.axis.NumberAxis getRangeAxis()

getEndDate

public java.util.Date getEndDate()

getStartDate

public java.util.Date getStartDate()

getLabelGenerator

public org.jfree.chart.labels.XYItemLabelGenerator getLabelGenerator()


Copyright © 2006-2010 CodeHaus. All Rights Reserved.