Class LayerChangeSupport

java.lang.Object
org.gvsig.fmap.mapcontext.layers.LayerChangeSupport

public class LayerChangeSupport extends Object

Manages all legend listeners of a layer, notifying them any legend change event produced.

  • Constructor Details

    • LayerChangeSupport

      public LayerChangeSupport()
  • Method Details

    • addLayerListener

      public void addLayerListener(LegendListener listener)

      Registers a LegendListener.

      Parameters:
      listener - the legend listener
    • removeLayerListener

      public void removeLayerListener(LegendListener listener)

      Removes a registered LegendListener.

      Parameters:
      listener - the legend listener
    • callLegendChanged

      public void callLegendChanged(LegendChangedEvent e)

      Notifies a legend change to all legend listeners registered.

      Parameters:
      e - a legend event with the new legend and events that compound this one