Interface ILcyGenericMapManagerListener<S extends ILcdView,T extends ILcdLayer>

All Superinterfaces:
EventListener

public interface ILcyGenericMapManagerListener<S extends ILcdView,T extends ILcdLayer> extends EventListener
Listener that can be attached to a TLcyGenericMapManager.
See Also:
  • Method Details

    • mapManagerChanged

      void mapManagerChanged(TLcyGenericMapManagerEvent<? extends S,? extends T> aMapManagerEvent)
      This method will be invoked whenever the ILcyGeneralMapManager changes.
      Parameters:
      aMapManagerEvent - The event describing the changes to the ILcyGeneralMapManager.
    • onMapAdded

      static ILcyGenericMapManagerListener<ILcdView,ILcdLayer> onMapAdded(Consumer<ILcyGenericMapComponent<? extends ILcdView,? extends ILcdLayer>> aMapComponentConsumer)
      Utility method to create a new ILcyGenericMapManagerListener which will trigger aMapComponentConsumer each time the listener receives an event indicating a map has been added.
      Parameters:
      aMapComponentConsumer - The consumer of the map component
      Returns:
      a new ILcyGenericMapManagerListener
      Since:
      2017.0
    • onMapAdded

      static <View extends ILcdView> ILcyGenericMapManagerListener<ILcdView,ILcdLayer> onMapAdded(Class<View> aViewClass, Consumer<ILcyGenericMapComponent<? extends View,? extends ILcdLayer>> aMapComponentConsumer)
      Utility method to create a new ILcyGenericMapManagerListener which will trigger aMapComponentConsumer each time the listener receives an event indicating a map has been added. The consumer will only be called when the view of the map component is of type aViewClass.
      Type Parameters:
      View - The type of view. Typically an interface like ILcdGXYView or ILspView.
      Parameters:
      aViewClass - Only map components of which the view is an instance of this class will be passed to aMapComponentConsumer
      aMapComponentConsumer - The consumer of the map component
      Returns:
      a new ILcyGenericMapManagerListener
      Since:
      2017.0
    • onMapRemoved

      static ILcyGenericMapManagerListener<ILcdView,ILcdLayer> onMapRemoved(Consumer<ILcyGenericMapComponent<? extends ILcdView,? extends ILcdLayer>> aMapComponentConsumer)
      Utility method to create a new ILcyGenericMapManagerListener which will trigger aMapComponentConsumer each time the listener receives an event indicating a map has been removed.
      Parameters:
      aMapComponentConsumer - The consumer of the map component
      Returns:
      a new ILcyGenericMapManagerListener
      Since:
      2017.0
    • onMapRemoved

      static <View extends ILcdView> ILcyGenericMapManagerListener<ILcdView,ILcdLayer> onMapRemoved(Class<View> aViewClass, Consumer<ILcyGenericMapComponent<? extends View,? extends ILcdLayer>> aMapComponentConsumer)
      Utility method to create a new ILcyGenericMapManagerListener which will trigger aMapComponentConsumer each time the listener receives an event indicating a map has been removed. The consumer will only be called when the view of the map component is of type aViewClass.
      Type Parameters:
      View - The type of view. Typically an interface like ILcdGXYView or ILspView.
      Parameters:
      aViewClass - Only map components of which the view is an instance of this class will be passed to aMapComponentConsumer
      aMapComponentConsumer - The consumer of the map component
      Returns:
      a new ILcyGenericMapManagerListener
      Since:
      2017.0