org.geotools.map.event
Class MapAdapter

Object
  extended by MapAdapter
All Implemented Interfaces:
EventListener, MapBoundsListener, MapLayerListListener

public abstract class MapAdapter
extends Object
implements MapBoundsListener, MapLayerListListener

An abstract adapter class to receive events about map bounds and layer changes. All of the methods are empty. This class exists as convenience for creating listener objects.

Since:
8.0
Author:
Michael Bedward

Constructor Summary
MapAdapter()
           
 
Method Summary
 void layerAdded(MapLayerListEvent event)
          Triggered when a new layer is added to the MapContext
 void layerChanged(MapLayerListEvent event)
          Triggered when something in a layer changed (data, style, title)
 void layerMoved(MapLayerListEvent event)
          Triggered when a group of layers chenges position in the layer list
 void layerPreDispose(MapLayerListEvent event)
          Triggered when a layer is about to be disposed.
 void layerRemoved(MapLayerListEvent event)
          Triggered when a layer is removed from the MapContext
 void mapBoundsChanged(MapBoundsEvent event)
          Invoked when the area of interest or the coordinate system changes.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapAdapter

public MapAdapter()
Method Detail

mapBoundsChanged

public void mapBoundsChanged(MapBoundsEvent event)
Description copied from interface: MapBoundsListener
Invoked when the area of interest or the coordinate system changes.

Specified by:
mapBoundsChanged in interface MapBoundsListener
Parameters:
event - The change event.

layerAdded

public void layerAdded(MapLayerListEvent event)
Description copied from interface: MapLayerListListener
Triggered when a new layer is added to the MapContext

Specified by:
layerAdded in interface MapLayerListListener
Parameters:
event - encapsulating the event information

layerRemoved

public void layerRemoved(MapLayerListEvent event)
Description copied from interface: MapLayerListListener
Triggered when a layer is removed from the MapContext

Specified by:
layerRemoved in interface MapLayerListListener
Parameters:
event - encapsulating the event information

layerChanged

public void layerChanged(MapLayerListEvent event)
Description copied from interface: MapLayerListListener
Triggered when something in a layer changed (data, style, title)

Specified by:
layerChanged in interface MapLayerListListener
Parameters:
event - encapsulating the event information

layerMoved

public void layerMoved(MapLayerListEvent event)
Description copied from interface: MapLayerListListener
Triggered when a group of layers chenges position in the layer list

Specified by:
layerMoved in interface MapLayerListListener
Parameters:
event - encapsulating the event information

layerPreDispose

public void layerPreDispose(MapLayerListEvent event)
Description copied from interface: MapLayerListListener
Triggered when a layer is about to be disposed.

Specified by:
layerPreDispose in interface MapLayerListListener
Parameters:
event - encapsulating the event information


Copyright © 1996-2014 Geotools. All Rights Reserved.