Class BarChartGenerator

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class BarChartGenerator extends PieChartGenerator
A ChartGenerator for Bar Charts. Similar enough to PieChartGenerator that it subclasses from it to share methods.
See Also:
  • Field Details

    • MAXIMUM_BAR_CHART_ITEMS

      public static final int MAXIMUM_BAR_CHART_ITEMS
      See Also:
  • Constructor Details

    • BarChartGenerator

      public BarChartGenerator()
  • Method Details

    • setYAxisLabel

      public void setYAxisLabel(String val)
      Sets the name of the Y Axis label.
    • getYAxisLabel

      public String getYAxisLabel()
      Returns the name of the Y Axis label.
    • setXAxisLabel

      public void setXAxisLabel(String val)
      Sets the name of the X Axis label.
    • getXAxisLabel

      public String getXAxisLabel()
      Returns the name of the X Axis label.
    • buildGlobalAttributes

      protected void buildGlobalAttributes(LabelledList list)
      Overrides:
      buildGlobalAttributes in class ChartGenerator
    • getSeriesDataset

      public org.jfree.data.general.Dataset getSeriesDataset()
      Overrides:
      getSeriesDataset in class PieChartGenerator
    • setSeriesDataset

      public void setSeriesDataset(org.jfree.data.general.Dataset obj)
      Overrides:
      setSeriesDataset in class PieChartGenerator
    • buildNewAttributes

      protected PieChartSeriesAttributes buildNewAttributes(String name, org.jfree.data.general.SeriesChangeListener stopper)
      Overrides:
      buildNewAttributes in class PieChartGenerator
    • buildChart

      protected void buildChart()
      Description copied from class: ChartGenerator
      Override this to construct the appropriate kind of chart. This is the first thing called from the constructor; so certain of your instance variables may not have been set yet and you may need to set them yourself. You'll need to set the dataset.
      Overrides:
      buildChart in class PieChartGenerator