|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.graphics.displayelements.AbstractDisplayElement
abstract class AbstractDisplayElement
Base class for all display elements.
A DisplayElement
is associated to one feature that may have a geometry property or not (this is the
common case).
Field Summary | |
---|---|
protected Feature |
feature
The feature to display |
Constructor Summary | |
---|---|
AbstractDisplayElement()
An empty constructor doing nothing |
|
AbstractDisplayElement(Feature feature)
|
Method Summary | |
---|---|
abstract boolean |
doesScaleConstraintApply(double scale)
Returns whether 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 |
void |
setFeature(Feature feature)
sets the feature encapsulated by a DisplayElement |
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 |
Methods inherited from interface org.deegree.graphics.displayelements.DisplayElement |
---|
paint |
Field Detail |
---|
protected Feature feature
Constructor Detail |
---|
AbstractDisplayElement()
AbstractDisplayElement(Feature feature)
feature
- Method Detail |
---|
public Feature getFeature()
getFeature
in interface DisplayElement
public void setFeature(Feature feature)
setFeature
in interface DisplayElement
feature
- public java.lang.String getAssociateFeatureId()
getAssociateFeatureId
in interface DisplayElement
public void setSelected(boolean selected)
setSelected
in interface DisplayElement
selected
- true, if the DisplayElement
is selected, false otherwisepublic boolean isSelected()
isSelected
in interface DisplayElement
DisplayElement
is selected, false otherwisepublic void setHighlighted(boolean highlighted)
setHighlighted
in interface DisplayElement
highlighted
- true, if the DisplayElement
is highlighted, false otherwisepublic boolean isHighlighted()
isHighlighted
in interface DisplayElement
DisplayElement
is highlighted, false otherwisepublic abstract boolean doesScaleConstraintApply(double scale)
DisplayElement
should be painted at the current scale or not.
doesScaleConstraintApply
in interface DisplayElement
scale
- scale to check
DisplayElement
has to be painted, false otherwise
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org