public class LayerEvent extends FMapEvent
Event produced when changes the visibility, activation, edition status, or the name of a layer.
Modifier and Type | Field and Description |
---|---|
static int |
ACTIVATION_CHANGED
Identifies this event as a action of change of the activation status of a layer.
|
static int |
DRAW_VALUES_CHANGED
Identifies this event as a action of change of any property that affects to draw of the layer.
|
static int |
EDITION_CHANGED
Identifies this event as a action of change of the edition status of a layer.
|
static int |
NAME_CHANGED
Identifies this event as a action of a change of the name of a layer.
|
static int |
VISIBILITY_CHANGED
Identifies this event as a action of change of the visibility status of a layer.
|
Modifier and Type | Method and Description |
---|---|
static LayerEvent |
createActivationChangedEvent(FLyrDefault default1,
String property)
Creates a new layer event notifying an "activation changed" action.
|
static LayerEvent |
createDrawValuesChangedEvent(FLyrDefault default1,
String property) |
static LayerEvent |
createEditionChangedEvent(FLyrDefault default1,
String property)
Creates a new layer event notifying an "edition changed" action.
|
static LayerEvent |
createNameChangedEvent(FLyrDefault default1,
String property)
Creates a new layer event notifying an action of "change of the name of a layer".
|
static LayerEvent |
createVisibilityChangedEvent(FLyrDefault default1,
String property)
Creates a new layer event notifying a "visibility changed" action.
|
String |
getProperty()
Gets the property that has changed.
|
FLayer |
getSource()
Gets the layer affected.
|
void |
setProperty(String property)
Sets the property that has changed.
|
void |
setSource(FLayer source)
Sets the layer affected.
|
getEventType, setEventType
public static final int VISIBILITY_CHANGED
Identifies this event as a action of change of the visibility status of a layer.
public static final int ACTIVATION_CHANGED
Identifies this event as a action of change of the activation status of a layer.
public static final int NAME_CHANGED
Identifies this event as a action of a change of the name of a layer.
public static final int EDITION_CHANGED
Identifies this event as a action of change of the edition status of a layer.
public static final int DRAW_VALUES_CHANGED
Identifies this event as a action of change of any property that affects to draw of the layer.
public static LayerEvent createVisibilityChangedEvent(FLyrDefault default1, String property)
Creates a new layer event notifying a "visibility changed" action.
default1
- layer affected by the actionproperty
- property that has changedpublic static LayerEvent createActivationChangedEvent(FLyrDefault default1, String property)
Creates a new layer event notifying an "activation changed" action.
default1
- layer affected by the actionproperty
- property that has changedpublic static LayerEvent createDrawValuesChangedEvent(FLyrDefault default1, String property)
public static LayerEvent createNameChangedEvent(FLyrDefault default1, String property)
Creates a new layer event notifying an action of "change of the name of a layer".
default1
- layer affected by the actionproperty
- property that has changedpublic static LayerEvent createEditionChangedEvent(FLyrDefault default1, String property)
Creates a new layer event notifying an "edition changed" action.
default1
- layer affected by the actionproperty
- property that has changedpublic FLayer getSource()
Gets the layer affected.
public void setSource(FLayer source)
Sets the layer affected.
the
- layer affectedpublic String getProperty()
Gets the property that has changed.
public void setProperty(String property)
Sets the property that has changed.
the
- property that has changed