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

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

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

public class SimplePrintListener
extends AbstractSimplePrintListener

This class prints the View context. It inherits from AbstractSimplePrintListner and implement the abstract method getViewContext TODO The methods changeBBox(), changeLayerList(), extractBBox() are already implemented in AbstractContextListner. The question now is wether to inherit from AbstractContextListner instead of AbstractListner?

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

Constructor Summary
SimplePrintListener()
           
 
Method Summary
static void changeBBox(ViewContext vc, Envelope bbox)
          changes the bounding box of a given view context
protected  void changeLayerList(ViewContext vc, RPCMember[] rpcLayerList)
          changes the layer list of the ViewContext vc according to the information contained in the rpcLayerList
protected  Envelope extractBBox(RPCStruct bboxStruct, CoordinateSystem crs)
          Convenience method to extract the boundig box from an rpc fragment.
protected  ViewContext getViewContext(RPCWebEvent rpc)
          reads the view context to print from the users session
 
Methods inherited from class org.deegree.portal.common.control.AbstractSimplePrintListener
actionPerformed, calcScale, getUser, getVendorspecificParameters, validate
 
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

SimplePrintListener

public SimplePrintListener()
Method Detail

getViewContext

protected ViewContext getViewContext(RPCWebEvent rpc)
Description copied from class: AbstractSimplePrintListener
reads the view context to print from the users session

Specified by:
getViewContext in class AbstractSimplePrintListener
Returns:
the viewcontext defined by the rpc

extractBBox

protected Envelope extractBBox(RPCStruct bboxStruct,
                               CoordinateSystem crs)
Convenience method to extract the boundig box from an rpc fragment.

Parameters:
bboxStruct - the RPCStruct containing the bounding box. For example, <member><name>boundingBox</name>etc....
crs - a coordinate system value, may be null.
Returns:
an envelope with the boundaries defined in the rpc structure

changeLayerList

protected void changeLayerList(ViewContext vc,
                               RPCMember[] rpcLayerList)
                        throws PortalException
changes the layer list of the ViewContext vc according to the information contained in the rpcLayerList

Parameters:
vc - The original ViewContext where the changes will be applied to
rpcLayerList - the current layerlist
Throws:
PortalException

changeBBox

public static final void changeBBox(ViewContext vc,
                                    Envelope bbox)
                             throws PortalException
changes the bounding box of a given view context

Parameters:
vc - the view context to be changed
bbox - the new bounding box
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