org.deegree.graphics
Interface Layer

All Known Subinterfaces:
FeatureLayer
All Known Implementing Classes:
FeatureLayer_Impl, Layer_Impl

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: 1.6 $ $Date: 2004/03/11 08:25:33 $
Author:
Andreas Poth

Method Summary
 void addEventController(LayerEventController obj)
          adds an eventcontroller to the MapView that's reponsible for handling events that targets the map.
 GM_Envelope getBoundingBox()
          returns the BoundingBox (Envelope) of Layer.
 CS_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(CS_CoordinateSystem crs)
          sets the coordinate reference system of the MapView.
 

Method Detail

getName

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


getBoundingBox

public GM_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


getCoordinatesSystem

public CS_CoordinateSystem getCoordinatesSystem()
returns the coordinate reference system of the MapView


setCoordinatesSystem

public void setCoordinatesSystem(CS_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.

Throws:
java.lang.Exception

addEventController

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


removeEventController

public void removeEventController(LayerEventController obj)
See Also:
addEventController(LayerEventController)