Package boofcv.gui

Class SelectAlgorithmPanel

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public abstract class SelectAlgorithmPanel
extends JPanel
implements ActionListener
Provides a pull down list form which the user can select which algorithm to run. After it has been selected the input should be processed and displayed.
See Also:
Serialized Form
  • Constructor Details

    • SelectAlgorithmPanel

      protected SelectAlgorithmPanel()
  • Method Details

    • setMainGUI

      public void setMainGUI​(Component gui)
      Used to add the main GUI to this panel. Must use this function. Algorithm change events will not be posted until this function has been set.
      gui - The main GUI being displayed.
    • addAlgorithm

      public void addAlgorithm​(String name, Object cookie)
    • refreshAlgorithm

      public void refreshAlgorithm()
      Tells it to switch again to the current algorithm. Useful if the input has changed and information needs to be rendered again.
    • actionPerformed

      public void actionPerformed​(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • setActiveAlgorithm

      public abstract void setActiveAlgorithm​(String name, Object cookie)