public interface DataViewerGearMenuPlugin extends MMPlugin
DataViewer but not
a DisplayWindow, such as the TiledDataViewer.
This is the counterpart of DisplayGearMenuPlugin, which takes a
DisplayWindow and so cannot be used by viewers that do not implement
that interface. Implementations declare which viewers they support through
isApplicableToDataViewer(org.micromanager.display.DataViewer), in the same way
InspectorPanelPlugin does, and
typically cast the viewer to their own API type inside
onPluginSelected(org.micromanager.display.DataViewer).
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getSubMenu()
Indicate which sub-menu of the gear menu this plugin should appear in.
|
boolean |
isApplicableToDataViewer(DataViewer viewer)
Indicate whether this plugin can operate on the given viewer.
|
void |
onPluginSelected(DataViewer viewer)
This method will be called when the plugin is selected from the gear menu.
|
getCopyright, getHelpText, getName, getVersion, setContextjava.lang.String getSubMenu()
boolean isApplicableToDataViewer(DataViewer viewer)
Only applicable plugins are shown in that viewer's gear menu, so an
implementation may safely cast the viewer to its expected type in
onPluginSelected(org.micromanager.display.DataViewer).
viewer - the viewer whose gear menu is being builtvoid onPluginSelected(DataViewer viewer)
viewer - The viewer whose gear menu was interacted with. This is one
for which isApplicableToDataViewer(org.micromanager.display.DataViewer) returned true.