public class LayerCollectionEvent extends FMapEvent
Event produced when a layer is been added or removed, or has been added or removed, or its visibility or activation state has changed from a collection of layers.
Modifier and Type | Field and Description |
---|---|
static int |
LAYER_ACTIVATION_CHANGED
Identifies this event as a action of change of the activation status of a layer.
|
static int |
LAYER_ADDED
Identifies this event as a action on a layer that has been added.
|
static int |
LAYER_ADDING
Identifies this event as a action on a layer that is being added.
|
static int |
LAYER_REMOVED
Identifies this event as a action on a layer that has been removed.
|
static int |
LAYER_REMOVING
Identifies this event as a action on a layer that is being removed.
|
static int |
LAYER_VISIBILITY_CHANGED
Identifies this event as a action of change of the visibility status of a layer.
|
Modifier | Constructor and Description |
---|---|
protected |
LayerCollectionEvent(FLayer lyr,
int eventType)
Creates a new layer collection event of the specified type.
|
Modifier and Type | Method and Description |
---|---|
static LayerCollectionEvent |
createLayerActivationEvent(FLayer lyr)
Creates a new layer collection event notifying a "layer activation changed" action.
|
static LayerCollectionEvent |
createLayerAddedEvent(FLayer lyr)
Creates a new layer collection event notifying a "layer added" action.
|
static LayerCollectionEvent |
createLayerAddingEvent(FLayer lyr)
Creates a new layer collection event notifying a "layer adding" action.
|
static LayerCollectionEvent |
createLayerRemovedEvent(FLayer lyr)
Creates a new layer collection event notifying a "layer removed" action.
|
static LayerCollectionEvent |
createLayerRemovingEvent(FLayer lyr)
Creates a new layer collection event notifying a "layer removing" action.
|
static LayerCollectionEvent |
createLayerVisibilityEvent(FLayer lyr)
Creates a new layer collection event notifying a "layer visibility changed" action.
|
FLayer |
getAffectedLayer()
Gets the layer that this event references.
|
FLayers |
getLayers()
Gets the collection of layers which the layer affected belongs.
|
getEventType, setEventType
public static final int LAYER_ADDED
Identifies this event as a action on a layer that has been added.
public static final int LAYER_REMOVED
Identifies this event as a action on a layer that has been removed.
public static final int LAYER_ADDING
Identifies this event as a action on a layer that is being added.
public static final int LAYER_REMOVING
Identifies this event as a action on a layer that is being removed.
public static final int LAYER_ACTIVATION_CHANGED
Identifies this event as a action of change of the activation status of a layer.
public static final int LAYER_VISIBILITY_CHANGED
Identifies this event as a action of change of the visibility status of a layer.
protected LayerCollectionEvent(FLayer lyr, int eventType)
Creates a new layer collection event of the specified type.
lyr
- layer affected by the actioneventType
- type of layer collection eventpublic static LayerCollectionEvent createLayerAddedEvent(FLayer lyr)
Creates a new layer collection event notifying a "layer added" action.
lyr
- layer affected by the actionpublic static LayerCollectionEvent createLayerRemovedEvent(FLayer lyr)
Creates a new layer collection event notifying a "layer removed" action.
lyr
- layer affected by the actionpublic static LayerCollectionEvent createLayerAddingEvent(FLayer lyr)
Creates a new layer collection event notifying a "layer adding" action.
lyr
- layer affected by the actionpublic static LayerCollectionEvent createLayerRemovingEvent(FLayer lyr)
Creates a new layer collection event notifying a "layer removing" action.
lyr
- layer affected by the actionpublic static LayerCollectionEvent createLayerActivationEvent(FLayer lyr)
Creates a new layer collection event notifying a "layer activation changed" action.
lyr
- layer affected by the actionpublic static LayerCollectionEvent createLayerVisibilityEvent(FLayer lyr)
Creates a new layer collection event notifying a "layer visibility changed" action.
lyr
- layer affected by the actionpublic FLayers getLayers()
Gets the collection of layers which the layer affected belongs.
public FLayer getAffectedLayer()
Gets the layer that this event references.