Class LayerCollectionEvent
- All Implemented Interfaces:
FMapEvent
- Direct Known Subclasses:
LayerPositionEvent
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.
- Author:
- Vicente Caballero Navarro
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifies this event as a action of change of the activation status of a layer.static final intIdentifies this event as a action on a layer that has been added.static final intIdentifies this event as a action on a layer that is being added.static final intIdentifies this event as a action on a layer that has been removed.static final intIdentifies this event as a action on a layer that is being removed.static final intIdentifies this event as a action of change of the visibility status of a layer. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLayerCollectionEvent(FLayer lyr, int eventType) Creates a new layer collection event of the specified type. -
Method Summary
Modifier and TypeMethodDescriptionstatic LayerCollectionEventCreates a new layer collection event notifying a "layer activation changed" action.static LayerCollectionEventCreates a new layer collection event notifying a "layer added" action.static LayerCollectionEventCreates a new layer collection event notifying a "layer adding" action.static LayerCollectionEventCreates a new layer collection event notifying a "layer removed" action.static LayerCollectionEventCreates a new layer collection event notifying a "layer removing" action.static LayerCollectionEventCreates a new layer collection event notifying a "layer visibility changed" action.Gets the layer that this event references.Gets the collection of layers which the layer affected belongs.Methods inherited from class org.gvsig.fmap.mapcontext.events.FMapEventBase
getEventType, setEventType
-
Field Details
-
LAYER_ADDED
public static final int LAYER_ADDEDIdentifies this event as a action on a layer that has been added.
- See Also:
-
LAYER_REMOVED
public static final int LAYER_REMOVEDIdentifies this event as a action on a layer that has been removed.
- See Also:
-
LAYER_ADDING
public static final int LAYER_ADDINGIdentifies this event as a action on a layer that is being added.
- See Also:
-
LAYER_REMOVING
public static final int LAYER_REMOVINGIdentifies this event as a action on a layer that is being removed.
- See Also:
-
LAYER_ACTIVATION_CHANGED
public static final int LAYER_ACTIVATION_CHANGEDIdentifies this event as a action of change of the activation status of a layer.
- See Also:
-
LAYER_VISIBILITY_CHANGED
public static final int LAYER_VISIBILITY_CHANGEDIdentifies this event as a action of change of the visibility status of a layer.
- See Also:
-
-
Constructor Details
-
LayerCollectionEvent
Creates a new layer collection event of the specified type.
- Parameters:
lyr- layer affected by the actioneventType- type of layer collection event
-
-
Method Details
-
createLayerAddedEvent
Creates a new layer collection event notifying a "layer added" action.
- Parameters:
lyr- layer affected by the action- Returns:
- a new layer collection event
-
createLayerRemovedEvent
Creates a new layer collection event notifying a "layer removed" action.
- Parameters:
lyr- layer affected by the action- Returns:
- a new layer collection event
-
createLayerAddingEvent
Creates a new layer collection event notifying a "layer adding" action.
- Parameters:
lyr- layer affected by the action- Returns:
- a new layer collection event
-
createLayerRemovingEvent
Creates a new layer collection event notifying a "layer removing" action.
- Parameters:
lyr- layer affected by the action- Returns:
- a new layer collection event
-
createLayerActivationEvent
Creates a new layer collection event notifying a "layer activation changed" action.
- Parameters:
lyr- layer affected by the action- Returns:
- a new layer collection event
-
createLayerVisibilityEvent
Creates a new layer collection event notifying a "layer visibility changed" action.
- Parameters:
lyr- layer affected by the action- Returns:
- a new layer collection event
-
getLayers
Gets the collection of layers which the layer affected belongs.
- Returns:
- the collection of layers affected
-
getAffectedLayer
Gets the layer that this event references.
- Returns:
- the layer that this event references
-