org.deegree_impl.graphics.displayelements
Class RasterDisplayElement_Impl

java.lang.Object
  extended byorg.deegree_impl.graphics.displayelements.DisplayElement_Impl
      extended byorg.deegree_impl.graphics.displayelements.RasterDisplayElement_Impl
All Implemented Interfaces:
DisplayElement, RasterDisplayElement, java.io.Serializable

public class RasterDisplayElement_Impl
extends DisplayElement_Impl
implements RasterDisplayElement

Version:
$Revision: 1.7 $
Author:
Andreas Poth
See Also:
Serialized Form

Field Summary
protected  Feature feature
           
private  GC_GridCoverage gc
           
private  RasterSymbolizer symbolizer
           
 
Constructor Summary
(package private) RasterDisplayElement_Impl(GC_GridCoverage gc)
          Creates a new RasterDisplayElement_Impl object.
(package private) RasterDisplayElement_Impl(GC_GridCoverage gc, RasterSymbolizer symbolizer)
          Creates a new RasterDisplayElement_Impl object.
 
Method Summary
 boolean doesScaleConstraintApply(double scale)
          Returns if the DisplayElement should be painted at the current scale or not.
 java.lang.String getAssociateFeatureId()
          returns the id of the feature that's associated with the DisplayElement
 Feature getFeature()
          Returns the associated Feature.
 GC_GridCoverage getRaster()
          returns the content of the RasterDisplayElement
 boolean isHighlighted()
          returns if the DisplayElement is highlighted or not.
 boolean isSelected()
          returns if the DisplayElement is selected or not
 void paint(java.awt.Graphics g, GeoTransform projection)
          renders the DisplayElement to the submitted graphic context
 void setHighlighted(boolean highlighted)
          marks the DisplayElement as highlighted or not
 void setRaster(GC_GridCoverage gc)
          sets the grid coverage that represents the content of the RasterDisplayElement
 void setSelected(boolean selected)
          marks a DisplayElement as selected or not
 
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.displayelements.DisplayElement
doesScaleConstraintApply, getAssociateFeatureId, getFeature, isHighlighted, isSelected, setHighlighted, setSelected
 

Field Detail

symbolizer

private RasterSymbolizer symbolizer

gc

private GC_GridCoverage gc

feature

protected Feature feature
Constructor Detail

RasterDisplayElement_Impl

RasterDisplayElement_Impl(GC_GridCoverage gc)
Creates a new RasterDisplayElement_Impl object.

Parameters:
gc - raster

RasterDisplayElement_Impl

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

Parameters:
gc - raster
symbolizer -
Method Detail

paint

public void paint(java.awt.Graphics g,
                  GeoTransform projection)
renders the DisplayElement to the submitted graphic context

Specified by:
paint in interface DisplayElement
Specified by:
paint in class DisplayElement_Impl

getRaster

public GC_GridCoverage getRaster()
returns the content of the RasterDisplayElement

Specified by:
getRaster in interface RasterDisplayElement
Returns:

setRaster

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

Specified by:
setRaster in interface RasterDisplayElement
Parameters:
gc -

getFeature

public Feature getFeature()
Returns the associated Feature.

Specified by:
getFeature in interface DisplayElement

getAssociateFeatureId

public java.lang.String getAssociateFeatureId()
returns the id of the feature that's associated with the DisplayElement

Specified by:
getAssociateFeatureId in interface DisplayElement

setSelected

public void setSelected(boolean selected)
marks a DisplayElement as selected or not

Specified by:
setSelected in interface DisplayElement

isSelected

public boolean isSelected()
returns if the DisplayElement is selected or not

Specified by:
isSelected in interface DisplayElement

setHighlighted

public void setHighlighted(boolean highlighted)
marks the DisplayElement as highlighted or not

Specified by:
setHighlighted in interface DisplayElement

isHighlighted

public boolean isHighlighted()
returns if the DisplayElement is highlighted or not.

Specified by:
isHighlighted in interface DisplayElement

doesScaleConstraintApply

public boolean doesScaleConstraintApply(double scale)
Returns if the DisplayElement should be painted at the current scale or not.

Specified by:
doesScaleConstraintApply in interface DisplayElement