Class JCRSPopupMenu

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

public class JCRSPopupMenu extends JPopupMenu
A pop-up menu that can be used with a MapPane for coordinate reference system operations. It has the following items:
  • Set the CRS for the map pane
  • Show the CRS definition
Since:
2.6
Author:
Michael Bedward
See Also:
  • Constructor Details

    • JCRSPopupMenu

      public JCRSPopupMenu()
      Creates a CRS pop-up menu. Use later to associate this menu with a map pane.
    • JCRSPopupMenu

      public JCRSPopupMenu(MapPane mapPane)
      Creates a CRS pop-up menu to work with the given map pane.
      Parameters:
      mapPane - an instance of MapPane, or null
  • Method Details

    • setMapPane

      public void setMapPane(MapPane mapPane)
      Sets the map pane.
      Parameters:
      mapPane - the map pane
    • show

      public void show(Component invoker, int x, int y)
      The menu items will only be enabled when both the MapPane associated with this menu, and its MapContent, are set.
      Overrides:
      show in class JPopupMenu