hudson.plugins.testabilityexplorer.report.charts
Class RangedTrend

java.lang.Object
  extended by hudson.plugins.testabilityexplorer.report.charts.RangedTrend
Direct Known Subclasses:
RangedClassesTrend, RangedOverallTrend

public abstract class RangedTrend
extends java.lang.Object

Helper class that will ease the creation of JFree line charts for testability trends.

Author:
reik.schatz

Field Summary
static int DEFAULT_RANGE_AXIS
           
static int RANGE_AXIS_SPACE
           
 
Constructor Summary
RangedTrend(java.util.List<BuildAndResults> items)
           
 
Method Summary
abstract  org.jfree.data.category.CategoryDataset getCategoryDataset()
          Builds and returns a CategoryDataset representing a testability trend.
abstract  int getUpperBoundRangeAxis()
          Returns an int which may be used in a JFree line chart to call ValueAxis.setUpperBound(double) therefore setting the range of the y-axis to the right value.
protected  int summarizeCost(java.util.Collection<Statistic> statistics, CostTemplate template)
          Returns an int value representing a cost of the specified Statistic collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_RANGE_AXIS

public static final int DEFAULT_RANGE_AXIS
See Also:
Constant Field Values

RANGE_AXIS_SPACE

public static final int RANGE_AXIS_SPACE
See Also:
Constant Field Values
Constructor Detail

RangedTrend

public RangedTrend(java.util.List<BuildAndResults> items)
Method Detail

getUpperBoundRangeAxis

public abstract int getUpperBoundRangeAxis()
Returns an int which may be used in a JFree line chart to call ValueAxis.setUpperBound(double) therefore setting the range of the y-axis to the right value.

Returns:
int

getCategoryDataset

public abstract org.jfree.data.category.CategoryDataset getCategoryDataset()
Builds and returns a CategoryDataset representing a testability trend. This CategoryDataset may be used to create a JFree line chart.

Returns:
CategoryDataset

summarizeCost

protected int summarizeCost(java.util.Collection<Statistic> statistics,
                            CostTemplate template)
Returns an int value representing a cost of the specified Statistic collection. The cost of each Statistic element will be determined using the given CostTemplate.

Parameters:
statistics - a Collection of Statistic
template - a CostTemplate
Returns:
int


Copyright © 2009. All Rights Reserved.