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

  • Constructor Details

    • ResultPlot

      public ResultPlot(DiagnosticTool frame, String metric)
      Constructs a new Swing component for displaying results.
      Parameters:
      frame - the DiagnosticTool instance 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. The ControllerEvent indicates the type of event which has occurred.
      Specified by:
      controllerStateChanged in interface ControllerListener
      Parameters:
      e - details of the controller event