Package com.luciad.lucy.map
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 Summary
Modifier and TypeMethodDescriptionvoid
mapManagerChanged
(TLcyGenericMapManagerEvent<? extends S, ? extends T> aMapManagerEvent) This method will be invoked whenever theILcyGeneralMapManager
changes.static <View extends ILcdView>
ILcyGenericMapManagerListener<ILcdView, ILcdLayer> onMapAdded
(Class<View> aViewClass, Consumer<ILcyGenericMapComponent<? extends View, ? extends ILcdLayer>> aMapComponentConsumer) Utility method to create a newILcyGenericMapManagerListener
which will triggeraMapComponentConsumer
each time the listener receives an event indicating a map has been added.onMapAdded
(Consumer<ILcyGenericMapComponent<? extends ILcdView, ? extends ILcdLayer>> aMapComponentConsumer) Utility method to create a newILcyGenericMapManagerListener
which will triggeraMapComponentConsumer
each time the listener receives an event indicating a map has been added.static <View extends ILcdView>
ILcyGenericMapManagerListener<ILcdView, ILcdLayer> onMapRemoved
(Class<View> aViewClass, Consumer<ILcyGenericMapComponent<? extends View, ? extends ILcdLayer>> aMapComponentConsumer) Utility method to create a newILcyGenericMapManagerListener
which will triggeraMapComponentConsumer
each time the listener receives an event indicating a map has been removed.onMapRemoved
(Consumer<ILcyGenericMapComponent<? extends ILcdView, ? extends ILcdLayer>> aMapComponentConsumer) Utility method to create a newILcyGenericMapManagerListener
which will triggeraMapComponentConsumer
each time the listener receives an event indicating a map has been removed.
-
Method Details
-
mapManagerChanged
This method will be invoked whenever theILcyGeneralMapManager
changes.- Parameters:
aMapManagerEvent
- The event describing the changes to theILcyGeneralMapManager
.
-
onMapAdded
static ILcyGenericMapManagerListener<ILcdView,ILcdLayer> onMapAdded(Consumer<ILcyGenericMapComponent<? extends ILcdView, ? extends ILcdLayer>> aMapComponentConsumer) Utility method to create a newILcyGenericMapManagerListener
which will triggeraMapComponentConsumer
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 newILcyGenericMapManagerListener
which will triggeraMapComponentConsumer
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 typeaViewClass
.- Type Parameters:
View
- The type of view. Typically an interface likeILcdGXYView
orILspView
.- Parameters:
aViewClass
- Only map components of which the view is an instance of this class will be passed toaMapComponentConsumer
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 newILcyGenericMapManagerListener
which will triggeraMapComponentConsumer
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 newILcyGenericMapManagerListener
which will triggeraMapComponentConsumer
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 typeaViewClass
.- Type Parameters:
View
- The type of view. Typically an interface likeILcdGXYView
orILspView
.- Parameters:
aViewClass
- Only map components of which the view is an instance of this class will be passed toaMapComponentConsumer
aMapComponentConsumer
- The consumer of the map component- Returns:
- a new
ILcyGenericMapManagerListener
- Since:
- 2017.0
-