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 theImagePanel
instances.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description protected ImagePanel
m_Panel
theImagePanel
this 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 BasePopupMenu
getCustomPopupMenu(MouseEvent e)
Creates a popup menu for the given mouse event.ImagePanel
getPanel()
Returns theImagePanel
this provider is for.
-
-
-
Field Detail
-
m_Panel
protected ImagePanel m_Panel
theImagePanel
this 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 theImagePanel
this provider is for.- Returns:
- the panel
-
getCustomPopupMenu
public BasePopupMenu getCustomPopupMenu(MouseEvent e)
Creates a popup menu for the given mouse event.- Specified by:
getCustomPopupMenu
in interfaceCustomPopupMenuProvider
- Parameters:
e
- the event that triggered the request- Returns:
- the menu, null if none was generated
-
-