Class LineStatisticsPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class LineStatisticsPanel extends StatisticsPanel
The LineStatisticsPanel shows a simple data plot of statistics as an x-y line plot of the statistics values. The x axis is labelled with the data value count, and the y axis with the user-specified label.
Since:
3.1.7
Author:
Peter Hollemans
See Also:
  • Constructor Details

    • LineStatisticsPanel

      public LineStatisticsPanel(Statistics stats, String label)
      Creates a new panel using the specified data.
      Parameters:
      stats - the line statistics.
      label - the y-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