com.atlassian.jira.issue.statistics
Class TwoDimensionalStatsMap

java.lang.Object
  extended by com.atlassian.jira.issue.statistics.TwoDimensionalStatsMap

public class TwoDimensionalStatsMap
extends Object


Field Summary
static String ASC
           
static String DESC
           
static String NATURAL_ORDER
           
static String TOTAL_ORDER
           
 
Constructor Summary
TwoDimensionalStatsMap(StatisticsMapper xAxisMapper, StatisticsMapper yAxisMapper)
           
TwoDimensionalStatsMap(StatisticsMapper xAxisMapper, StatisticsMapper yAxisMapper, StatisticGatherer statisticGatherer)
           
 
Method Summary
 void adjustMapForValues(Collection xAxisValues, Collection yAxisValues, int value)
           
 int getCoordinate(Object xAxis, Object yAxis)
           
 long getUniqueTotal()
          Returns the value of all unique issues identified within this StatsMap.
 Collection getXAxis()
           
 StatisticsMapper getxAxisMapper()
           
 long getXAxisUniqueTotal(Object xAxis)
          Returns the value of unique issues contained in the column identified by xAxis.
 Collection getYAxis()
           
 Collection getYAxis(Comparator comp)
           
 Collection getYAxis(String orderBy, String direction)
           
 StatisticsMapper getyAxisMapper()
           
 long getYAxisUniqueTotal(Object yAxis)
          Returns the value of unique issues contained in the column identified by xAxis.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOTAL_ORDER

public static final String TOTAL_ORDER
See Also:
Constant Field Values

NATURAL_ORDER

public static final String NATURAL_ORDER
See Also:
Constant Field Values

DESC

public static final String DESC
See Also:
Constant Field Values

ASC

public static final String ASC
See Also:
Constant Field Values
Constructor Detail

TwoDimensionalStatsMap

public TwoDimensionalStatsMap(StatisticsMapper xAxisMapper,
                              StatisticsMapper yAxisMapper,
                              StatisticGatherer statisticGatherer)

TwoDimensionalStatsMap

public TwoDimensionalStatsMap(StatisticsMapper xAxisMapper,
                              StatisticsMapper yAxisMapper)
Method Detail

getXAxis

public Collection getXAxis()

getYAxis

public Collection getYAxis()

getYAxis

public Collection getYAxis(String orderBy,
                           String direction)

getYAxis

public Collection getYAxis(Comparator comp)

getCoordinate

public int getCoordinate(Object xAxis,
                         Object yAxis)

getyAxisMapper

public StatisticsMapper getyAxisMapper()

getxAxisMapper

public StatisticsMapper getxAxisMapper()

getXAxisUniqueTotal

public long getXAxisUniqueTotal(Object xAxis)
Returns the value of unique issues contained in the column identified by xAxis.

Parameters:
xAxis - identifies the column who's total is requested, null is valid.
Returns:
number of unique issues for the identified column.

getYAxisUniqueTotal

public long getYAxisUniqueTotal(Object yAxis)
Returns the value of unique issues contained in the column identified by xAxis.

Parameters:
yAxis - identifies the row who's total is requested, null is valid.
Returns:
number of unique issues for the identified row.

getUniqueTotal

public long getUniqueTotal()
Returns the value of all unique issues identified within this StatsMap.

Returns:
number of unique issues identified within this StatsMap.

adjustMapForValues

public void adjustMapForValues(Collection xAxisValues,
                               Collection yAxisValues,
                               int value)


Copyright © 2002-2008 Atlassian. All Rights Reserved.