Class MapLayerEvent

  • All Implemented Interfaces:
    Serializable

    public class MapLayerEvent
    extends EventObject
    Event fired when some Layer property changes.
    Author:
    Andrea Aime, Ian Turton, Martin Desruisseaux
    See Also:
    Layer, MapLayerListener, Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int DATA_CHANGED
      Flag set when the data attached to this layer changed.
      static int FILTER_CHANGED
      Flag set when the definition query attached to this layer changed.
      static int METADATA_CHANGED
      Flag set when the some metadata (like the title) changes
      static int PRE_DISPOSE
      Flag set when the layer is about to be disposed.
      static int SELECTION_CHANGED
      Flag set when the layer selection status is changed.
      static int STYLE_CHANGED
      Flag set when the style attached to this layer changed.
      static int VISIBILITY_CHANGED
      Flag set when the layer visibility changed.
      • Fields inherited from class EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      MapLayerEvent​(Object source, int reason)
      Creates a new instance of LayerEvent with the specified reason.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getReason()
      Returns the reason why this event is fired.
      • Methods inherited from class EventObject

        getSource, toString
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MapLayerEvent

        public MapLayerEvent​(Object source,
                             int reason)
                      throws IllegalArgumentException
        Creates a new instance of LayerEvent with the specified reason.
        Parameters:
        source - The source of the event change.
        reason - Why the event was fired.
        Throws:
        IllegalArgumentException - If the reason is not a valid enum.
    • Method Detail

      • getReason

        public int getReason()
        Returns the reason why this event is fired. It is one of VISIBILITY_CHANGED or #TITLE_CHANGED constants.