deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.graphics
Interface Layer

All Known Implementing Classes:
AbstractLayer, FeatureLayer, LazyFeatureLayer, LazyRasterLayer, OWSRasterLayer, RasterLayer

public interface Layer

A Layer is a collection of Features or rasters building a thematic 'unit' waterways or country borders for example. Features or raster can be added or removed from the layer. A Feature or raster can e changed by a modul of the application using the layer because only references to Features or rasters are stored within a layer.

------------------------------------------------------------------------

Version:
$Revision: 18195 $ $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Andreas Poth

Method Summary
 void addEventController(LayerEventController obj)
          adds an eventcontroller to the MapView that's responsible for handling events that targets the map.
 Envelope getBoundingBox()
          returns the BoundingBox (Envelope) of Layer.
 CoordinateSystem getCoordinatesSystem()
          returns the coordinate reference system of the MapView
 java.lang.String getName()
          returns the name of the layer
 void removeEventController(LayerEventController obj)
           
 void setCoordinatesSystem(CoordinateSystem crs)
          sets the coordinate reference system of the MapView.
 

Method Detail

getName

java.lang.String getName()
returns the name of the layer

Returns:
the name of the layer

getBoundingBox

Envelope getBoundingBox()
returns the BoundingBox (Envelope) of Layer. This is the BoundingBox of the layers data. The BoundingBox of the View maybe larger or smaler

Returns:
the BoundingBox (Envelope) of Layer

getCoordinatesSystem

CoordinateSystem getCoordinatesSystem()
returns the coordinate reference system of the MapView

Returns:
the coordinate reference system of the MapView

setCoordinatesSystem

void setCoordinatesSystem(CoordinateSystem crs)
                          throws java.lang.Exception
sets the coordinate reference system of the MapView. If a new crs is set all geometries of GeometryFeatures will be transformed to the new coordinate reference system.

Parameters:
crs - to set
Throws:
java.lang.Exception - if something went wrong

addEventController

void addEventController(LayerEventController obj)
adds an eventcontroller to the MapView that's responsible for handling events that targets the map. E.g.: zooming, panning, selecting a feature etc.

Parameters:
obj - an event controller

removeEventController

void removeEventController(LayerEventController obj)
Parameters:
obj - the eventcontroller to remove
See Also:
addEventController(LayerEventController)

deegree 2.5 (2011/06/29 09:44 build-8-official)

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