org.deegree_impl.graphics.displayelements
Class DisplayElement_Impl

java.lang.Object
  extended byorg.deegree_impl.graphics.displayelements.DisplayElement_Impl
All Implemented Interfaces:
DisplayElement, java.io.Serializable
Direct Known Subclasses:
GeometryDisplayElement_Impl, RasterDisplayElement_Impl

abstract class DisplayElement_Impl
extends java.lang.Object
implements DisplayElement, java.io.Serializable

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.9 $ $Date: 2004/02/09 07:59:40 $
Author:
Andreas Poth, Markus Schneider

Field Summary
protected  Feature feature
           
private  boolean highlighted
           
private  boolean selected
           
private static long serialVersionUID
          Use serialVersionUID for interoperability.
 
Constructor Summary
(package private) DisplayElement_Impl()
          Creates a new DisplayElement_Impl object.
(package private) DisplayElement_Impl(Feature feature)
          Creates a new DisplayElement_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.
 boolean isHighlighted()
          returns if the DisplayElement is highlighted or not.
 boolean isSelected()
          returns if the DisplayElement is selected or not
abstract  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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Use serialVersionUID for interoperability.

See Also:
Constant Field Values

feature

protected Feature feature

highlighted

private boolean highlighted

selected

private boolean selected
Constructor Detail

DisplayElement_Impl

DisplayElement_Impl()
Creates a new DisplayElement_Impl object.


DisplayElement_Impl

DisplayElement_Impl(Feature feature)
Creates a new DisplayElement_Impl object.

Parameters:
feature -
Method Detail

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

paint

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

Specified by:
paint 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