Package PamView.paneloverlay.overlaymark
Class ExtMapMouseHandler
java.lang.Object
PamView.paneloverlay.overlaymark.ExtMouseAdapter
PamView.paneloverlay.overlaymark.ExtMapMouseHandler
Handle data from multiple external mouse handlers returning
an OR of their response to the various functions.
- Author:
- Doug Gillespie
-
Constructor Summary
ConstructorDescriptionExtMapMouseHandler
(Window awtWindow, boolean compositePopupMenus) ExtMapMouseHandler
(javafx.scene.Node fxNode, boolean compositePopupMenus) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMouseHandler
(ExtMouseAdapter mouseAdapter) Get the pop up menu.List<javafx.scene.control.MenuItem>
getPopupMenuItems
(javafx.scene.input.MouseEvent e) Get a complete list of all menu items.boolean
mouseClicked
(javafx.scene.input.MouseEvent e) boolean
mouseDragged
(javafx.scene.input.MouseEvent e) boolean
mouseEntered
(javafx.scene.input.MouseEvent e) boolean
mouseExited
(javafx.scene.input.MouseEvent e) boolean
mouseMoved
(javafx.scene.input.MouseEvent e) boolean
mousePressed
(javafx.scene.input.MouseEvent e) boolean
mouseReleased
(javafx.scene.input.MouseEvent e) boolean
mouseWheelMoved
(javafx.scene.input.ScrollEvent e) boolean
removeMouseHandler
(ExtMouseAdapter mouseAdapter) void
setPopMenu
(ExtPopMenu popMenu) Set the pop up menu.void
subscribeFXPanel
(javafx.scene.Node fxNode) Methods inherited from class PamView.paneloverlay.overlaymark.ExtMouseAdapter
fxMouse, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, swingMouse
-
Constructor Details
-
ExtMapMouseHandler
public ExtMapMouseHandler(javafx.scene.Node fxNode, boolean compositePopupMenus) -
ExtMapMouseHandler
- Parameters:
awtWindow
-compositePopupMenus
-
-
-
Method Details
-
addMouseHandler
-
removeMouseHandler
-
subscribeFXPanel
public void subscribeFXPanel(javafx.scene.Node fxNode) -
mouseDragged
public boolean mouseDragged(javafx.scene.input.MouseEvent e) - Overrides:
mouseDragged
in classExtMouseAdapter
-
mouseEntered
public boolean mouseEntered(javafx.scene.input.MouseEvent e) - Overrides:
mouseEntered
in classExtMouseAdapter
-
mouseExited
public boolean mouseExited(javafx.scene.input.MouseEvent e) - Overrides:
mouseExited
in classExtMouseAdapter
-
mouseMoved
public boolean mouseMoved(javafx.scene.input.MouseEvent e) - Overrides:
mouseMoved
in classExtMouseAdapter
-
mouseClicked
public boolean mouseClicked(javafx.scene.input.MouseEvent e) - Overrides:
mouseClicked
in classExtMouseAdapter
-
mousePressed
public boolean mousePressed(javafx.scene.input.MouseEvent e) - Overrides:
mousePressed
in classExtMouseAdapter
-
mouseReleased
public boolean mouseReleased(javafx.scene.input.MouseEvent e) - Overrides:
mouseReleased
in classExtMouseAdapter
-
mouseWheelMoved
public boolean mouseWheelMoved(javafx.scene.input.ScrollEvent e) - Overrides:
mouseWheelMoved
in classExtMouseAdapter
-
getPopMenu
Get the pop up menu.- Returns:
- the pop up menu
-
setPopMenu
Set the pop up menu. Use this to set custom pop up menus- Parameters:
popMenu
- - the pop up menu to set
-
getPopupMenuItems
Get a complete list of all menu items.- Overrides:
getPopupMenuItems
in classExtMouseAdapter
-