hudson.plugins.serenitec.util
Class ChartBuilder

java.lang.Object
  extended by hudson.plugins.serenitec.util.ChartBuilder

public final class ChartBuilder
extends java.lang.Object

Creates various charts.

Author:
Ulli Hafner

Method Summary
static org.jfree.chart.JFreeChart createChart(org.jfree.data.category.CategoryDataset dataset)
          Creates a standard graph from the specified data set.
static org.jfree.chart.JFreeChart createChart(org.jfree.data.category.CategoryDataset dataset, org.jfree.chart.renderer.category.StackedAreaRenderer renderer, int threshold, boolean isThreeColor)
          Creates a colored graph displaying the specified data set.
static org.jfree.chart.JFreeChart createHighNormalLowChart(int format, int performance, int design, int max)
          Creates a standard bar graph from the specified priority values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createChart

public static org.jfree.chart.JFreeChart createChart(org.jfree.data.category.CategoryDataset dataset,
                                                     org.jfree.chart.renderer.category.StackedAreaRenderer renderer,
                                                     int threshold,
                                                     boolean isThreeColor)
Creates a colored graph displaying the specified data set.

Parameters:
dataset - the values to display
renderer - the renderer to use
threshold - the failure threshold, or 0 if there is no such threshold
isThreeColor - determines whether to use three colors.
Returns:
colored graph displaying the specified data set.

createChart

public static org.jfree.chart.JFreeChart createChart(org.jfree.data.category.CategoryDataset dataset)
Creates a standard graph from the specified data set.

Parameters:
dataset - the values to display
Returns:
a standard graph from the specified data set.

createHighNormalLowChart

public static org.jfree.chart.JFreeChart createHighNormalLowChart(int format,
                                                                  int performance,
                                                                  int design,
                                                                  int max)
Creates a standard bar graph from the specified priority values.

Parameters:
high - number of high priority items
normal - number of normal priority items
low - number of low priority items
max - upper bound of the graph
Returns:
a standard graph from the specified data set.


Copyright © 2008. All Rights Reserved.