Save This Page
Home » jcommon-1.0.13 » org.jfree » chart » [javadoc | source]
org.jfree.chart
abstract public class: ChartFactory [javadoc | source]
java.lang.Object
   org.jfree.chart.ChartFactory
A collection of utility methods for creating some standard charts with JFreeChart.
Method from org.jfree.chart.ChartFactory Summary:
createAreaChart,   createBarChart,   createBarChart3D,   createBoxAndWhiskerChart,   createBoxAndWhiskerChart,   createBubbleChart,   createCandlestickChart,   createGanttChart,   createHighLowChart,   createHighLowChart,   createHistogram,   createLineChart,   createLineChart3D,   createMultiplePieChart,   createMultiplePieChart3D,   createPieChart,   createPieChart,   createPieChart,   createPieChart,   createPieChart3D,   createPieChart3D,   createPolarChart,   createRingChart,   createRingChart,   createScatterPlot,   createStackedAreaChart,   createStackedBarChart,   createStackedBarChart3D,   createStackedXYAreaChart,   createTimeSeriesChart,   createWaferMapChart,   createWaterfallChart,   createWindPlot,   createXYAreaChart,   createXYBarChart,   createXYLineChart,   createXYStepAreaChart,   createXYStepChart
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.chart.ChartFactory Detail:
 public static JFreeChart createAreaChart(String title,
    String categoryAxisLabel,
    String valueAxisLabel,
    CategoryDataset dataset,
    PlotOrientation orientation,
    boolean legend,
    boolean tooltips,
    boolean urls) 
    Creates an area chart with default settings. The chart object returned by this method uses a CategoryPlot instance as the plot, with a CategoryAxis for the domain axis, a NumberAxis as the range axis, and an AreaRenderer as the renderer.
 public static JFreeChart createBarChart(String title,
    String categoryAxisLabel,
    String valueAxisLabel,
    CategoryDataset dataset,
    PlotOrientation orientation,
    boolean legend,
    boolean tooltips,
    boolean urls) 
 public static JFreeChart createBarChart3D(String title,
    String categoryAxisLabel,
    String valueAxisLabel,
    CategoryDataset dataset,
    PlotOrientation orientation,
    boolean legend,
    boolean tooltips,
    boolean urls) 
 public static JFreeChart createBoxAndWhiskerChart(String title,
    String categoryAxisLabel,
    String valueAxisLabel,
    BoxAndWhiskerCategoryDataset dataset,
    boolean legend) 
 public static JFreeChart createBoxAndWhiskerChart(String title,
    String timeAxisLabel,
    String valueAxisLabel,
    BoxAndWhiskerXYDataset dataset,
    boolean legend) 
    Creates and returns a default instance of a box and whisker chart.
 public static JFreeChart createBubbleChart(String title,
    String xAxisLabel,
    String yAxisLabel,
    XYZDataset dataset,
    PlotOrientation orientation,
    boolean legend,
    boolean tooltips,
    boolean urls) 
 public static JFreeChart createCandlestickChart(String title,
    String timeAxisLabel,
    String valueAxisLabel,
    OHLCDataset dataset,
    boolean legend) 
    Creates and returns a default instance of a candlesticks chart.
 public static JFreeChart createGanttChart(String title,
    String categoryAxisLabel,
    String dateAxisLabel,
    IntervalCategoryDataset dataset,
    boolean legend,
    boolean tooltips,
    boolean urls) 
    Creates a Gantt chart using the supplied attributes plus default values where required. The chart object returned by this method uses a CategoryPlot instance as the plot, with a CategoryAxis for the domain axis, a DateAxis as the range axis, and a GanttRenderer as the renderer.
 public static JFreeChart createHighLowChart(String title,
    String timeAxisLabel,
    String valueAxisLabel,
    OHLCDataset dataset,
    boolean legend) 
    Creates and returns a default instance of a high-low-open-close chart.
 public static JFreeChart createHighLowChart(String title,
    String timeAxisLabel,
    String valueAxisLabel,
    OHLCDataset dataset,
    Timeline timeline,
    boolean legend) 
    Creates and returns a default instance of a high-low-open-close chart with a special timeline. This timeline can be a org.jfree.chart.axis.SegmentedTimeline such as the Monday through Friday timeline that will remove Saturdays and Sundays from the axis.
 public static JFreeChart createHistogram(String title,
    String xAxisLabel,
    String yAxisLabel,
    IntervalXYDataset dataset,
    PlotOrientation orientation,
    boolean legend,
    boolean tooltips,
    boolean urls) 
 public static JFreeChart createLineChart(String title,
    String categoryAxisLabel,
    String valueAxisLabel,
    CategoryDataset dataset,
    PlotOrientation orientation,
    boolean legend,
    boolean tooltips,
    boolean urls) 
 public static JFreeChart createLineChart3D(String title,
    String categoryAxisLabel,
    String valueAxisLabel,
    CategoryDataset dataset,
    PlotOrientation orientation,
    boolean legend,
    boolean tooltips,
    boolean urls) 
 public static JFreeChart createMultiplePieChart(String title,
    CategoryDataset dataset,
    TableOrder order,
    boolean legend,
    boolean tooltips,
    boolean urls) 
    Creates a chart that displays multiple pie plots. The chart object returned by this method uses a MultiplePiePlot instance as the plot.
 public static JFreeChart createMultiplePieChart3D(String title,
    CategoryDataset dataset,
    TableOrder order,
    boolean legend,
    boolean tooltips,
    boolean urls) 
    Creates a chart that displays multiple pie plots. The chart object returned by this method uses a MultiplePiePlot instance as the plot.
 public static JFreeChart createPieChart(String title,
    PieDataset dataset,
    boolean legend,
    boolean tooltips,
    Locale locale) 
    Creates a pie chart with default settings.

    The chart object returned by this method uses a PiePlot instance as the plot.

 public static JFreeChart createPieChart(String title,
    PieDataset dataset,
    boolean legend,
    boolean tooltips,
    boolean urls) 
    Creates a pie chart with default settings.

    The chart object returned by this method uses a PiePlot instance as the plot.

 public static JFreeChart createPieChart(String title,
    PieDataset dataset,
    PieDataset previousDataset,
    int percentDiffForMaxScale,
    boolean greenForIncrease,
    boolean legend,
    boolean tooltips,
    Locale locale,
    boolean subTitle,
    boolean showDifference) 
    Creates a pie chart with default settings that compares 2 datasets. The colour of each section will be determined by the move from the value for the same key in previousDataset. ie if value1 > value2 then the section will be in green (unless greenForIncrease is false, in which case it would be red). Each section can have a shade of red or green as the difference can be tailored between 0% (black) and percentDiffForMaxScale% (bright red/green).

    For instance if percentDiffForMaxScale is 10 (10%), a difference of 5% will have a half shade of red/green, a difference of 10% or more will have a maximum shade/brightness of red/green.

    The chart object returned by this method uses a PiePlot instance as the plot.

    Written by Benoit Xhenseval.

 public static JFreeChart createPieChart(String title,
    PieDataset dataset,
    PieDataset previousDataset,
    int percentDiffForMaxScale,
    boolean greenForIncrease,
    boolean legend,
    boolean tooltips,
    boolean urls,
    boolean subTitle,
    boolean showDifference) 
    Creates a pie chart with default settings that compares 2 datasets. The colour of each section will be determined by the move from the value for the same key in previousDataset. ie if value1 > value2 then the section will be in green (unless greenForIncrease is false, in which case it would be red). Each section can have a shade of red or green as the difference can be tailored between 0% (black) and percentDiffForMaxScale% (bright red/green).

    For instance if percentDiffForMaxScale is 10 (10%), a difference of 5% will have a half shade of red/green, a difference of 10% or more will have a maximum shade/brightness of red/green.

    The chart object returned by this method uses a PiePlot instance as the plot.

    Written by Benoit Xhenseval.

 public static JFreeChart createPieChart3D(String title,
    PieDataset dataset,
    boolean legend,
    boolean tooltips,
    Locale locale) 
    Creates a 3D pie chart using the specified dataset. The chart object returned by this method uses a PiePlot3D instance as the plot.
 public static JFreeChart createPieChart3D(String title,
    PieDataset dataset,
    boolean legend,
    boolean tooltips,
    boolean urls) 
    Creates a 3D pie chart using the specified dataset. The chart object returned by this method uses a PiePlot3D instance as the plot.
 public static JFreeChart createPolarChart(String title,
    XYDataset dataset,
    boolean legend,
    boolean tooltips,
    boolean urls) 
    Creates a polar plot for the specified dataset (x-values interpreted as angles in degrees). The chart object returned by this method uses a PolarPlot instance as the plot, with a NumberAxis for the radial axis.
 public static JFreeChart createRingChart(String title,
    PieDataset dataset,
    boolean legend,
    boolean tooltips,
    Locale locale) 
    Creates a ring chart with default settings.

    The chart object returned by this method uses a RingPlot instance as the plot.

 public static JFreeChart createRingChart(String title,
    PieDataset dataset,
    boolean legend,
    boolean tooltips,
    boolean urls) 
    Creates a ring chart with default settings.

    The chart object returned by this method uses a RingPlot instance as the plot.

 public static JFreeChart createScatterPlot(String title,
    String xAxisLabel,
    String yAxisLabel,
    XYDataset dataset,
    PlotOrientation orientation,
    boolean legend,
    boolean tooltips,
    boolean urls) 
    Creates a scatter plot with default settings. The chart object returned by this method uses an XYPlot instance as the plot, with a NumberAxis for the domain axis, a NumberAxis as the range axis, and an XYLineAndShapeRenderer as the renderer.
 public static JFreeChart createStackedAreaChart(String title,
    String categoryAxisLabel,
    String valueAxisLabel,
    CategoryDataset dataset,
    PlotOrientation orientation,
    boolean legend,
    boolean tooltips,
    boolean urls) 
 public static JFreeChart createStackedBarChart(String title,
    String domainAxisLabel,
    String rangeAxisLabel,
    CategoryDataset dataset,
    PlotOrientation orientation,
    boolean legend,
    boolean tooltips,
    boolean urls) 
 public static JFreeChart createStackedBarChart3D(String title,
    String categoryAxisLabel,
    String valueAxisLabel,
    CategoryDataset dataset,
    PlotOrientation orientation,
    boolean legend,
    boolean tooltips,
    boolean urls) 
 public static JFreeChart createStackedXYAreaChart(String title,
    String xAxisLabel,
    String yAxisLabel,
    TableXYDataset dataset,
    PlotOrientation orientation,
    boolean legend,
    boolean tooltips,
    boolean urls) 
 public static JFreeChart createTimeSeriesChart(String title,
    String timeAxisLabel,
    String valueAxisLabel,
    XYDataset dataset,
    boolean legend,
    boolean tooltips,
    boolean urls) 
 public static JFreeChart createWaferMapChart(String title,
    WaferMapDataset dataset,
    PlotOrientation orientation,
    boolean legend,
    boolean tooltips,
    boolean urls) 
    Creates a wafer map chart.
 public static JFreeChart createWaterfallChart(String title,
    String categoryAxisLabel,
    String valueAxisLabel,
    CategoryDataset dataset,
    PlotOrientation orientation,
    boolean legend,
    boolean tooltips,
    boolean urls) 
 public static JFreeChart createWindPlot(String title,
    String xAxisLabel,
    String yAxisLabel,
    WindDataset dataset,
    boolean legend,
    boolean tooltips,
    boolean urls) 
    Creates a wind plot with default settings.
 public static JFreeChart createXYAreaChart(String title,
    String xAxisLabel,
    String yAxisLabel,
    XYDataset dataset,
    PlotOrientation orientation,
    boolean legend,
    boolean tooltips,
    boolean urls) 
 public static JFreeChart createXYBarChart(String title,
    String xAxisLabel,
    boolean dateAxis,
    String yAxisLabel,
    IntervalXYDataset dataset,
    PlotOrientation orientation,
    boolean legend,
    boolean tooltips,
    boolean urls) 
    Creates and returns a default instance of an XY bar chart.

    The chart object returned by this method uses an XYPlot instance as the plot, with a DateAxis for the domain axis, a NumberAxis as the range axis, and a XYBarRenderer as the renderer.

 public static JFreeChart createXYLineChart(String title,
    String xAxisLabel,
    String yAxisLabel,
    XYDataset dataset,
    PlotOrientation orientation,
    boolean legend,
    boolean tooltips,
    boolean urls) 
    Creates a line chart (based on an XYDataset ) with default settings.
 public static JFreeChart createXYStepAreaChart(String title,
    String xAxisLabel,
    String yAxisLabel,
    XYDataset dataset,
    PlotOrientation orientation,
    boolean legend,
    boolean tooltips,
    boolean urls) 
    Creates a filled stepped XY plot with default settings.
 public static JFreeChart createXYStepChart(String title,
    String xAxisLabel,
    String yAxisLabel,
    XYDataset dataset,
    PlotOrientation orientation,
    boolean legend,
    boolean tooltips,
    boolean urls) 
    Creates a stepped XY plot with default settings.