Squiz Matrix
4.12.2
|
Static Public Member Functions | |
static synchronized String[] | getPlugins () |
static JMenuBar | getMenuBar () |
static void | updateMenus () |
static String | getPlugInsPath () |
static Hashtable | getCommands () |
static Hashtable | getShortcuts () |
static JPopupMenu | getPopupMenu () |
static int | installPlugin (String plugin, char menuCode, String command, String shortcut, ImageJ ij) |
static int | uninstallPlugin (String command) |
static boolean | commandInUse (String command) |
static int | convertShortcutToCode (String shortcut) |
static boolean | shortcutInUse (String shortcut) |
static void | savePreferences (Properties prefs) |
This class installs and updates ImageJ's menus. Note that menu labels, even in submenus, must be unique. This is because ImageJ uses a single hash table for all menu labels. If you look closely, you will see that File->Import->Text Image... and File->Save As->Text Image... do not use the same label. One of the labels has an extra space.
Definition at line 24 of file Menus.java.
|
inlinestatic |
Returns the hashtable that associates commands with plugins.
Definition at line 717 of file Menus.java.
|
inlinestatic |
Returns a list of the plugins in the plugins menu.
Definition at line 516 of file Menus.java.
|
inlinestatic |
Returns the path to the user plugins directory or null if the plugins directory was not found.
Definition at line 711 of file Menus.java.
|
inlinestatic |
Returns the hashtable that associates shortcuts with commands. The keys in the hashtable are Integer keycodes, or keycode+200 for uppercase.
Definition at line 723 of file Menus.java.
|
inlinestatic |
Adds a plugin based command to the end of a specified menu.
plugin | the plugin (e.g. "Inverter_", "Inverter_("arg")") |
menuCode | PLUGINS_MENU, IMPORT_MENU, SAVE_AS_MENU or HOT_KEYS |
command | the menu item label (set to "" to uninstall) |
shortcut | the keyboard shortcut (e.g. "y", "Y", "F1") |
ij | ImageJ (the action listener) |
Definition at line 741 of file Menus.java.
|
inlinestatic |
Called once when ImageJ quits.
Definition at line 872 of file Menus.java.
|
inlinestatic |
Deletes a command installed by installPlugin.
Definition at line 798 of file Menus.java.
|
inlinestatic |
Updates the Image/Type and Window menus.
Definition at line 647 of file Menus.java.