NbChart.java :  » IDE-Netbeans » performance » org » netbeans » performance » impl » chart » Java Open Source

Java Open Source » IDE Netbeans » performance 
performance » org » netbeans » performance » impl » chart » NbChart.java
/*
 * NbChart.java
 *
 * Created on October 16, 2002, 10:32 PM
 */

package org.netbeans.performance.impl.chart;
import java.util.*;
import com.jrefinery.chart.*;
import com.jrefinery.data.*;
import java.awt.Font;
/** A convenience extension of JFreeChart that hides some of the
 *  complexity of creating charts where we do things in a
 *  fairly standard way.
 *
 * @author  Tim Boudreau
 */
public class NbChart extends JFreeChart {
    
    /** Creates a new instance of NbChart */
    public NbChart(String title, String xAxisTitle, String yAxisTitle, NbStatisticalDataset data) {
        super (title,  new Font("Helvetica", Font.BOLD, 14), 
          new VerticalCategoryPlot (data, 
            new HorizontalCategoryAxis(xAxisTitle),
            new VerticalNumberAxis(yAxisTitle),
            new VerticalStatisticalBarRenderer()),
            true);
    }
    
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.