org.deegree_impl.graphics
Class RasterLayer_Impl

java.lang.Object
  extended byorg.deegree_impl.graphics.Layer_Impl
      extended byorg.deegree_impl.graphics.RasterLayer_Impl
All Implemented Interfaces:
Layer, RasterLayer

class RasterLayer_Impl
extends Layer_Impl
implements RasterLayer

A RasterLayer represent a layer which data are contained within one single Image. The image/raster is geo-referenced by a GM_Envelope that is linked to it.

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

Version:
$Revision: 1.6 $ $Date: 2004/03/04 07:36:01 $
Author:
Andreas Poth

Field Summary
protected  GM_Envelope boundingbox
           
protected  CoordinateSystem crs
           
protected  CS_CoordinateSystem cs
           
protected  java.util.List eventController
           
protected  GC_GridCoverage raster
           
 
Constructor Summary
(package private) RasterLayer_Impl(java.lang.String name, GC_GridCoverage raster)
          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
 GC_GridCoverage getRaster()
          returns the image/raster that represents the layers data
 void removeEventController(LayerEventController obj)
           
 void setCoordinatesSystem(CS_CoordinateSystem crs)
          sets the coordinate reference system of the MapView.
 void setRaster(GC_GridCoverage raster)
          sets the image/raster that represents the layers data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

raster

protected GC_GridCoverage raster

cs

protected CS_CoordinateSystem cs

crs

protected CoordinateSystem crs

boundingbox

protected GM_Envelope boundingbox

eventController

protected java.util.List eventController
Constructor Detail

RasterLayer_Impl

RasterLayer_Impl(java.lang.String name,
                 GC_GridCoverage raster)
           throws java.lang.Exception
Creates a new Layer_Impl object.

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

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.

Specified by:
setCoordinatesSystem in interface Layer
Throws:
java.lang.Exception

getRaster

public GC_GridCoverage getRaster()
returns the image/raster that represents the layers data

Specified by:
getRaster in interface RasterLayer

setRaster

public void setRaster(GC_GridCoverage raster)
               throws java.lang.Exception
sets the image/raster that represents the layers data

Specified by:
setRaster in interface RasterLayer
Throws:
java.lang.Exception

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:
Layer_Impl.addEventController(LayerEventController)