public static class LayerManager.LayerRemoveEvent extends LayerManager.LayerManagerEvent
Modifier and Type | Field and Description |
---|---|
private boolean |
lastLayer |
private Layer |
removedLayer |
private java.util.Collection<Layer> |
scheduleForRemoval |
Constructor and Description |
---|
LayerRemoveEvent(LayerManager source,
Layer removedLayer) |
Modifier and Type | Method and Description |
---|---|
Layer |
getRemovedLayer()
Gets the layer that is about to be removed.
|
boolean |
isLastLayer()
Check if the layer that was removed is the last layer in the list.
|
void |
scheduleRemoval(java.util.Collection<? extends Layer> layers)
Schedule the removal of other layers after this layer has been deleted.
|
java.lang.String |
toString() |
getSource
private final Layer removedLayer
private final boolean lastLayer
private final java.util.Collection<Layer> scheduleForRemoval
LayerRemoveEvent(LayerManager source, Layer removedLayer)
public Layer getRemovedLayer()
public boolean isLastLayer()
true
if this was the last layer.public void scheduleRemoval(java.util.Collection<? extends Layer> layers)
Dupplicate removal requests are ignored.
layers
- The layers to remove.public java.lang.String toString()
toString
in class java.lang.Object