Class HistogramStatisticsPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class HistogramStatisticsPanel extends StatisticsPanel
The HistogramStatisticsPanel shows a simple data plot of statistics as a histogram. The x axis is labelled with a user-specified label, and the y axes of the plot are labelled with the normalized count.
Since:
3.1.7
Author:
Peter Hollemans
See Also:
  • Constructor Details

    • HistogramStatisticsPanel

      public HistogramStatisticsPanel(Statistics stats, String label)
      Creates a new panel using the specified data.
      Parameters:
      stats - the histogram statistics.
      label - the x-axis label.
  • Method Details

    • getXLabel

      protected String getXLabel()
      Description copied from class: XYPlotPanel
      Gets the x-axis label.
      Specified by:
      getXLabel in class XYPlotPanel
    • getYLabel

      protected String getYLabel()
      Description copied from class: XYPlotPanel
      Gets the y-axis label.
      Specified by:
      getYLabel in class XYPlotPanel
    • getXRange

      protected double[] getXRange()
      Description copied from class: XYPlotPanel
      Gets the x-axis value range as [min, max]. If the range has invalid values or min==max, no plot is drawn.
      Specified by:
      getXRange in class XYPlotPanel
    • getYRange

      protected double[] getYRange()
      Description copied from class: XYPlotPanel
      Gets the y-axis value range as [min, max]. If the range has invalid values or min==max, no plot is drawn.
      Specified by:
      getYRange in class XYPlotPanel
    • paintComponent

      public void paintComponent(Graphics g)
      Description copied from class: XYPlotPanel
      Paints the x-y panel axes and labels.
      Overrides:
      paintComponent in class XYPlotPanel