Class BoxPlotGenerator

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class BoxPlotGenerator extends ChartGenerator
BoxPlotGenerator is a ChartGenerator which displays a BoxPlot using the JFreeChart library. The generator uses the HistoramDataset as its dataset, which holds BoxPlot elements consisting of a name, an array of doubles (the samples), and an integer (the number of bins). representing a time series displayed on the chart. You add series to the generator with the addSeries method.

BoxPlotChartGenerator creates attributes components in the form of BoxPlotAttributes, which work with the generator to properly update the chart to reflect changes the user has made to its display.

See Also:
  • Constructor Details

    • BoxPlotGenerator

      public BoxPlotGenerator()
  • Method Details

    • setMaximumWidth

      public void setMaximumWidth(double value)
    • getMaximumWidth

      public double getMaximumWidth()
    • setYAxisLogScaled

      public void setYAxisLogScaled(boolean isLogScaled)
    • isYAxisLogScaled

      public boolean isYAxisLogScaled()
    • setMeanShown

      public void setMeanShown(boolean val)
    • isMeanShown

      public boolean isMeanShown()
    • setMedianShown

      public void setMedianShown(boolean val)
    • isMedianShown

      public boolean isMedianShown()
    • getYAxisLabel

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

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

      public org.jfree.data.general.Dataset getSeriesDataset()
      Specified by:
      getSeriesDataset in class ChartGenerator
    • setSeriesDataset

      public void setSeriesDataset(org.jfree.data.general.Dataset obj)
      Specified by:
      setSeriesDataset in class ChartGenerator
    • getSeriesCount

      public int getSeriesCount()
      Specified by:
      getSeriesCount in class ChartGenerator
    • removeSeries

      public void removeSeries(int index)
      Description copied from class: ChartGenerator
      Override this to remove a series from the chart. Be sure to call super(...) first.
      Overrides:
      removeSeries in class ChartGenerator
    • moveSeries

      public void moveSeries(int index, boolean up)
      Description copied from class: ChartGenerator
      Override this to move a series relative to other series. Be sure to call super(...) first.
      Overrides:
      moveSeries in class ChartGenerator
    • 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.
      Specified by:
      buildChart in class ChartGenerator
    • update

      protected void update()
      Overrides:
      update in class ChartGenerator
    • addSeries

      public SeriesAttributes addSeries(double[] vals, String name, org.jfree.data.general.SeriesChangeListener stopper)
    • addSeries

      public SeriesAttributes addSeries(double[][] vals, String[] labels, String name, org.jfree.data.general.SeriesChangeListener stopper)
    • setYAxisLabel

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

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

      public void updateSeries(int index, double[] vals)
    • updateSeries

      public void updateSeries(int index, double[][] vals)
    • updateSeries

      public void updateSeries(int index, double[][] vals, String[] labels)
    • buildGlobalAttributes

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