Class LayerEvent
- All Implemented Interfaces:
FMapEvent
Event produced when changes the visibility, activation, edition status, or the name of a layer.
- Author:
- Fernando González Cortés
-
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 of change of any property that affects to draw of the layer.static final intIdentifies this event as a action of change of the edition status of a layer.static final intIdentifies this event as a action of a change of the name of a layer.static final intIdentifies this event as a action of change of the visibility status of a layer. -
Method Summary
Modifier and TypeMethodDescriptionstatic LayerEventcreateActivationChangedEvent(FLyrDefault default1, String property) Creates a new layer event notifying an "activation changed" action.static LayerEventcreateDrawValuesChangedEvent(FLyrDefault default1, String property) static LayerEventcreateEditionChangedEvent(FLyrDefault default1, String property) Creates a new layer event notifying an "edition changed" action.static LayerEventcreateNameChangedEvent(FLyrDefault default1, String property) Creates a new layer event notifying an action of "change of the name of a layer".static LayerEventcreateVisibilityChangedEvent(FLyrDefault default1, String property) Creates a new layer event notifying a "visibility changed" action.Gets the property that has changed.Gets the layer affected.voidsetProperty(String property) Sets the property that has changed.voidSets the layer affected.Methods inherited from class org.gvsig.fmap.mapcontext.events.FMapEventBase
getEventType, setEventType
-
Field Details
-
VISIBILITY_CHANGED
public static final int VISIBILITY_CHANGEDIdentifies this event as a action of change of the visibility status of a layer.
- See Also:
-
ACTIVATION_CHANGED
public static final int ACTIVATION_CHANGEDIdentifies this event as a action of change of the activation status of a layer.
- See Also:
-
NAME_CHANGED
public static final int NAME_CHANGEDIdentifies this event as a action of a change of the name of a layer.
- See Also:
-
EDITION_CHANGED
public static final int EDITION_CHANGEDIdentifies this event as a action of change of the edition status of a layer.
- See Also:
-
DRAW_VALUES_CHANGED
public static final int DRAW_VALUES_CHANGEDIdentifies this event as a action of change of any property that affects to draw of the layer.
- See Also:
-
-
Method Details
-
createVisibilityChangedEvent
Creates a new layer event notifying a "visibility changed" action.
- Parameters:
default1- layer affected by the actionproperty- property that has changed- Returns:
- a new layer event
-
createActivationChangedEvent
Creates a new layer event notifying an "activation changed" action.
- Parameters:
default1- layer affected by the actionproperty- property that has changed- Returns:
- a new layer event
-
createDrawValuesChangedEvent
-
createNameChangedEvent
Creates a new layer event notifying an action of "change of the name of a layer".
- Parameters:
default1- layer affected by the actionproperty- property that has changed- Returns:
- a new layer event
-
createEditionChangedEvent
Creates a new layer event notifying an "edition changed" action.
- Parameters:
default1- layer affected by the actionproperty- property that has changed- Returns:
- a new layer event
-
getSource
Gets the layer affected.
- Returns:
- the layer affected
-
setSource
Sets the layer affected.
- Parameters:
the- layer affected
-
getProperty
Gets the property that has changed.
- Returns:
- the property that has changed
-
setProperty
Sets the property that has changed.
- Parameters:
the- property that has changed
-