public class MapControl.MapContextListener extends 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 |
---|
MapControl.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)
AtomicEventListener
Called when is produced an AtomicEvent
in the buffer of MapControl
.
atomicEvent
in interface AtomicEventListener
e
- an atomic eventAtomicEventListener.atomicEvent(org.gvsig.fmap.mapcontext.events.AtomicEvent)