Interface DisplayGearMenuPlugin
- All Superinterfaces:
MMGenericPlugin, MMPlugin, org.scijava.plugin.SciJavaPlugin
DisplayGearMenuPlugins add items to be shown in the "gear menu" shown in
each DisplayWindow.
-
Method Summary
Modifier and TypeMethodDescriptionIndicate which sub-menu of the gear menu this plugin should appear in.voidonPluginSelected(DisplayWindow display) This method will be called when the plugin is selected from the gear menu.Methods inherited from interface MMPlugin
getCopyright, getHelpText, getName, getVersion, setContext
-
Method Details
-
getSubMenu
String getSubMenu()Indicate which sub-menu of the gear menu this plugin should appear in. If that sub-menu does not exist, it will be created. If an empty string is returned, then the plugin will be inserted directly into the gear menu, instead of into a sub-menu.- Returns:
- Sub-menu of the gear menu hosting this entry, or empty string.
-
onPluginSelected
This method will be called when the plugin is selected from the gear menu.- Parameters:
display- The display whose gear menu was interacted with.
-