Package ij.gui

Class WaitForUserDialog

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

public class WaitForUserDialog extends Dialog implements ActionListener, KeyListener
This is a non-modal dialog box used to ask the user to perform some task while a macro or plugin is running. It implements the waitForUser() macro function. It is based on Michael Schmid's Wait_For_User plugin.
See Also:
  • Field Details

    • button

      protected Button button
    • label

      protected MultiLineLabel label
    • xloc

      protected static int xloc
    • yloc

      protected static int yloc
  • Constructor Details

    • WaitForUserDialog

      public WaitForUserDialog(String title, String text)
    • WaitForUserDialog

      public WaitForUserDialog(String text)
  • Method Details

    • show

      public void show()
      Overrides:
      show in class Dialog
    • close

      public void close()
    • actionPerformed

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

      public void keyPressed(KeyEvent e)
      Specified by:
      keyPressed in interface KeyListener
    • escPressed

      public boolean escPressed()
    • keyReleased

      public void keyReleased(KeyEvent e)
      Specified by:
      keyReleased in interface KeyListener
    • keyTyped

      public void keyTyped(KeyEvent e)
      Specified by:
      keyTyped in interface KeyListener
    • getButton

      public Button getButton()
      Returns a reference to the 'OK' button
    • setNextLocation

      public static void setNextLocation(int x, int y)
      Display the next WaitForUser dialog at the specified location.