org.deegree_impl.graphics
Class Layer_Impl

java.lang.Object
  extended byorg.deegree_impl.graphics.Layer_Impl
All Implemented Interfaces:
Layer
Direct Known Subclasses:
FeatureLayer_Impl, RasterLayer_Impl

abstract class Layer_Impl
extends java.lang.Object
implements 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.8 $ $Date: 2004/02/27 07:48:09 $
Author:
Andreas Poth

Field Summary
protected  GM_Envelope boundingbox
           
protected  CoordinateSystem crs
           
protected  CS_CoordinateSystem cs
           
protected  java.util.List eventController
           
private  java.lang.String name
           
 
Constructor Summary
(package private) Layer_Impl(java.lang.String name)
          creates a layer with EPSG:4326 as default coordinate system
(package private) Layer_Impl(java.lang.String name, CS_CoordinateSystem crs)
          Creates a new Layer_Impl object.
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.deegree.graphics.Layer
setCoordinatesSystem
 

Field Detail

cs

protected CS_CoordinateSystem cs

crs

protected CoordinateSystem crs

boundingbox

protected GM_Envelope boundingbox

eventController

protected java.util.List eventController

name

private java.lang.String name
Constructor Detail

Layer_Impl

Layer_Impl(java.lang.String name)
     throws java.lang.Exception
creates a layer with EPSG:4326 as default coordinate system


Layer_Impl

Layer_Impl(java.lang.String name,
           CS_CoordinateSystem crs)
     throws java.lang.Exception
Creates a new Layer_Impl object.

Parameters:
name -
crs -
Throws:
java.lang.Exception
Method Detail

getName

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

Specified by:
getName in interface 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

Specified by:
getBoundingBox in interface Layer

getCoordinatesSystem

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

Specified by:
getCoordinatesSystem in interface Layer

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.

Specified by:
addEventController in interface Layer

removeEventController

public void removeEventController(LayerEventController obj)
Specified by:
removeEventController in interface Layer
See Also:
addEventController(LayerEventController)