Class ResultPlot

All Implemented Interfaces:
HierarchyListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ControllerListener
Direct Known Subclasses:
ApproximationSetPlot, EmptyPlot, LinePlot

public abstract class ResultPlot extends JPanel implements ControllerListener, HierarchyListener
Abstract Swing component for displaying results. The specific implementation determines the type of plot. The results displayed in the plot are specified by DiagnosticTool.getSelectedResults().
See Also:
  • Field Details

    • frame

      protected final DiagnosticTool frame
      The frame containing this plot.
    • controller

      protected final DiagnosticToolController controller
      The controller this plot uses to access result data.
    • metric

      protected final String metric
      The metric to display.
  • Constructor Details

    • ResultPlot

      public ResultPlot(DiagnosticTool frame, String metric)
      Constructs a new Swing component for displaying results.
      Parameters:
      frame - the frame containing this plot
      metric - the metric to display
  • Method Details

    • update

      protected abstract void update()
      Updates the contents of this plot. This method is automatically invoked when the data model is changed, and will always be executed on the event dispatch thread.
    • hierarchyChanged

      public void hierarchyChanged(HierarchyEvent e)
      Specified by:
      hierarchyChanged in interface HierarchyListener
    • controllerStateChanged

      public void controllerStateChanged(ControllerEvent e)
      Description copied from interface: ControllerListener
      Invoked by the controller to indicate its state changed.
      Specified by:
      controllerStateChanged in interface ControllerListener
      Parameters:
      e - details of the controller event