org.scijava.plugin
Annotation Type Menu


@Target(value={})
public @interface Menu

One item of a 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()).

Author:
Curtis Rueden

Required Element Summary
 String label
          The human-readable label to use for the menu item.
 
Optional Element Summary
 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.
 

Element Detail

label

public abstract String label
The human-readable label to use for the menu item.

weight

public abstract double weight
Position within the menu structure. Items at each level are sorted in ascending order by weight.

Default:
1d/0d

mnemonic

public abstract char mnemonic
Mnemonic identifying underlined shortcut character.

Default:
0

accelerator

public abstract String accelerator
Keyboard shortcut to activate the menu item.

See Also:
for information on the syntax.
Default:
""

iconPath

public abstract String iconPath
Path to the menu's icon (shown in the menu structure).

Default:
""


Copyright © 2009–2014 SciJava. All rights reserved.