Interface CanvasContextMenuProvider


public interface CanvasContextMenuProvider
Use ScreenSpaceCanvas.addContextMenuProvider(CanvasContextMenuProvider) to add menu items into the context menu generated by Bookmap.
Internally the right-click handling looks like this:
  1. A right-click event occurs
  2. getRightClickEventScore(CanvasMouseEvent) is called for every module
  3. Bookmap finds a module with the highest score
  4. If this module is different from the previously focused one, onFocusLost() is called on the previous one
  5. Bookmap calls onFocusGained() on the newly focused module
  6. Bookmap calls getMenuItems(CanvasMouseEvent) on every module, and combines obtained menu items into one context menu
  7. Context menu is shown