public class MapControl.MapContextListener extends java.lang.Object implements AtomicEventListener
MapContextListener listens all events produced in a
MapControl's MapContext object during an atomic
period of time, and sets it to dirty, executing
drawMap(false), if any of the
following conditions is accomplished:
LayerEvent in the AtomicEvent
parameter notifies a visibility change.ColorEvent in the
AtomicEvent parameter.ExtentEvent in the
AtomicEvent parameter.LayerCollectionEvent in the
AtomicEvent parameter notifies that a driver's layer has
reloaded it successfully.LegendEvent in the
AtomicEvent parameter.SelectionEvent in the
AtomicEvent parameter.| Constructor and Description |
|---|
MapContextListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
atomicEvent(AtomicEvent e)
Called when is produced an
AtomicEvent in the buffer of MapControl. |
public void atomicEvent(AtomicEvent e)
AtomicEventListenerCalled when is produced an AtomicEvent in the buffer of MapControl.
atomicEvent in interface AtomicEventListenere - an atomic eventAtomicEventListener.atomicEvent(org.gvsig.fmap.mapcontext.events.AtomicEvent)