org.geotools.swing.event
Class MapPaneAdapter

java.lang.Object
  extended by org.geotools.swing.event.MapPaneAdapter
All Implemented Interfaces:
MapPaneListener

public class MapPaneAdapter
extends java.lang.Object
implements MapPaneListener

An adapter class that implements all of the method defined in the MapPaneListener interface as empty methods, allowing sub-classes to just override the methods they need.

Since:
2.6
Version:
$Id: MapPaneAdapter.java 34243 2009-10-26 07:07:08Z mbedward $
Author:
Michael Bedward

Constructor Summary
MapPaneAdapter()
           
 
Method Summary
 void onDisplayAreaChanged(MapPaneEvent ev)
          Called by the map pane when its display area has been changed e.g.
 void onNewContext(MapPaneEvent ev)
          Called by the map pane when a new map context has been set
 void onNewRenderer(MapPaneEvent ev)
          Called by the map pane when a new renderer has been set
 void onRenderingProgress(MapPaneEvent ev)
          Called by the map pane when it is rendering features.
 void onRenderingStarted(MapPaneEvent ev)
          Called by the map pane when it has started rendering features
 void onRenderingStopped(MapPaneEvent ev)
          Called by the map pane when it has stopped rendering features
 void onResized(MapPaneEvent ev)
          Called by the map pane when it has been resized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapPaneAdapter

public MapPaneAdapter()
Method Detail

onNewContext

public void onNewContext(MapPaneEvent ev)
Called by the map pane when a new map context has been set

Specified by:
onNewContext in interface MapPaneListener
Parameters:
ev - the event

onNewRenderer

public void onNewRenderer(MapPaneEvent ev)
Called by the map pane when a new renderer has been set

Specified by:
onNewRenderer in interface MapPaneListener
Parameters:
ev - the event

onResized

public void onResized(MapPaneEvent ev)
Called by the map pane when it has been resized

Specified by:
onResized in interface MapPaneListener
Parameters:
ev - the event

onDisplayAreaChanged

public void onDisplayAreaChanged(MapPaneEvent ev)
Called by the map pane when its display area has been changed e.g. by zooming or panning

Specified by:
onDisplayAreaChanged in interface MapPaneListener
Parameters:
ev - the event

onRenderingStarted

public void onRenderingStarted(MapPaneEvent ev)
Called by the map pane when it has started rendering features

Specified by:
onRenderingStarted in interface MapPaneListener
Parameters:
ev - the event

onRenderingStopped

public void onRenderingStopped(MapPaneEvent ev)
Called by the map pane when it has stopped rendering features

Specified by:
onRenderingStopped in interface MapPaneListener
Parameters:
ev - the event

onRenderingProgress

public void onRenderingProgress(MapPaneEvent ev)
Called by the map pane when it is rendering features. The event will be carrying data: a floating point value between 0 and 1 indicating rendering progress.

Specified by:
onRenderingProgress in interface MapPaneListener
Parameters:
ev - the event


Copyright © 1996-2010 Geotools. All Rights Reserved.