public class MenuCreator extends AbstractInteractor
Constructor and Description |
---|
MenuCreator(MenuFactory factory)
Construct a new interactor with a right button mouse filter.
|
Modifier and Type | Method and Description |
---|---|
MenuFactory |
getMenuFactory()
Return the menu factory.
|
void |
mouseReleased(LayerEvent e)
When a mouse press happens, ask the factory to create a menu and show
it on the screen.
|
void |
setMenuFactory(MenuFactory factory)
Set the menu factory.
|
accept, getMouseFilter, isConsuming, isEnabled, isMotionEnabled, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, setConsuming, setEnabled, setMotionEnabled, setMouseFilter
public MenuCreator(MenuFactory factory)
public MenuFactory getMenuFactory()
public void mouseReleased(LayerEvent e)
mouseReleased
in interface LayerListener
mouseReleased
in class AbstractInteractor
public void setMenuFactory(MenuFactory factory)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.