hudson.plugins.checkstyle.util
Class ChartBuilder

java.lang.Object
  extended by hudson.plugins.checkstyle.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.
 
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.


Copyright © 2008. All Rights Reserved.