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

org.deegree.portal.portlet.modules.map.actions.portlets
Class CRSChooserPortletPerform

java.lang.Object
  extended by org.deegree.portal.portlet.modules.actions.AbstractPortletPerform
      extended by org.deegree.portal.portlet.modules.actions.IGeoPortalPortletPerform
          extended by org.deegree.portal.portlet.modules.map.actions.portlets.CRSChooserPortletPerform

public class CRSChooserPortletPerform
extends IGeoPortalPortletPerform

This Perform class takes care of changing the WMC's bounding box based on a scale paramter. The parameter is passed in the request. The paramter name is defined by the static member NEW_SCALE_VALUE

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Ugo Taddei, last edited by: $Author: mschneider $

Field Summary
static String AVAILABLE_CRS
           
static String AVAILABLE_CRS_NAMES
           
static String REQUESTED_CRS
           
 
Fields inherited from class org.deegree.portal.portlet.modules.actions.IGeoPortalPortletPerform
PARAM_BBOX, PARAM_LAYER, PARAM_MAPMODE, PARAM_SESSIONID, PARAM_STYLE, sc, SESSION_HISTORY, SESSION_HISTORYPOSITION, vcMap
 
Fields inherited from class org.deegree.portal.portlet.modules.actions.AbstractPortletPerform
AVAILABLE_WMC, CURRENT_WMC, CURRENT_WMC_NAME, INIT_MAPPORTLETID, INIT_WMC, PARAM_MAPACTION, PARAM_MAPPORTLET, PARAM_MODE, parameter, portlet, request, SESSION_CURRENTFILAYER, SESSION_HOME, SESSION_VIEWCONTEXT
 
Constructor Summary
CRSChooserPortletPerform(javax.servlet.http.HttpServletRequest request, org.apache.jetspeed.portal.Portlet portlet, javax.servlet.ServletContext sc)
          private constructor
 
Method Summary
(package private)  void doCRSChange()
          Changes the CRS of the current ViewContext.
(package private)  void readInitParameter()
          TODO reads the init parameters of the portlet and build the scale list
 
Methods inherited from class org.deegree.portal.portlet.modules.actions.IGeoPortalPortletPerform
getCurrentMapContextName, getCurrentMapContextName, getCurrentViewContext, getCurrentViewContext, getNamedViewContext, getNamedViewContext, setBoundingBox, setBoundingBox, setBoundingBoxFromBBOXParam, setCurrentMapContext, setCurrentMapContext, setCurrentMapContextName, setCurrentMapContextName, setLayers, setMode, setNameContext, setNameContext, updateContext
 
Methods inherited from class org.deegree.portal.portlet.modules.actions.AbstractPortletPerform
buildNormalContext, getInitParam, getMapPortletID, readMapContextID_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUESTED_CRS

public static final String REQUESTED_CRS
See Also:
Constant Field Values

AVAILABLE_CRS

public static final String AVAILABLE_CRS
See Also:
Constant Field Values

AVAILABLE_CRS_NAMES

public static final String AVAILABLE_CRS_NAMES
See Also:
Constant Field Values
Constructor Detail

CRSChooserPortletPerform

CRSChooserPortletPerform(javax.servlet.http.HttpServletRequest request,
                         org.apache.jetspeed.portal.Portlet portlet,
                         javax.servlet.ServletContext sc)
private constructor

Parameters:
request -
portlet -
sc -
Method Detail

readInitParameter

void readInitParameter()
                 throws PortalException
TODO reads the init parameters of the portlet and build the scale list

Throws:
PortalException

doCRSChange

void doCRSChange()
           throws PortalException
Changes the CRS of the current ViewContext. The CRS value is in the parameter under the 'REQUESTED_CRS' key.

Throws:
PortalException

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