com.pyxis.greenhopper.charts
Class CurveChart
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
workingDaysPerWeek
protected final int workingDaysPerWeek
chartContext
protected final ChartContext chartContext
CurveChart
public CurveChart(ChartContext chartContext)
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.