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

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

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.MapWindowPortletPerform

public class MapWindowPortletPerform
extends IGeoPortalPortletPerform

Since:
2.0
Version:
$Revision: 18195 $, 1.0. $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Andreas Poth, last edited by: $Author: mschneider $

Field Summary
(package private) static String INIT_FEATUREINFOTARGETPORTLET
           
(package private) static String INIT_HOMEBBOX
           
(package private) static String INIT_INITAL_GETMAP
           
(package private) static String INIT_PANBUTTONS
           
(package private) static String INIT_SCALEMAPTOPORTLETSIZE
           
(package private) static String PARAM_CLICKPOINT
           
(package private) static String PARAM_CURRENTFILAYER
           
(package private) static String PARAM_FACTOR
           
(package private) static String PARAM_HEIGHT
           
(package private) static String PARAM_MAPPOINT
           
(package private) static String PARAM_PANDIRECTION
           
(package private) static String PARAM_WIDTH
           
 
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
MapWindowPortletPerform(javax.servlet.http.HttpServletRequest request, org.apache.jetspeed.portal.Portlet portlet, javax.servlet.ServletContext sc)
          private constructor
 
Method Summary
 void buildNormalContext()
          this method will be called each time a portlet will be repainted.
(package private)  void doAddows()
          adds a new OWS to one of the WMC available a MapWindow TODO
(package private)  void doHistorybackward()
          move the map view (just bounding box) to the previous entry in the history
(package private)  void doHistoryforward()
          move the map view (just bounding box) to the next entry in the history
(package private)  void doRemoveows()
          removes an OWS from a MapWindow
(package private)  void moveDown()
          moves the layer passed through by the HTTP request down for one position
(package private)  void moveUp()
          moves the layer passed through by the HTTP request up for one position
(package private)  void pan()
          pan the map with a set factor to one of eight possible directions
(package private)  void recenter()
          recenters the current map to the point the user has clicked to
(package private)  void setCurrentFILayer()
          sets the name of the the layers that are activated for feature info requests in the uses WMC
(package private)  void setHomeBoundingbox()
          sets a new bounding box of the map read from the the request object passed when initialized an instance of MapWindowPortletPerfom
(package private)  void setMapSize()
          sets a new size of the map read from the request
(package private)  void zoom()
          zooms the current map by a factor and recenters it to the point the user has clicked to.
 
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
getInitParam, getMapPortletID, readMapContextID_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INIT_INITAL_GETMAP

static String INIT_INITAL_GETMAP

INIT_PANBUTTONS

static String INIT_PANBUTTONS

INIT_HOMEBBOX

static String INIT_HOMEBBOX

INIT_SCALEMAPTOPORTLETSIZE

static String INIT_SCALEMAPTOPORTLETSIZE

INIT_FEATUREINFOTARGETPORTLET

static String INIT_FEATUREINFOTARGETPORTLET

PARAM_WIDTH

static String PARAM_WIDTH

PARAM_HEIGHT

static String PARAM_HEIGHT

PARAM_CLICKPOINT

static String PARAM_CLICKPOINT

PARAM_MAPPOINT

static String PARAM_MAPPOINT

PARAM_FACTOR

static String PARAM_FACTOR

PARAM_PANDIRECTION

static String PARAM_PANDIRECTION

PARAM_CURRENTFILAYER

static String PARAM_CURRENTFILAYER
Constructor Detail

MapWindowPortletPerform

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

Parameters:
request -
portlet -
Method Detail

buildNormalContext

public void buildNormalContext()
                        throws PortalException
Description copied from class: AbstractPortletPerform
this method will be called each time a portlet will be repainted. It determines all portlets visible in a page and writes a Map with the portlets name as key and the portlets ID as value into the forwarded HttpRequest object

Overrides:
buildNormalContext in class AbstractPortletPerform
Throws:
PortalException

setHomeBoundingbox

void setHomeBoundingbox()
sets a new bounding box of the map read from the the request object passed when initialized an instance of MapWindowPortletPerfom


setMapSize

void setMapSize()
          throws PortalException
sets a new size of the map read from the request

Throws:
PortalException

zoom

void zoom()
    throws PortalException,
           ContextException
zooms the current map by a factor and recenters it to the point the user has clicked to.

Throws:
PortalException
ContextException

pan

void pan()
   throws PortalException,
          ContextException
pan the map with a set factor to one of eight possible directions

Throws:
PortalException
ContextException

recenter

void recenter()
        throws PortalException,
               ContextException
recenters the current map to the point the user has clicked to

Throws:
PortalException
ContextException

setCurrentFILayer

void setCurrentFILayer()
sets the name of the the layers that are activated for feature info requests in the uses WMC


moveUp

void moveUp()
      throws PortalException
moves the layer passed through by the HTTP request up for one position

Throws:
PortalException

moveDown

void moveDown()
        throws PortalException
moves the layer passed through by the HTTP request down for one position

Throws:
PortalException

doHistoryforward

void doHistoryforward()
move the map view (just bounding box) to the next entry in the history


doHistorybackward

void doHistorybackward()
move the map view (just bounding box) to the previous entry in the history


doAddows

void doAddows()
adds a new OWS to one of the WMC available a MapWindow TODO


doRemoveows

void doRemoveows()
removes an OWS from a MapWindow


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