com.atlassian.jira.issue.statistics
Class TwoDimensionalStatsMap

java.lang.Object
  extended bycom.atlassian.jira.issue.statistics.TwoDimensionalStatsMap

public class TwoDimensionalStatsMap
extends Object


Constructor Summary
TwoDimensionalStatsMap(StatisticsMapper xAxisMapper, StatisticsMapper yAxisMapper)
           
 
Method Summary
 void addToEntireTotal(int i)
          Increments the total count of unique issues added to this StatsMap.
 void addToXTotal(String xKey, int i)
          This method will increment the unique totals count for the provided xKey.
 void addToYTotal(String yKey, int i)
          This method will increment the unique totals count for the y row identified by yKey.
 void addValue(String xKey, String yKey, int i)
           
 int getCoordinate(Object xAxis, Object yAxis)
           
 long getTotal()
          Returns the additive total of all issue totals in each cell in this StatsMap.
 long getUniqueTotal()
          Returns the value of all unique issues identified within this StatsMap.
 Collection getXAxis()
           
 StatisticsMapper getxAxisMapper()
           
 long getXAxisTotal(Object xAxis)
          Returns an additive total of the identified column.
 long getXAxisUniqueTotal(Object xAxis)
          Returns the value of unique issues contained in the column identified by xAxis.
 Collection getYAxis()
           
 StatisticsMapper getyAxisMapper()
           
 long getYAxisTotal(Object yAxis)
          Returns an additive total of the identified column.
 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
 

Constructor Detail

TwoDimensionalStatsMap

public TwoDimensionalStatsMap(StatisticsMapper xAxisMapper,
                              StatisticsMapper yAxisMapper)
Method Detail

addToXTotal

public void addToXTotal(String xKey,
                        int i)
This method will increment the unique totals count for the provided xKey.

Parameters:
xKey - identifies the xValue we are keying on, null is valid.
i - the amount to increment the total by, usually 1.

addToYTotal

public void addToYTotal(String yKey,
                        int i)
This method will increment the unique totals count for the y row identified by yKey.

Parameters:
yKey - identifies the yValue we are keying on, null is valid.
i - the amount to increment the total by, usually 1.

addToEntireTotal

public void addToEntireTotal(int i)
Increments the total count of unique issues added to this StatsMap.

Parameters:
i - the amount to increment the total by, usually 1.

addValue

public void addValue(String xKey,
                     String yKey,
                     int i)

getXAxis

public Collection getXAxis()

getYAxis

public Collection getYAxis()

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.

getXAxisTotal

public long getXAxisTotal(Object xAxis)
Returns an additive total of the identified column. This method is currently not used, think of using @see getXAxisUniqueTotal instead.

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

getYAxisTotal

public long getYAxisTotal(Object yAxis)
Returns an additive total of the identified column. This method is currently not used, think of using @see getYAxisUniqueTotal instead.

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

getTotal

public long getTotal()
Returns the additive total of all issue totals in each cell in this StatsMap. This method is currently not used, think of using @see getUniqueTotal instead.

Returns:
additive total of all issue totals in each cell in this StatsMap.


Copyright © 2002-2006 Atlassian. All Rights Reserved.