Class BoxPlotSeriesAttributes

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class BoxPlotSeriesAttributes extends SeriesAttributes
A SeriesAttributes used for user control of BoxPlot series created with BoxPlotGenerator. Unfortunately JFreeChart doesn't have nearly as well-designed a BoxPlot chart facility as its time series charts. There is no BoxPlotSeries object to encapsulate a series, and no facilities for deleting or moving series relative to one another.
See Also:
  • Constructor Details

    • BoxPlotSeriesAttributes

      public BoxPlotSeriesAttributes(ChartGenerator generator, String name, int index, double[][] values, String[] labels, org.jfree.data.general.SeriesChangeListener stoppable)
      Produces a BoxPlotSeriesAttributes object with the given generator, series name, series index, and desire to display margin options.
    • BoxPlotSeriesAttributes

      public BoxPlotSeriesAttributes(ChartGenerator generator, String name, int index, double[] values, org.jfree.data.general.SeriesChangeListener stoppable)
      Produces a BoxPlotSeriesAttributes object with the given generator, series name, series index, and desire to display margin options.
  • Method Details

    • setLabels

      public void setLabels(String[] labels)
    • getLabels

      public String[] getLabels()
    • getValues

      public double[][] getValues()
    • setValues

      public void setValues(double[][] vals)
    • setFillOpacity

      public void setFillOpacity(double value)
    • getFillOpacity

      public double getFillOpacity()
    • setStrokeOpacity

      public void setStrokeOpacity(double value)
    • getStrokeOpacity

      public double getStrokeOpacity()
    • setThickness

      public void setThickness(double value)
    • getThickness

      public double getThickness()
    • setFillColor

      public void setFillColor(Color value)
    • getFillColor

      public Color getFillColor()
    • setStrokeColor

      public void setStrokeColor(Color value)
    • getStrokeColor

      public Color getStrokeColor()
    • setSeriesName

      public void setSeriesName(String val)
      It's very expensive to call this function (O(n)) because JFreeChart has no way of changing the name of a BoxPlot dataset series, and so we must rebuild all of it from scratch.
      Overrides:
      setSeriesName in class SeriesAttributes
    • rebuildGraphicsDefinitions

      public void rebuildGraphicsDefinitions()
      Description copied from class: SeriesAttributes
      Updates features of the series to reflect the current widget settings as specified by the user.
      Specified by:
      rebuildGraphicsDefinitions in class SeriesAttributes
    • buildAttributes

      public void buildAttributes()
      Description copied from class: SeriesAttributes
      Constructs the widget by adding items to the LabelledList. Will be called in the middle of the SeriesAttributes constructor, and so certain instance variables may not yet have been initialized.
      Specified by:
      buildAttributes in class SeriesAttributes
    • getCategoryRenderer

      public org.jfree.chart.renderer.category.CategoryItemRenderer getCategoryRenderer()
    • setPlotVisible

      public void setPlotVisible(boolean val)
      Overrides:
      setPlotVisible in class SeriesAttributes