Module ij
Package ij.plugin

Class CommandFinder

java.lang.Object
ij.plugin.CommandFinder
All Implemented Interfaces:
PlugIn, java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.WindowListener, java.util.EventListener

public class CommandFinder
extends java.lang.Object
implements PlugIn, java.awt.event.ActionListener, java.awt.event.WindowListener, java.awt.event.KeyListener, java.awt.event.ItemListener, java.awt.event.MouseListener
  • Constructor Summary

    Constructors 
    Constructor Description
    CommandFinder()  
  • Method Summary

    Modifier and Type Method Description
    void actionPerformed​(java.awt.event.ActionEvent ae)  
    void findAllMenuItems()  
    void itemStateChanged​(java.awt.event.ItemEvent ie)  
    void keyPressed​(java.awt.event.KeyEvent ke)  
    void keyReleased​(java.awt.event.KeyEvent ke)  
    void keyTyped​(java.awt.event.KeyEvent ke)  
    protected java.lang.String[] makeRow​(java.lang.String command, ij.plugin.CommandFinder.CommandAction ca)  
    void mouseClicked​(java.awt.event.MouseEvent e)  
    void mouseEntered​(java.awt.event.MouseEvent e)  
    void mouseExited​(java.awt.event.MouseEvent e)  
    void mousePressed​(java.awt.event.MouseEvent e)  
    void mouseReleased​(java.awt.event.MouseEvent e)  
    void parseMenu​(java.lang.String path, java.awt.Menu menu)  
    protected void populateList​(java.lang.String matchingSubstring)  
    void previewLUT()  
    void run​(java.lang.String initialSearch)
    Displays the Command Finder dialog.
    protected void runCommand​(java.lang.String command)  
    void windowActivated​(java.awt.event.WindowEvent e)  
    void windowClosed​(java.awt.event.WindowEvent e)  
    void windowClosing​(java.awt.event.WindowEvent e)  
    void windowDeactivated​(java.awt.event.WindowEvent e)  
    void windowDeiconified​(java.awt.event.WindowEvent e)  
    void windowIconified​(java.awt.event.WindowEvent e)  
    void windowOpened​(java.awt.event.WindowEvent e)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • makeRow

      protected java.lang.String[] makeRow​(java.lang.String command, ij.plugin.CommandFinder.CommandAction ca)
    • populateList

      protected void populateList​(java.lang.String matchingSubstring)
    • actionPerformed

      public void actionPerformed​(java.awt.event.ActionEvent ae)
      Specified by:
      actionPerformed in interface java.awt.event.ActionListener
    • itemStateChanged

      public void itemStateChanged​(java.awt.event.ItemEvent ie)
      Specified by:
      itemStateChanged in interface java.awt.event.ItemListener
    • mouseClicked

      public void mouseClicked​(java.awt.event.MouseEvent e)
      Specified by:
      mouseClicked in interface java.awt.event.MouseListener
    • mousePressed

      public void mousePressed​(java.awt.event.MouseEvent e)
      Specified by:
      mousePressed in interface java.awt.event.MouseListener
    • mouseReleased

      public void mouseReleased​(java.awt.event.MouseEvent e)
      Specified by:
      mouseReleased in interface java.awt.event.MouseListener
    • mouseEntered

      public void mouseEntered​(java.awt.event.MouseEvent e)
      Specified by:
      mouseEntered in interface java.awt.event.MouseListener
    • mouseExited

      public void mouseExited​(java.awt.event.MouseEvent e)
      Specified by:
      mouseExited in interface java.awt.event.MouseListener
    • runCommand

      protected void runCommand​(java.lang.String command)
    • keyPressed

      public void keyPressed​(java.awt.event.KeyEvent ke)
      Specified by:
      keyPressed in interface java.awt.event.KeyListener
    • keyReleased

      public void keyReleased​(java.awt.event.KeyEvent ke)
      Specified by:
      keyReleased in interface java.awt.event.KeyListener
    • previewLUT

      public void previewLUT()
    • keyTyped

      public void keyTyped​(java.awt.event.KeyEvent ke)
      Specified by:
      keyTyped in interface java.awt.event.KeyListener
    • parseMenu

      public void parseMenu​(java.lang.String path, java.awt.Menu menu)
    • findAllMenuItems

      public void findAllMenuItems()
    • run

      public void run​(java.lang.String initialSearch)
      Displays the Command Finder dialog. If a Command Finder window is already being displayed and initialSearch contains a valid query, it will be closed and a new one displaying the new search will be rebuilt at the same screen location.
      Specified by:
      run in interface PlugIn
      Parameters:
      initialSearch - The search string that populates Command Finder's search field. It is ignored if contains an invalid query (ie, if it is either null or empty).
    • windowClosing

      public void windowClosing​(java.awt.event.WindowEvent e)
      Specified by:
      windowClosing in interface java.awt.event.WindowListener
    • windowActivated

      public void windowActivated​(java.awt.event.WindowEvent e)
      Specified by:
      windowActivated in interface java.awt.event.WindowListener
    • windowDeactivated

      public void windowDeactivated​(java.awt.event.WindowEvent e)
      Specified by:
      windowDeactivated in interface java.awt.event.WindowListener
    • windowClosed

      public void windowClosed​(java.awt.event.WindowEvent e)
      Specified by:
      windowClosed in interface java.awt.event.WindowListener
    • windowOpened

      public void windowOpened​(java.awt.event.WindowEvent e)
      Specified by:
      windowOpened in interface java.awt.event.WindowListener
    • windowIconified

      public void windowIconified​(java.awt.event.WindowEvent e)
      Specified by:
      windowIconified in interface java.awt.event.WindowListener
    • windowDeiconified

      public void windowDeiconified​(java.awt.event.WindowEvent e)
      Specified by:
      windowDeiconified in interface java.awt.event.WindowListener