Class PieChartSeriesAttributes

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
BarChartSeriesAttributes

public class PieChartSeriesAttributes extends SeriesAttributes
A SeriesAttributes used for user control of pie chart series created with PieChartGenerator. Like HistogramSeriesAttributes, modifying this series is costly because JFreeChart must rebuild everything.
See Also:
  • Constructor Details

    • PieChartSeriesAttributes

      public PieChartSeriesAttributes(ChartGenerator generator, String name, int index, org.jfree.data.general.SeriesChangeListener stoppable)
  • Method Details

    • setElements

      public void setElements(Object[] elts)
    • setElements

      public void setElements(Collection elts)
    • getValues

      public double[] getValues()
    • setValues

      public void setValues(double[] vals)
    • getLabels

      public String[] getLabels()
    • setLabels

      public void setLabels(String[] labs)
    • 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 pie chart 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
    • setPlotVisible

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