Class RuntimeViewer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ListSelectionListener, RootPaneContainer, WindowConstants, ControllerListener

public class RuntimeViewer extends JDialog implements ListSelectionListener, ControllerListener
Viewer showing approximation set runtime plots.
See Also:
  • Constructor Details

    • RuntimeViewer

      public RuntimeViewer(String title)
      Constructs an empty runtime viewer.
      Parameters:
      title - the title of the plot
    • RuntimeViewer

      public RuntimeViewer(Frame owner, String title)
      Constructs an empty runtime viewer with the given owner.
      Parameters:
      owner - the owner frame
      title - the title of the plot
  • Method Details

    • show

      public static void show(String title, NondominatedPopulation referenceSet, ResultSeries... series)
      Displays the approximation sets contained in the result series. In addition to displaying the viewer, this method also configures the system look and feel. Therefore, prefer this static method when creating a standalone version of this window.
      Parameters:
      title - the name or title for the data
      referenceSet - the reference set for the problem
      series - the series containing approximation set data to display
    • getController

      public RuntimeController getController()
      Returns the controller for this runtime viewer.
      Returns:
      the controller
    • valueChanged

      public void valueChanged(ListSelectionEvent e)
      Specified by:
      valueChanged in interface ListSelectionListener
    • controllerStateChanged

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