public class LayerChangeSupport
extends java.lang.Object
Manages all legend listeners of a layer, notifying them any legend change event produced.
Constructor and Description |
---|
LayerChangeSupport() |
Modifier and Type | Method and Description |
---|---|
void |
addLayerListener(LegendListener listener)
Registers a
LegendListener . |
void |
callLegendChanged(LegendChangedEvent e)
Notifies a legend change to all legend listeners registered.
|
void |
removeLayerListener(LegendListener listener)
Removes a registered
LegendListener . |
public void addLayerListener(LegendListener listener)
Registers a LegendListener
.
listener
- the legend listenerpublic void removeLayerListener(LegendListener listener)
Removes a registered LegendListener
.
listener
- the legend listenerpublic void callLegendChanged(LegendChangedEvent e)
Notifies a legend change to all legend listeners registered.
e
- a legend event with the new legend and events that compound this one