Class LayerEvent

java.lang.Object
org.gvsig.fmap.mapcontext.events.FMapEventBase
org.gvsig.fmap.mapcontext.layers.LayerEvent
All Implemented Interfaces:
FMapEvent

public class LayerEvent extends FMapEventBase

Event produced when changes the visibility, activation, edition status, or the name of a layer.

Author:
Fernando González Cortés
  • Field Details

    • VISIBILITY_CHANGED

      public static final int VISIBILITY_CHANGED

      Identifies this event as a action of change of the visibility status of a layer.

      See Also:
    • ACTIVATION_CHANGED

      public static final int ACTIVATION_CHANGED

      Identifies this event as a action of change of the activation status of a layer.

      See Also:
    • NAME_CHANGED

      public static final int NAME_CHANGED

      Identifies this event as a action of a change of the name of a layer.

      See Also:
    • EDITION_CHANGED

      public static final int EDITION_CHANGED

      Identifies 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_CHANGED

      Identifies this event as a action of change of any property that affects to draw of the layer.

      See Also:
  • Method Details

    • createVisibilityChangedEvent

      public static LayerEvent createVisibilityChangedEvent(FLyrDefault default1, String property)

      Creates a new layer event notifying a "visibility changed" action.

      Parameters:
      default1 - layer affected by the action
      property - property that has changed
      Returns:
      a new layer event
    • createActivationChangedEvent

      public static LayerEvent createActivationChangedEvent(FLyrDefault default1, String property)

      Creates a new layer event notifying an "activation changed" action.

      Parameters:
      default1 - layer affected by the action
      property - property that has changed
      Returns:
      a new layer event
    • createDrawValuesChangedEvent

      public static LayerEvent createDrawValuesChangedEvent(FLyrDefault default1, String property)
    • createNameChangedEvent

      public static LayerEvent createNameChangedEvent(FLyrDefault default1, String property)

      Creates a new layer event notifying an action of "change of the name of a layer".

      Parameters:
      default1 - layer affected by the action
      property - property that has changed
      Returns:
      a new layer event
    • createEditionChangedEvent

      public static LayerEvent createEditionChangedEvent(FLyrDefault default1, String property)

      Creates a new layer event notifying an "edition changed" action.

      Parameters:
      default1 - layer affected by the action
      property - property that has changed
      Returns:
      a new layer event
    • getSource

      public FLayer getSource()

      Gets the layer affected.

      Returns:
      the layer affected
    • setSource

      public void setSource(FLayer source)

      Sets the layer affected.

      Parameters:
      the - layer affected
    • getProperty

      public String getProperty()

      Gets the property that has changed.

      Returns:
      the property that has changed
    • setProperty

      public void setProperty(String property)

      Sets the property that has changed.

      Parameters:
      the - property that has changed