hudson.plugins.testabilityexplorer.report.charts
Class RangedClassesTrend

java.lang.Object
  extended by hudson.plugins.testabilityexplorer.report.charts.RangedTrend
      extended by hudson.plugins.testabilityexplorer.report.charts.RangedClassesTrend

public class RangedClassesTrend
extends RangedTrend

Helper class that is able to construct a JFree CategoryDataset which may be used to draw a line chart showing class testability distribution. The testability distribution is classes that need work, are good or even excellent. A RangedClassesTrend can also calculate the corrent upper bound Integer value which may be used to limit the range axis in size.

Author:
reik.schatz

Field Summary
static CostTemplate EXCELLENT_COST_TEMPLATE
           
static CostTemplate GOOD_COST_TEMPLATE
           
static CostTemplate POOR_COST_TEMPLATE
           
 
Fields inherited from class hudson.plugins.testabilityexplorer.report.charts.RangedTrend
DEFAULT_RANGE_AXIS
 
Constructor Summary
RangedClassesTrend(java.util.List<BuildAndResults> items)
           
 
Method Summary
 org.jfree.data.category.CategoryDataset getCategoryDataset()
          Builds and returns a CategoryDataset represents the classes testability distribution trend.
 int getUpperBoundRangeAxis()
          Returns an Integer which may be used in a JFree line chart to call ValueAxis.setUpperBound(double) with a correct value.
 
Methods inherited from class hudson.plugins.testabilityexplorer.report.charts.RangedTrend
summarizeCost
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXCELLENT_COST_TEMPLATE

public static final CostTemplate EXCELLENT_COST_TEMPLATE

GOOD_COST_TEMPLATE

public static final CostTemplate GOOD_COST_TEMPLATE

POOR_COST_TEMPLATE

public static final CostTemplate POOR_COST_TEMPLATE
Constructor Detail

RangedClassesTrend

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

getUpperBoundRangeAxis

public int getUpperBoundRangeAxis()
Returns an Integer which may be used in a JFree line chart to call ValueAxis.setUpperBound(double) with a correct value.

Specified by:
getUpperBoundRangeAxis in class RangedTrend
Returns:
int

getCategoryDataset

public org.jfree.data.category.CategoryDataset getCategoryDataset()
Builds and returns a CategoryDataset represents the classes testability distribution trend. This CategoryDataset can be used to draw a JFree line chart.

Specified by:
getCategoryDataset in class RangedTrend
Returns:
CategoryDataset


Copyright © 2008. All Rights Reserved.