Interface MapContextMenuProvider

  • All Known Implementing Classes:
    MagellanMapEditPlugIn

    public interface MapContextMenuProvider
    PlugIns should implement this interface if the provide a JMenu as contextMenu after right-click on the Map
    Version:
    1.0, 05.07.2007
    Author:
    Fiete
    • Method Detail

      • createMapContextMenu

        javax.swing.JMenuItem createMapContextMenu​(EventDispatcher dispatcher,
                                                   GameData data)
        creates a JMenuItem. Will be called on right-clicking on map.
      • update

        void update​(Region r)
        MapContextMenu "inits" the compenents when object selected here we update the plugin
      • updateUnknownRegion

        void updateUnknownRegion​(CoordinateID c)
        Gives the ContextMenu the chance to react on clicks on non-region areas
        Parameters:
        c - the coordinate provided by the mapper (Eressea Coordinates)