com.pyxis.greenhopper.charts
Class CurveChart

java.lang.Object
  extended by com.pyxis.greenhopper.charts.CurveChart
All Implemented Interfaces:
Chart
Direct Known Subclasses:
AbstractCumulativeFlow, FieldBurndown, FieldBurnup, FieldVelocity, HourBurndown, IssueBurndown

public abstract class CurveChart
extends java.lang.Object
implements Chart


Field Summary
protected  ChartContext chartContext
           
protected  int workingDaysPerWeek
           
 
Constructor Summary
CurveChart(ChartContext chartContext)
           
 
Method Summary
 org.jfree.chart.JFreeChart buildChart()
           
 java.lang.String buildCSVReport()
           
 boolean canForecast()
           
protected  Curve computeForecast(Curve curve, Point forecastEndPoint)
           
protected  Curve computeOnGoing(Curve curve)
           
protected  java.util.SortedMap<java.lang.Integer,java.lang.Integer> createTimeMap(int start)
           
protected  void flatten(Curve[] curves)
           
protected  Point forecastStartPoint(Curve curve, Point forecastEndPoint)
           
 int getCompletedDays()
          Create the guide line curve taking the time allocation information into account.
protected  int getDay(java.util.Date date)
           
protected  java.lang.String getDayAxisLabel()
           
 java.util.Map<java.lang.Integer,java.lang.Long> getDaysVsDatesMapping()
           
 java.util.Date getEndDate()
           
 java.util.Date getPreviousDate(java.util.Date date)
           
protected  Curve getRatioCurve(Curve curve, double originalY)
           
 java.util.Set<CurveSettings> getSettings(java.util.Set<CurveSettings> savedSettings)
           
 int getTotalNumberOfDays()
          Default implementation returns number of days in sprint.
 int getWorkedDays()
           
 boolean isClosed()
           
 boolean isDateAxisAvailable()
           
 boolean isForecastLegendShown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.pyxis.greenhopper.charts.Chart
computeCurves, getDefaultSettings, getTitle, getXTitle, getYTitle, isJFreeChartSupported, isReportSupported
 

Field Detail

workingDaysPerWeek

protected final int workingDaysPerWeek

chartContext

protected final ChartContext chartContext
Constructor Detail

CurveChart

public CurveChart(ChartContext chartContext)
Method Detail

buildChart

public org.jfree.chart.JFreeChart buildChart()
Specified by:
buildChart in interface Chart

getSettings

public java.util.Set<CurveSettings> getSettings(java.util.Set<CurveSettings> savedSettings)
Specified by:
getSettings in interface Chart

isClosed

public boolean isClosed()

canForecast

public boolean canForecast()

isForecastLegendShown

public boolean isForecastLegendShown()
Specified by:
isForecastLegendShown in interface Chart

getEndDate

public java.util.Date getEndDate()

getPreviousDate

public java.util.Date getPreviousDate(java.util.Date date)

getTotalNumberOfDays

public int getTotalNumberOfDays()
Default implementation returns number of days in sprint. Overridden by cumulative flow chart to only return days until today (so that the chart always fills up the full width)


getWorkedDays

public int getWorkedDays()

getCompletedDays

public int getCompletedDays()
Create the guide line curve taking the time allocation information into account. Basically each days reduction is proportional to the amount of hours / the total amount of hours


isDateAxisAvailable

public boolean isDateAxisAvailable()
Specified by:
isDateAxisAvailable in interface Chart

getDaysVsDatesMapping

public java.util.Map<java.lang.Integer,java.lang.Long> getDaysVsDatesMapping()

buildCSVReport

public java.lang.String buildCSVReport()
Specified by:
buildCSVReport in interface Chart

getRatioCurve

protected Curve getRatioCurve(Curve curve,
                              double originalY)

flatten

protected void flatten(Curve[] curves)

computeOnGoing

protected Curve computeOnGoing(Curve curve)

computeForecast

protected Curve computeForecast(Curve curve,
                                Point forecastEndPoint)

forecastStartPoint

protected Point forecastStartPoint(Curve curve,
                                   Point forecastEndPoint)

createTimeMap

protected java.util.SortedMap<java.lang.Integer,java.lang.Integer> createTimeMap(int start)

getDay

protected int getDay(java.util.Date date)

getDayAxisLabel

protected java.lang.String getDayAxisLabel()


Copyright © 2007-2014 Atlassian. All Rights Reserved.