public interface ILcyGenericMapManagerListener<S extends ILcdView,T extends ILcdLayer> extends EventListener
TLcyGenericMapManager
.TLcyGenericMapManager
Modifier and Type | Method and Description |
---|---|
void |
mapManagerChanged(TLcyGenericMapManagerEvent<? extends S,? extends T> aMapManagerEvent)
This method will be invoked whenever the
ILcyGeneralMapManager
changes. |
static <View extends ILcdView> |
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. |
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. |
static <View extends ILcdView> |
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. |
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. |
void mapManagerChanged(TLcyGenericMapManagerEvent<? extends S,? extends T> aMapManagerEvent)
ILcyGeneralMapManager
changes.aMapManagerEvent
- The event describing the changes to the
ILcyGeneralMapManager
.static ILcyGenericMapManagerListener<ILcdView,ILcdLayer> onMapAdded(Consumer<ILcyGenericMapComponent<? extends ILcdView,? extends ILcdLayer>> aMapComponentConsumer)
ILcyGenericMapManagerListener
which will trigger aMapComponentConsumer
each time the listener receives an event indicating a map has been added.aMapComponentConsumer
- The consumer of the map componentILcyGenericMapManagerListener
static <View extends ILcdView> ILcyGenericMapManagerListener<ILcdView,ILcdLayer> onMapAdded(Class<View> aViewClass, Consumer<ILcyGenericMapComponent<? extends View,? extends ILcdLayer>> aMapComponentConsumer)
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
.View
- The type of view. Typically an interface like ILcdGXYView
or ILspView
.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 componentILcyGenericMapManagerListener
static ILcyGenericMapManagerListener<ILcdView,ILcdLayer> onMapRemoved(Consumer<ILcyGenericMapComponent<? extends ILcdView,? extends ILcdLayer>> aMapComponentConsumer)
ILcyGenericMapManagerListener
which will trigger aMapComponentConsumer
each time the listener receives an event indicating a map has been removed.aMapComponentConsumer
- The consumer of the map componentILcyGenericMapManagerListener
static <View extends ILcdView> ILcyGenericMapManagerListener<ILcdView,ILcdLayer> onMapRemoved(Class<View> aViewClass, Consumer<ILcyGenericMapComponent<? extends View,? extends ILcdLayer>> aMapComponentConsumer)
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
.View
- The type of view. Typically an interface like ILcdGXYView
or ILspView
.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 componentILcyGenericMapManagerListener