deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.graphics.displayelements
Class RasterDisplayElement

java.lang.Object
  extended by org.deegree.graphics.displayelements.AbstractDisplayElement
      extended by org.deegree.graphics.displayelements.RasterDisplayElement
All Implemented Interfaces:
Serializable, DisplayElement

public class RasterDisplayElement
extends AbstractDisplayElement

Since:
2.0
Version:
$Revision: 18234 $, 1.0. $Revision: 18234 $, $Date: 2009-06-23 15:40:38 +0200 (Di, 23. Jun 2009) $
Author:
Andreas Poth, last edited by: $Author: apoth $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.deegree.graphics.displayelements.AbstractDisplayElement
feature
 
Constructor Summary
RasterDisplayElement(GridCoverage gc)
          Creates a new RasterDisplayElement_Impl object.
RasterDisplayElement(GridCoverage gc, RasterSymbolizer symbolizer)
          Creates a new RasterDisplayElement_Impl object.
RasterDisplayElement(GridCoverage gc, RasterSymbolizer symbolizer, GetMap request)
           
 
Method Summary
 boolean doesScaleConstraintApply(double scale)
          Returns whether the DisplayElement should be painted at the current scale or not.
 GridCoverage getRaster()
          returns the content of the RasterDisplayElement
 void paint(Graphics g, GeoTransform projection, double scale)
          renders the DisplayElement to the submitted graphic context
 void setRaster(GridCoverage gc)
          sets the grid coverage that represents the content of the RasterDisplayElement
 
Methods inherited from class org.deegree.graphics.displayelements.AbstractDisplayElement
getAssociateFeatureId, getFeature, isHighlighted, isSelected, setFeature, setHighlighted, setSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RasterDisplayElement

RasterDisplayElement(GridCoverage gc)
Creates a new RasterDisplayElement_Impl object.

Parameters:
gc - raster

RasterDisplayElement

RasterDisplayElement(GridCoverage gc,
                     RasterSymbolizer symbolizer)
Creates a new RasterDisplayElement_Impl object.

Parameters:
gc - raster
symbolizer -

RasterDisplayElement

RasterDisplayElement(GridCoverage gc,
                     RasterSymbolizer symbolizer,
                     GetMap request)
Method Detail

paint

public void paint(Graphics g,
                  GeoTransform projection,
                  double scale)
renders the DisplayElement to the submitted graphic context

Parameters:
g - graphics context to render to

getRaster

public GridCoverage getRaster()
returns the content of the RasterDisplayElement

Returns:
gird coverage

setRaster

public void setRaster(GridCoverage gc)
sets the grid coverage that represents the content of the RasterDisplayElement

Parameters:
gc -

doesScaleConstraintApply

public boolean doesScaleConstraintApply(double scale)
Description copied from class: AbstractDisplayElement
Returns whether the DisplayElement should be painted at the current scale or not.

Specified by:
doesScaleConstraintApply in interface DisplayElement
Specified by:
doesScaleConstraintApply in class AbstractDisplayElement
Parameters:
scale - scale to check
Returns:
true, if the DisplayElement has to be painted, false otherwise

deegree 2.3 (2010/04/09 10:10 build-4-official)

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