Class HistogramSeriesAttributes

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

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

    • HistogramSeriesAttributes

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

    • 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()
    • setNumBins

      public void setNumBins(int value)
    • getNumBins

      public int getNumBins()
    • 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 histogram 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