com.pmease.quickbuild.plugin.report.engine.renderer.chart.line
Class LineChartData

java.lang.Object
  extended by com.pmease.quickbuild.plugin.report.engine.renderer.chart.line.LineChartData
All Implemented Interfaces:
XMLSerializable, java.io.Serializable
Direct Known Subclasses:
AggregationLineChartData

public class LineChartData
extends java.lang.Object
implements XMLSerializable

See Also:
Serialized Form

Nested Class Summary
static class LineChartData.IndexTracker
           
protected  class LineChartData.PeriodData
           
 
Field Summary
protected  LineChartOption chartOption
           
protected  int failed
           
protected  java.util.List<LineChartItem> items
           
protected  double max
           
protected  double min
           
protected  double periodMax
           
protected  double periodMin
           
protected  LineChartSetting setting
           
protected  int succeeded
           
protected  int totalBuilds
           
protected  double totals
           
protected  int validBuilds
           
 
Constructor Summary
LineChartData(LineChartSetting setting, LineChartOption chartOption)
           
 
Method Summary
 void addItem(LineChartItem item)
           
 void build(DataReport report, Builds builds)
           
protected  Builds findPeriodBuilds(Builds builds, DateRange dateRange, LineChartData.IndexTracker tracker)
           
protected  LineChartData.PeriodData findPeriodData(Builds builds, DataReport report, DateRange dateRange, LineChartData.IndexTracker tracker)
           
 void fromXML(org.dom4j.Element node)
           
 double getAverage()
           
 LineChartOption getChartOption()
           
protected  DateRange getCurrentRange(java.util.Date beginDate, int i, int count)
           
 DataType getDataType()
           
 int getFailed()
           
protected  int getIntervalCount(DateRange dateRange)
           
 LineChartItem getItem(int index)
           
 java.util.List<LineChartItem> getItems()
           
 java.lang.String getLabel(int index)
           
 double getMax()
           
 double getMin()
           
 double getPeriodMax()
           
 double getPeriodMin()
           
 LineChartSetting getSetting()
           
 int getSucceeded()
           
 java.lang.String getSummaryInfo()
           
 int getTotalBuilds()
           
 double getTotals()
           
 int getValidBuilds()
           
protected  void groupByDate(DataReport report, Builds builds)
           
protected  void groupByVersion(DataReport report, Builds builds)
           
 void setFailed(int failed)
           
 void setItems(java.util.List<LineChartItem> items)
           
 void setMax(double max)
           
 void setMin(double min)
           
 void setPeriodMax(double periodMax)
           
 void setPeriodMin(double periodMin)
           
 void setSucceeded(int succeeded)
           
 void setTotalBuilds(int totalBuilds)
           
 void setTotals(double totals)
           
 void setValidBuilds(int validBuilds)
           
 int size()
           
 org.dom4j.Element toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

setting

protected final LineChartSetting setting

chartOption

protected final LineChartOption chartOption

items

protected java.util.List<LineChartItem> items

max

protected double max

min

protected double min

periodMax

protected double periodMax

periodMin

protected double periodMin

totals

protected double totals

succeeded

protected int succeeded

failed

protected int failed

totalBuilds

protected int totalBuilds

validBuilds

protected int validBuilds
Constructor Detail

LineChartData

public LineChartData(LineChartSetting setting,
                     LineChartOption chartOption)
Method Detail

getItems

public java.util.List<LineChartItem> getItems()

getItem

public LineChartItem getItem(int index)

size

public int size()

getAverage

public double getAverage()

getSummaryInfo

public java.lang.String getSummaryInfo()

addItem

public void addItem(LineChartItem item)

build

public void build(DataReport report,
                  Builds builds)

groupByVersion

protected void groupByVersion(DataReport report,
                              Builds builds)

getIntervalCount

protected int getIntervalCount(DateRange dateRange)

findPeriodBuilds

protected Builds findPeriodBuilds(Builds builds,
                                  DateRange dateRange,
                                  LineChartData.IndexTracker tracker)

findPeriodData

protected LineChartData.PeriodData findPeriodData(Builds builds,
                                                  DataReport report,
                                                  DateRange dateRange,
                                                  LineChartData.IndexTracker tracker)

groupByDate

protected void groupByDate(DataReport report,
                           Builds builds)

getCurrentRange

protected DateRange getCurrentRange(java.util.Date beginDate,
                                    int i,
                                    int count)

getLabel

public java.lang.String getLabel(int index)

getMax

public double getMax()

setMax

public void setMax(double max)

getMin

public double getMin()

setMin

public void setMin(double min)

getPeriodMax

public double getPeriodMax()

setPeriodMax

public void setPeriodMax(double periodMax)

getPeriodMin

public double getPeriodMin()

setPeriodMin

public void setPeriodMin(double periodMin)

getTotals

public double getTotals()

setTotals

public void setTotals(double totals)

getSucceeded

public int getSucceeded()

setSucceeded

public void setSucceeded(int succeeded)

getFailed

public int getFailed()

setFailed

public void setFailed(int failed)

getTotalBuilds

public int getTotalBuilds()

setTotalBuilds

public void setTotalBuilds(int totalBuilds)

getValidBuilds

public int getValidBuilds()

setValidBuilds

public void setValidBuilds(int validBuilds)

getDataType

public DataType getDataType()

getSetting

public LineChartSetting getSetting()

getChartOption

public LineChartOption getChartOption()

setItems

public void setItems(java.util.List<LineChartItem> items)

fromXML

public void fromXML(org.dom4j.Element node)
Specified by:
fromXML in interface XMLSerializable

toXML

public org.dom4j.Element toXML()
Specified by:
toXML in interface XMLSerializable


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.