org.scijava.menu
Interface MenuService
- All Superinterfaces:
- Comparable<Prioritized>, Contextual, Disposable, HasPluginInfo, Prioritized, RichPlugin, SciJavaPlugin, SciJavaService, Service
- All Known Implementing Classes:
- DefaultMenuService
public interface MenuService
- extends SciJavaService
Interface for service that tracks the application's menu structure.
- Author:
- Curtis Rueden
getMenu
ShadowMenu getMenu()
- Gets the root node of the application menu structure.
getMenu
ShadowMenu getMenu(String menuRoot)
- Gets the root node of a menu structure.
- Parameters:
menuRoot
- the root of the desired menu structure (see
UIDetails.getMenuRoot()
).
createMenus
<T> T createMenus(MenuCreator<T> creator,
T menu)
- Populates a UI-specific application menu structure.
- Parameters:
creator
- the MenuCreator
to use to populate the menus.menu
- the destination menu structure to populate.
createMenus
<T> T createMenus(String menuRoot,
MenuCreator<T> creator,
T menu)
- Populates a UI-specific menu structure.
- Parameters:
menuRoot
- the root of the menu structure to generate (see
UIDetails.getMenuRoot()
).creator
- the MenuCreator
to use to populate the menus.menu
- the destination menu structure to populate.
Copyright © 2009–2015 SciJava. All rights reserved.