com.atlassian.greenhopper.web.chart
Class TimelineAnalysisRenderer
java.lang.Object
com.atlassian.greenhopper.web.chart.TimelineAnalysisRenderer
public class TimelineAnalysisRenderer
- extends java.lang.Object
The Renderer contains the timeline analysis data and provides utility methods to query and format the data for easy view evaluation.
- Author:
- ahennecke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimelineAnalysisRenderer
public TimelineAnalysisRenderer(com.atlassian.jira.util.JiraDurationUtils durationUtils,
TimelineAnalysis analysis,
java.util.Locale locale)
getFormattedDates
public java.util.List<java.lang.String> getFormattedDates()
- Returns:
- The list of days between start and end
getFormattedTimeSpent
public java.util.List<TimelineAnalysisRenderer.TimeEntry> getFormattedTimeSpent(com.atlassian.jira.issue.Issue issue)
- Returns:
- A list of time spent values, formatted into JIRA style values, for each day that we have data for the given issue
getFormattedRemainingEstimate
public java.util.List<TimelineAnalysisRenderer.TimeEntry> getFormattedRemainingEstimate(com.atlassian.jira.issue.Issue issue)
- Returns:
- A list of remaining estimate values, formatted into JIRA style values, for each day that we have data for the given issue
getFormattedInitialRemainingEstimate
public java.lang.String getFormattedInitialRemainingEstimate(com.atlassian.jira.issue.Issue issue)
getValueSources
public java.util.List<java.util.List<TimelineAnalysis.ValueSource>> getValueSources(com.atlassian.jira.issue.Issue issue)
- Returns:
- A list of "calculation reasons" for each day, for the given issue. If there's none for a particular day, there'll be an empty list.
getInitialValueSources
public java.util.List<TimelineAnalysis.ValueSource> getInitialValueSources(com.atlassian.jira.issue.Issue issue)
getFormattedWorklogTimeSpent
public java.lang.String getFormattedWorklogTimeSpent(TimelineAnalysis.ValueSource valueSource)
getFormattedRemainingEstimate
public java.lang.String getFormattedRemainingEstimate(TimelineAnalysis.ValueSource valueSource)
getFormattedChangeTime
public java.lang.String getFormattedChangeTime(TimelineAnalysis.ValueSource valueSource)
getFormattedEffectiveTime
public java.lang.String getFormattedEffectiveTime(TimelineAnalysis.ValueSource valueSource)
getData
public java.util.Map<com.atlassian.jira.issue.Issue,java.util.SortedMap<org.joda.time.DateMidnight,TimelineAnalysis.DayAnalysis>> getData()
getInitialValueData
public java.util.Map<com.atlassian.jira.issue.Issue,TimelineAnalysis.DayAnalysis> getInitialValueData()
Copyright © 2007-2011 Atlassian. All Rights Reserved.