org.deegree_impl.clients.wmsclient2.control
Class AbstractMapListener

java.lang.Object
  extended byorg.deegree_impl.enterprise.control.AbstractListener
      extended byorg.deegree_impl.clients.wmsclient2.control.AbstractMapListener
All Implemented Interfaces:
java.util.EventListener, WebListener
Direct Known Subclasses:
DynLegendListener, HighlightingInfoListener, HighlightingListener, InfoListener, PanListener, PrintListener, RecenterListener, RefreshListener, ResetListener, SelectStyleListener, ZoomInListener, ZoomOutListener

abstract class AbstractMapListener
extends AbstractListener

Basic class for all listerens that shall be notified if a map cliented raises an action/event.

There are several predefined listeres for actions that most map clients support: The user can additional listeners/action by extending the AbstractActionListener class or one of the predefined listener.

Each Listerner have to be registered to the MapListener which is the class that will be informed about each event/action within a map client. To register a class as listener it has to stored within the MapListener.ConfigurationFile.

---------------------------------------------------------------------

Version:
$Revision: 1.4 $ $Date: 2004/02/09 07:59:19 $
Author:
Andreas Poth

Field Summary
 
Fields inherited from class org.deegree_impl.enterprise.control.AbstractListener
 
Constructor Summary
(package private) AbstractMapListener()
           
 
Method Summary
 void actionPerformed(FormEvent event)
           
protected  double getScale(WMSGetMapRequest mrm)
          the method returns the scale of the map defined as diagonal size of a pixel at the center of the map.
protected  java.util.HashMap toMap(java.lang.String request)
          maps a string representation of a request to a HashMap
 
Methods inherited from class org.deegree_impl.enterprise.control.AbstractListener
getAlternativeNextPage, getNextPage, getRequest, getReturnValue, gotoErrorPage, handle, setAlternativeNextPage, setDefaultAlternativeNextPage, setDefaultNextPage, setNextPage, setReturnValue, toModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMapListener

AbstractMapListener()
Method Detail

actionPerformed

public void actionPerformed(FormEvent event)
Specified by:
actionPerformed in interface WebListener
Specified by:
actionPerformed in class AbstractListener
Parameters:
event -

toMap

protected java.util.HashMap toMap(java.lang.String request)
maps a string representation of a request to a HashMap


getScale

protected double getScale(WMSGetMapRequest mrm)
the method returns the scale of the map defined as diagonal size of a pixel at the center of the map.