Class MainPanel

    • Constructor Detail

      • MainPanel

        public MainPanel​(MainLayerManager layerManager)
        Create a new main panel
        Parameters:
        layerManager - The layer manager to use to display the content.
    • Method Detail

      • updateContent

        protected void updateContent​(boolean showMap)
        Update the content of this MainFrame to either display the map or display the welcome screen.
        Parameters:
        showMap - If the map should be displayed.
      • addAndFireMapFrameListener

        public boolean addAndFireMapFrameListener​(MapFrameListener listener)
        Registers a new MapFrameListener that will be notified of MapFrame changes.

        It will fire an initial mapFrameInitialized event when the MapFrame is present. Otherwise will only fire when the MapFrame is created or destroyed.

        Parameters:
        listener - The MapFrameListener
        Returns:
        true if the listeners collection changed as a result of the call.
      • addMapFrameListener

        public boolean addMapFrameListener​(MapFrameListener listener)
        Registers a new MapFrameListener that will be notified of MapFrame changes
        Parameters:
        listener - The MapFrameListener
        Returns:
        true if the listeners collection changed as a result of the call
      • removeMapFrameListener

        public boolean removeMapFrameListener​(MapFrameListener listener)
        Unregisters the given MapFrameListener from MapFrame changes
        Parameters:
        listener - The MapFrameListener
        Returns:
        true if the listeners collection changed as a result of the call
      • reAddListeners

        public void reAddListeners()
        Re-adds the layer listeners. Never call this in production, only needed for testing.