Annotation Type Menu


  • @Target({})
    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

      Required Elements 
      Modifier and Type Required Element Description
      String label
      The human-readable label to use for the menu item.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element 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.
    • Element Detail

      • label

        String label
        The human-readable label to use for the menu item.
      • weight

        double weight
        Position within the menu structure. Items at each level are sorted in ascending order by weight.
        Default:
        1.0/0.0
      • mnemonic

        char mnemonic
        Mnemonic identifying underlined shortcut character.
        Default:
        '\u0000'
      • iconPath

        String iconPath
        Path to the menu's icon (shown in the menu structure).
        Default:
        ""