Package adams.gui.tools
Class ImageProcessorSubPanel.ImagePopupMenuProvider
- java.lang.Object
-
- adams.gui.tools.ImageProcessorSubPanel.ImagePopupMenuProvider
-
- All Implemented Interfaces:
CustomPopupMenuProvider
- Enclosing class:
- ImageProcessorSubPanel
public static class ImageProcessorSubPanel.ImagePopupMenuProvider extends Object implements CustomPopupMenuProvider
Custom popup menu provider for theImagePanelinstances.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description protected ImagePanelm_PaneltheImagePanelthis provider is for.
-
Constructor Summary
Constructors Constructor Description ImagePopupMenuProvider(ImagePanel panel)Initializes the provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BasePopupMenugetCustomPopupMenu(MouseEvent e)Creates a popup menu for the given mouse event.ImagePanelgetPanel()Returns theImagePanelthis provider is for.
-
-
-
Field Detail
-
m_Panel
protected ImagePanel m_Panel
theImagePanelthis provider is for.
-
-
Constructor Detail
-
ImagePopupMenuProvider
public ImagePopupMenuProvider(ImagePanel panel)
Initializes the provider.- Parameters:
panel- the panel this provider is for
-
-
Method Detail
-
getPanel
public ImagePanel getPanel()
Returns theImagePanelthis provider is for.- Returns:
- the panel
-
getCustomPopupMenu
public BasePopupMenu getCustomPopupMenu(MouseEvent e)
Creates a popup menu for the given mouse event.- Specified by:
getCustomPopupMenuin interfaceCustomPopupMenuProvider- Parameters:
e- the event that triggered the request- Returns:
- the menu, null if none was generated
-
-