com.pyxis.greenhopper.charts.context
Class AbstractChartContext

java.lang.Object
  extended by com.pyxis.greenhopper.charts.context.AbstractChartContext
All Implemented Interfaces:
ChartContext
Direct Known Subclasses:
ChartBoardContext, CrossAgileGadgetContext

public abstract class AbstractChartContext
extends java.lang.Object
implements ChartContext


Field Summary
protected  Chart chart
           
protected  java.util.Date endDate
           
protected  java.lang.String location
           
static org.apache.log4j.Logger log
           
protected  java.util.Set<java.lang.String> selectableCharts
           
protected  java.util.Date startDate
           
 
Constructor Summary
AbstractChartContext()
           
 
Method Summary
 CurveSettings curveSetting(java.lang.String curveId)
           
 double getAverageValue(java.lang.Double sumValue)
           
abstract  ChartBoard getBoard()
           
 Chart getChart()
           
 java.lang.String getChartLocation()
           
 java.lang.String getCSVReport()
           
 GreenHopper getGreenHopperService()
           
 int getHeight()
           
protected  com.atlassian.jira.issue.link.IssueLinkManager getIssueLinkManager()
           
 org.jfree.chart.JFreeChart getJFreeChart()
           
 double getOriginalValue()
           
 java.util.Set<java.lang.String> getSelectableChartTypes()
           
 java.lang.String getSettingsId()
           
 java.util.Date getStartDateEndOfDay()
           
 double getTotalValue()
           
 int getWidth()
           
 double roundUp(double value)
           
 boolean saveChartAndReport()
           
 boolean showAverage()
           
 double toHours(long value)
           
 
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.context.ChartContext
axisAsDates, endDate, filter, getAllIssues, getAllReportableFields, getAllStatuses, getChartType, getDataDirectory, getField, getIssuesGroupedByChildren, getRankingFields, getSettings, getSummary, getText, isDone, isDone, isForMaster, isWithForecast, nonWorkingDates, precision, startDate, stripped, withLabels, withLegend, withTitle
 

Field Detail

log

public static final org.apache.log4j.Logger log

chart

protected Chart chart

startDate

protected java.util.Date startDate

endDate

protected java.util.Date endDate

selectableCharts

protected java.util.Set<java.lang.String> selectableCharts

location

protected java.lang.String location
Constructor Detail

AbstractChartContext

public AbstractChartContext()
Method Detail

getGreenHopperService

public GreenHopper getGreenHopperService()
Specified by:
getGreenHopperService in interface ChartContext

getChart

public Chart getChart()
Specified by:
getChart in interface ChartContext

getSelectableChartTypes

public java.util.Set<java.lang.String> getSelectableChartTypes()
Specified by:
getSelectableChartTypes in interface ChartContext

getJFreeChart

public org.jfree.chart.JFreeChart getJFreeChart()
Specified by:
getJFreeChart in interface ChartContext

getCSVReport

public java.lang.String getCSVReport()
Specified by:
getCSVReport in interface ChartContext

getOriginalValue

public double getOriginalValue()
Specified by:
getOriginalValue in interface ChartContext

getTotalValue

public double getTotalValue()
Specified by:
getTotalValue in interface ChartContext

curveSetting

public CurveSettings curveSetting(java.lang.String curveId)
Specified by:
curveSetting in interface ChartContext

getSettingsId

public java.lang.String getSettingsId()
Specified by:
getSettingsId in interface ChartContext

saveChartAndReport

public boolean saveChartAndReport()
                           throws java.io.IOException
Specified by:
saveChartAndReport in interface ChartContext
Throws:
java.io.IOException

getAverageValue

public double getAverageValue(java.lang.Double sumValue)
Specified by:
getAverageValue in interface ChartContext

toHours

public double toHours(long value)
Specified by:
toHours in interface ChartContext

roundUp

public double roundUp(double value)
Specified by:
roundUp in interface ChartContext

showAverage

public boolean showAverage()
Specified by:
showAverage in interface ChartContext

getStartDateEndOfDay

public java.util.Date getStartDateEndOfDay()
Specified by:
getStartDateEndOfDay in interface ChartContext

getChartLocation

public java.lang.String getChartLocation()
Specified by:
getChartLocation in interface ChartContext

getWidth

public int getWidth()
Specified by:
getWidth in interface ChartContext

getHeight

public int getHeight()
Specified by:
getHeight in interface ChartContext

getBoard

public abstract ChartBoard getBoard()

getIssueLinkManager

protected com.atlassian.jira.issue.link.IssueLinkManager getIssueLinkManager()


Copyright © 2007-2011 Atlassian. All Rights Reserved.