@Target(value={}) public @interface Menu
Plugin
's menu path. It can be a top-level menu such as
File, a nested menu such as Open Recent, or a leaf item such as Exit. A
sequential list of Menus defines a Plugin
's position in the menu
structure.
Using a list of Menus to define menu position is more verbose than using
Plugin.menuPath()
, but more powerful in that it allows specification of
various menu attributes (e.g., weight()
, mnemonic()
,
accelerator()
and iconPath()
).
Modifier and Type | Required Element and Description |
---|---|
String |
label
The human-readable label to use for the menu item.
|
Modifier and Type | Optional Element and Description |
---|---|
String |
accelerator
Keyboard shortcut to activate the menu item.
|
String |
iconPath
Path to the menu's icon (shown in the menu structure).
|
char |
mnemonic
Mnemonic identifying underlined shortcut character.
|
double |
weight
Position within the menu structure.
|
public abstract String label
public abstract double weight
public abstract char mnemonic
public abstract String accelerator
for information on the syntax.
public abstract String iconPath
Copyright © 2015–2022 SciJava. All rights reserved.