deegree 2.1 (2007/11/08 09:57 build-328-official)

org.deegree.portal.context
Class LayerExtension

java.lang.Object
  extended by org.deegree.portal.context.LayerExtension

public class LayerExtension
extends Object

provides additional information about a layer described in a web map context document. Additional description is not requiered so an instance of org.deegree_impl.clients.context.Layer may doesn't provide an instance of this class.

Version:
$Revision: 7981 $, $Date: 2007-08-10 16:49:29 +0200 (Fr, 10 Aug 2007) $
Author:
Andreas Poth, last edited by: $Author: apoth $

Field Summary
static int NONE
           
static int SESSIONID
           
static int USERPASSWORD
           
 
Constructor Summary
LayerExtension()
          default constructor
LayerExtension(DataService dataService, boolean masterLayer, double minScaleHint, double maxScaleHint, boolean selectedForQuery, int authentication, int parentNodeId, boolean showLegendGraphic)
          Creates a new LayerExtension object.
 
Method Summary
 void addVendorspecificParameter(String name, String value)
           
 int getAuthentication()
          returns a code for authentication to be used for service requests
 DataService getDataService()
          returns a description of the service/server behind a WMS layer.
 double getMaxScaleHint()
          returns the maximum sclae the layer is valid
 double getMinScaleHint()
          returns the minimum sclae the layer is valid
 int getParentNodeId()
          returns true the id of the node to which the layer belongs in the layertree
 boolean getShowLegendGraphic()
          returns true if the legendGraphic of the layer should be drawn in the layerlistview
 String getVendorspecificParameter(String name)
           
 Iterator<String> getVendorspecificParameterNames()
           
 boolean isMasterLayer()
          returns true if a layer is one of the main layers of an application; returns false if it just provides background or additional informations.
 boolean isSelectedForQuery()
          returns true if a layer is currently selected for being active for feature info requests
 void setAuthentication(int authentication)
           
 void setDataService(DataService dataService)
          sets a description of the service/server behind a WMS layer.
 void setMasterLayer(boolean masterLayer)
          set to true if a layer is one of the main layers of an application; set to false if it just provides background or additional informations.
 void setMaxScaleHint(double maxScaleHint)
          sets the maximum scale the layer is valid for
 void setMinScaleHint(double minScaleHint)
          sets the minimum scale the layer is valid for
 void setParentNodeId(int parentNodeId)
           
 void setSelectedForQuery(boolean selectedForFI)
          sets a layer to active for feature info requests
 void setShowLegendGraphic(boolean showLegendGraphic)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
See Also:
Constant Field Values

SESSIONID

public static final int SESSIONID
See Also:
Constant Field Values

USERPASSWORD

public static final int USERPASSWORD
See Also:
Constant Field Values
Constructor Detail

LayerExtension

public LayerExtension()
default constructor


LayerExtension

public LayerExtension(DataService dataService,
                      boolean masterLayer,
                      double minScaleHint,
                      double maxScaleHint,
                      boolean selectedForQuery,
                      int authentication,
                      int parentNodeId,
                      boolean showLegendGraphic)
Creates a new LayerExtension object.

Parameters:
dataService - description of the service/server behind a WMS layer
masterLayer - true if a layer is one of the main layers of an application; false if it just provides background or additional informations.
minScaleHint -
maxScaleHint -
selectedForQuery -
authentication -
Method Detail

getDataService

public DataService getDataService()
returns a description of the service/server behind a WMS layer. The returned value will be null if the WMS uses an internal mechanism to access a layers data.

Returns:
instance of DataService

setDataService

public void setDataService(DataService dataService)
sets a description of the service/server behind a WMS layer. The returned value will be null if the WMS uses an internal mechanism to access a layers data.

Parameters:
dataService -

isMasterLayer

public boolean isMasterLayer()
returns true if a layer is one of the main layers of an application; returns false if it just provides background or additional informations.

Returns:

setMasterLayer

public void setMasterLayer(boolean masterLayer)
set to true if a layer is one of the main layers of an application; set to false if it just provides background or additional informations.

Parameters:
masterLayer -

getMaxScaleHint

public double getMaxScaleHint()
returns the maximum sclae the layer is valid

Returns:
maximum scale hint

setMaxScaleHint

public void setMaxScaleHint(double maxScaleHint)
sets the maximum scale the layer is valid for

Parameters:
maxScaleHint -

getMinScaleHint

public double getMinScaleHint()
returns the minimum sclae the layer is valid

Returns:
minimum scale hint

setMinScaleHint

public void setMinScaleHint(double minScaleHint)
sets the minimum scale the layer is valid for

Parameters:
minScaleHint -

isSelectedForQuery

public boolean isSelectedForQuery()
returns true if a layer is currently selected for being active for feature info requests

Returns:
true if a layer is currently selected for being active for feature info requests

setSelectedForQuery

public void setSelectedForQuery(boolean selectedForFI)
sets a layer to active for feature info requests

Parameters:
selectedForFI -

getAuthentication

public int getAuthentication()
returns a code for authentication to be used for service requests

Returns:
a code for authentication to be used for service requests

setAuthentication

public void setAuthentication(int authentication)
Parameters:
authentication -
See Also:
getAuthentication()

getShowLegendGraphic

public boolean getShowLegendGraphic()
returns true if the legendGraphic of the layer should be drawn in the layerlistview

Returns:
true if the legendGraphic of the layer should be drawn in the layerlistview

getParentNodeId

public int getParentNodeId()
returns true the id of the node to which the layer belongs in the layertree

Returns:
true the id of the node to which the layer belongs in the layertree

setShowLegendGraphic

public void setShowLegendGraphic(boolean showLegendGraphic)
Parameters:
showLegendGraphic -

setParentNodeId

public void setParentNodeId(int parentNodeId)
Parameters:
parentNodeId -

addVendorspecificParameter

public void addVendorspecificParameter(String name,
                                       String value)
Parameters:
name -
value -

getVendorspecificParameter

public String getVendorspecificParameter(String name)
Parameters:
name -
Returns:

getVendorspecificParameterNames

public Iterator<String> getVendorspecificParameterNames()
Returns:

deegree 2.1 (2007/11/08 09:57 build-328-official)

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