deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.portal.standard.wms.control
Class RecenterToLayerListener

java.lang.Object
  extended by org.deegree.enterprise.control.AbstractListener
      extended by org.deegree.portal.standard.wms.control.RecenterToLayerListener
All Implemented Interfaces:
EventListener, WebListener

public class RecenterToLayerListener
extends AbstractListener

This class sets the bounding box of the portal to the bounding box of one selected layer as it is specified in the WMSCapabilities document of that layer. If the ScaleHint of the layer reduces the visible part of the layer's LatLonBoundingBox, then a new bounding box for this scale hint is calculated. Ohterwise the LatLonBoundingBox is used. The chosen bounding box is transformed to the portals crs and the portals aspect ratio of width and height.

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Serge N'Cho, Judit Mays, last edited by: $Author: mschneider $

Constructor Summary
RecenterToLayerListener()
           
 
Method Summary
 void actionPerformed(FormEvent event)
           
 
Methods inherited from class org.deegree.enterprise.control.AbstractListener
getAlternativeNextPage, getHomePath, getInitParameter, getInitParameterList, 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

RecenterToLayerListener

public RecenterToLayerListener()
Method Detail

actionPerformed

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

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org