org.deegree.graphics.displayelements
Interface DisplayElement

All Known Subinterfaces:
GeometryDisplayElement, LabelDisplayElement, LineStringDisplayElement, LocalizedDisplayElement, MapDiagram, PointDisplayElement, PolygonDisplayElement, RasterDisplayElement
All Known Implementing Classes:
DisplayElement_Impl, GeometryDisplayElement_Impl, LabelDisplayElement_Impl, LineStringDisplayElement_Impl, LocalizedDisplayElement_Impl, MapDiagram_Impl, PointDisplayElement_Impl, PolygonDisplayElement_Impl, RasterDisplayElement_Impl

public interface DisplayElement

Basic interface of all display elements. A DisplayElement is associated to one feature that may have a geometry property or not (usually it has).

Version:
$Revision: 1.6 $ $Date: 2004/02/09 07:57:01 $
Author:
Andreas Poth, Markus Schneider

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 thr feature that's associated with the DisplayElement
 Feature getFeature()
          Returns the associated Feature.
 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 setSelected(boolean selected)
          marks a DisplayElement as selected or not
 

Method Detail

getFeature

public Feature getFeature()
Returns the associated Feature.


getAssociateFeatureId

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


paint

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


setSelected

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


isSelected

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


setHighlighted

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


isHighlighted

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


doesScaleConstraintApply

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