Class ExtPopMenuSimple

java.lang.Object
PamView.paneloverlay.overlaymark.ExtPopMenuSimple
All Implemented Interfaces:
ExtPopMenu

public class ExtPopMenuSimple extends Object implements ExtPopMenu
Simple implementation of a JavaFX pop up menu for a an ExtMapMouseHandler.
Author:
Jamie Macaulay, Doug Gillespie
  • Constructor Details

    • ExtPopMenuSimple

      public ExtPopMenuSimple()
  • Method Details

    • showPopupMenu

      public boolean showPopupMenu(javafx.scene.input.MouseEvent e, ArrayList<ExtMouseAdapter> extMouseAdapters, javafx.scene.Node parentNode)
      Show a master menu at the current mouse position.
      Specified by:
      showPopupMenu in interface ExtPopMenu
      Parameters:
      e - - the mouse event
      extMouseAdapters - - the list of mouse adapters to query for menu items
      parentNode - - the parent node to attach the menu to. If null, a swing menu will be used instead.
      Returns:
      true if the pop up menu is shown
    • closePopupMenu

      public boolean closePopupMenu(javafx.scene.input.MouseEvent e)
      Description copied from interface: ExtPopMenu
      Close the pop up menu programmatically
      Specified by:
      closePopupMenu in interface ExtPopMenu
      Parameters:
      e - - the mouse location.