deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.graphics.displayelements
Interface DisplayElement

All Known Implementing Classes:
AbstractDisplayElement, GeometryDisplayElement, LabelDisplayElement, LineStringDisplayElement, LocalizedDisplayElement, PointDisplayElement, PolygonDisplayElement, RasterDisplayElement

public interface DisplayElement

Basic interface for all display elements. A DisplayElement is associated to one Feature instance that may have a geometry property or not (which is the common case).

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Andreas Poth, Markus Schneider, last edited by: $Author: mschneider $

Method Summary
 boolean doesScaleConstraintApply(double scale)
          Returns whether the DisplayElement should be painted at the given scale.
 java.lang.String getAssociateFeatureId()
          Returns the id of the associated feature.
 Feature getFeature()
          Returns the associated Feature.
 boolean isHighlighted()
          Returns whether the DisplayElement is highlighted.
 boolean isSelected()
          Returns whether the DisplayElement is selected.
 void paint(java.awt.Graphics g, GeoTransform projection, double scale)
          Renders the DisplayElement to the submitted graphic context.
 void setFeature(Feature feature)
          Sets the associated Feature.
 void setHighlighted(boolean highlighted)
          Sets the highlighting state of the DisplayElement.
 void setSelected(boolean selected)
          Sets the selection state of the DisplayElement.
 

Method Detail

getFeature

Feature getFeature()
Returns the associated Feature.

Returns:
the associated feature

setFeature

void setFeature(Feature feature)
Sets the associated Feature.

Parameters:
feature -

getAssociateFeatureId

java.lang.String getAssociateFeatureId()
Returns the id of the associated feature.

Returns:
the associated feature's id

paint

void paint(java.awt.Graphics g,
           GeoTransform projection,
           double scale)
Renders the DisplayElement to the submitted graphic context.

Parameters:
g - graphics context to render to
projection -
scale -

setSelected

void setSelected(boolean selected)
Sets the selection state of the DisplayElement.

Parameters:
selected - true, if the DisplayElement is selected, false otherwise

isSelected

boolean isSelected()
Returns whether the DisplayElement is selected.

Returns:
true, if the DisplayElement is selected, false otherwise

setHighlighted

void setHighlighted(boolean highlighted)
Sets the highlighting state of the DisplayElement.

Parameters:
highlighted - true, if the DisplayElement is highlighted, false otherwise

isHighlighted

boolean isHighlighted()
Returns whether the DisplayElement is highlighted.

Returns:
true, if the DisplayElement is highlighted, false otherwise

doesScaleConstraintApply

boolean doesScaleConstraintApply(double scale)
Returns whether the DisplayElement should be painted at the given scale.

Parameters:
scale - scale to check
Returns:
true, if the DisplayElement has to be painted, false otherwise

deegree 2.5 (2011/06/29 09:44 build-8-official)

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