Package org.gvsig.fmap.mapcontext.layers
Class LayerChangeSupport
java.lang.Object
org.gvsig.fmap.mapcontext.layers.LayerChangeSupport
Manages all legend listeners of a layer, notifying them any legend change event produced.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayerListener(LegendListener listener) Registers aLegendListener.voidNotifies a legend change to all legend listeners registered.voidremoveLayerListener(LegendListener listener) Removes a registeredLegendListener.
-
Constructor Details
-
LayerChangeSupport
public LayerChangeSupport()
-
-
Method Details
-
addLayerListener
Registers a
LegendListener.- Parameters:
listener- the legend listener
-
removeLayerListener
Removes a registered
LegendListener.- Parameters:
listener- the legend listener
-
callLegendChanged
Notifies a legend change to all legend listeners registered.
- Parameters:
e- a legend event with the new legend and events that compound this one
-