|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectij.Menus
public class Menus
This class installs and updates ImageJ's menus.
ImageJ
Field Summary | |
---|---|
static char |
ABOUT_MENU
|
static int |
COMMAND_IN_USE
|
static int |
COMMAND_NOT_FOUND
|
static char |
FILTERS_MENU
|
static char |
IMPORT_MENU
|
static int |
INVALID_SHORTCUT
|
static int |
NORMAL_RETURN
|
static int |
NOT_INSTALLED
|
static char |
PLUGINS_MENU
|
static char |
SAVE_AS_MENU
|
static int |
SHORTCUT_IN_USE
|
static char |
SHORTCUTS_MENU
|
static char |
TOOLS_MENU
|
static char |
UTILITIES_MENU
|
static int |
WINDOW_MENU_ITEMS
|
Method Summary | |
---|---|
static boolean |
commandInUse(java.lang.String command)
|
static java.util.Hashtable |
getCommands()
Returns the hashtable that associates commands with plugins. |
static java.awt.MenuBar |
getMenuBar()
|
static java.lang.String |
getPlugInsPath()
Returns the path to the user plugins directory. |
static java.awt.PopupMenu |
getPopupMenu()
|
static java.util.Hashtable |
getShortcuts()
Returns the hashtable that associates shortcuts with commands. |
static int |
installPlugin(java.lang.String plugin,
char menuCode,
java.lang.String command,
java.lang.String shortcut,
ImageJ ij)
Adds a plugin based command to the end of a specified menu. |
static void |
savePreferences(java.util.Properties prefs)
|
static boolean |
shortcutInUse(java.lang.String shortcut)
|
static int |
uninstallPlugin(java.lang.String command)
Deletes a command installed by installPlugin. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char PLUGINS_MENU
public static final char IMPORT_MENU
public static final char SAVE_AS_MENU
public static final char SHORTCUTS_MENU
public static final char ABOUT_MENU
public static final char FILTERS_MENU
public static final char TOOLS_MENU
public static final char UTILITIES_MENU
public static final int WINDOW_MENU_ITEMS
public static final int NORMAL_RETURN
public static final int COMMAND_IN_USE
public static final int INVALID_SHORTCUT
public static final int SHORTCUT_IN_USE
public static final int NOT_INSTALLED
public static final int COMMAND_NOT_FOUND
Method Detail |
---|
public static java.awt.MenuBar getMenuBar()
public static java.lang.String getPlugInsPath()
public static java.util.Hashtable getCommands()
public static java.util.Hashtable getShortcuts()
public static java.awt.PopupMenu getPopupMenu()
public static int installPlugin(java.lang.String plugin, char menuCode, java.lang.String command, java.lang.String shortcut, ImageJ ij)
plugin
- the plugin (e.g. "Inverter_", "Inverter_("arg")")menuCode
- PLUGINS_MENU, IMPORT_MENU, SAVE_AS_MENU or HOT_KEYScommand
- the menu item label (set to "" to uninstall)command
- the keyboard shortcut (e.g. "y", "Y", "F1")ij
- ImageJ (the action listener)
public static int uninstallPlugin(java.lang.String command)
public static boolean commandInUse(java.lang.String command)
public static boolean shortcutInUse(java.lang.String shortcut)
public static void savePreferences(java.util.Properties prefs)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |