Class ShortcutPanel

All Implemented Interfaces:
ij.plugin.PlugIn, ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class ShortcutPanel extends JPanel implements ActionListener, ij.plugin.PlugIn
A plugin that displays a small window containing shortcuts to the plugins, including the Bio-Formats Importer, Bio-Formats Exporter, Stack Colorizer and Stack Slicer. Files dragged and dropped onto the window will be opened using the Bio-Formats Importer plugin.
Author:
Curtis Rueden ctrueden at wisc.edu
See Also:
  • Field Details

    • OPENER_PLUGIN

      protected static final String OPENER_PLUGIN
      Name of plugin to use for opening dropped files.
      See Also:
    • SHORTCUT_PLUGIN

      protected static final String SHORTCUT_PLUGIN
      Name of this plugin, ignored when parsing the plugins list.
      See Also:
    • NORMAL_MENU

      protected static final String NORMAL_MENU
      Name of the 'Bio-Formats' submenu.
      See Also:
    • HELP_MENU

      protected static final String HELP_MENU
      Name of the 'About Plugins' submenu.
      See Also:
    • BORDER

      protected static final int BORDER
      Number of pixels for window border.
      See Also:
    • openerIndex

      protected static int openerIndex
      Index of plugin to use to open dropped files.
    • names

      protected static String[] names
      Details for installed plugins.
    • plugins

      protected static String[] plugins
      Details for installed plugins.
    • args

      protected static String[] args
      Details for installed plugins.
  • Constructor Details

    • ShortcutPanel

      public ShortcutPanel()
      Constructs a shortcut panel.
  • Method Details

    • open

      public void open(String id)
      Opens the given location (e.g., file) with the Bio-Formats Importer plugin.
    • runPlugIn

      public static void runPlugIn(String className, String arg)
      Executes the given plugin, in a separate thread.
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Handles button presses.
      Specified by:
      actionPerformed in interface ActionListener
    • run

      public void run(String arg)
      Executes the plugin.
      Specified by:
      run in interface ij.plugin.PlugIn