Class AReadyPlotPanel

All Implemented Interfaces:
PlotChangeListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible
Direct Known Subclasses:
EvsTPlotPanel

public abstract class AReadyPlotPanel extends JPanel implements PlotChangeListener
An abstract plot panel that is ready to use once the data is filled and the parameters are set.
Author:
heddle
See Also:
  • Field Details

  • Constructor Details

    • AReadyPlotPanel

      public AReadyPlotPanel(boolean includeMenu)
      Create the plot panel, optionally including the menu bar.
      Parameters:
      includeMenu - whether to include the menu bar
  • Method Details

    • getInsets

      public Insets getInsets()
      Overrides:
      getInsets in class JComponent
    • dataSetup

      protected void dataSetup()
      Set up the data structures
    • getPlotCanvas

      public PlotCanvas getPlotCanvas()
      Get the plot canvas
      Returns:
      the plot canvas
    • getPlotPanel

      public PlotPanel getPlotPanel()
      Get the plot panel
      Returns:
      the plot panel
    • clearData

      public abstract void clearData()
      Clear all data from the plot in anticipation of new data
    • createPlotData

      protected abstract PlotData createPlotData() throws PlotDataException
      Create the plot data
      Returns:
      the plot data
      Throws:
      PlotDataException
    • getXAxisLabel

      protected abstract String getXAxisLabel()
      Get the x axis label
      Returns:
      the x axis label
    • getYAxisLabel

      protected abstract String getYAxisLabel()
      Get the y axis label
      Returns:
      the y axis label
    • getPlotTitle

      protected abstract String getPlotTitle()
      Get the plot title
      Returns:
      the plot title
    • setParameters

      public abstract void setParameters()
      Set the plot parameters