01: /*
02: * NbChart.java
03: *
04: * Created on October 16, 2002, 10:32 PM
05: */
06:
07: package org.netbeans.performance.impl.chart;
08:
09: import java.util.*;
10: import com.jrefinery.chart.*;
11: import com.jrefinery.data.*;
12: import java.awt.Font;
13:
14: /** A convenience extension of JFreeChart that hides some of the
15: * complexity of creating charts where we do things in a
16: * fairly standard way.
17: *
18: * @author Tim Boudreau
19: */
20: public class NbChart extends JFreeChart {
21:
22: /** Creates a new instance of NbChart */
23: public NbChart(String title, String xAxisTitle, String yAxisTitle,
24: NbStatisticalDataset data) {
25: super (title, new Font("Helvetica", Font.BOLD, 14),
26: new VerticalCategoryPlot(data,
27: new HorizontalCategoryAxis(xAxisTitle),
28: new VerticalNumberAxis(yAxisTitle),
29: new VerticalStatisticalBarRenderer()), true);
30: }
31:
32: }
|