Class Dialog

All Implemented Interfaces:
ActionListener, KeyListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class Dialog extends JFrame implements ActionListener, KeyListener
This is the user interface with GUI for selecting a model, a pattern miner, and an output file. The dialog then executes the search and writes the result.
Author:
Ozgun Babur
See Also:
  • Constructor Details

    • Dialog

      public Dialog(Miner... miners) throws HeadlessException
      Constructor for the dialog.
      Parameters:
      miners - a list of BioPAX pattern miners
      Throws:
      HeadlessException - when the initialization fails
  • Method Details

    • main

      public static void main(String[] args)
      Runs the program showing the dialog.
      Parameters:
      args - ignored
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Performs interactive operations.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      e - current event
    • keyTyped

      public void keyTyped(KeyEvent keyEvent)
      Listens key pressing events. Enables or disables run button.
      Specified by:
      keyTyped in interface KeyListener
      Parameters:
      keyEvent - event
    • keyPressed

      public void keyPressed(KeyEvent keyEvent)
      Specified by:
      keyPressed in interface KeyListener
    • keyReleased

      public void keyReleased(KeyEvent keyEvent)
      Specified by:
      keyReleased in interface KeyListener