Class ViewPopupMenu

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, MenuElement

public class ViewPopupMenu extends JPopupMenu
See Also:
  • Constructor Details

    • ViewPopupMenu

      public ViewPopupMenu(BaseView view)
      The view's popup menu
      Parameters:
      view -
  • Method Details

    • addQuickZoom

      public void addQuickZoom(JMenuItem item)
      Adds a view-specific zoom destination to the Quick Zoom submenu.

      The submenu and its preceding separator are created only when the first destination is registered. This keeps views without quick zooms unchanged and visually distinguishes navigation shortcuts from ordinary view commands.

      Parameters:
      item - menu item that performs the zoom; must not be null