hudson.plugins.testabilityexplorer.report.charts
Class RangedTrend
java.lang.Object
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
|
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 |
DEFAULT_RANGE_AXIS
public static final int DEFAULT_RANGE_AXIS
- See Also:
- Constant Field Values
RangedTrend
public RangedTrend(java.util.List<BuildAndResults> items)
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 Statistictemplate - a CostTemplate
- Returns:
- int
Copyright © 2008. All Rights Reserved.