org.deegree.portal.standard.wms.control
Class RecenterToLayerListener
java.lang.Object
org.deegree.enterprise.control.AbstractListener
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 $
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 |
RecenterToLayerListener
public RecenterToLayerListener()
actionPerformed
public void actionPerformed(FormEvent event)
- Specified by:
actionPerformed
in interface WebListener
- Specified by:
actionPerformed
in class AbstractListener
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org