|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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. |
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 DisplayElementpublic void setFeature(Feature feature)
setFeature in interface DisplayElementfeature - public String getAssociateFeatureId()
getAssociateFeatureId in interface DisplayElementpublic void setSelected(boolean selected)
setSelected in interface DisplayElementselected - true, if the DisplayElement is selected, false otherwisepublic boolean isSelected()
isSelected in interface DisplayElementDisplayElement is selected, false otherwisepublic void setHighlighted(boolean highlighted)
setHighlighted in interface DisplayElementhighlighted - true, if the DisplayElement is highlighted, false otherwisepublic boolean isHighlighted()
isHighlighted in interface DisplayElementDisplayElement is highlighted, false otherwisepublic abstract boolean doesScaleConstraintApply(double scale)
DisplayElement should be painted at the current scale or not.
doesScaleConstraintApply in interface DisplayElementscale - scale to check
DisplayElement has to be painted, false otherwise
|
deegree 2.3 (2010/04/09 10:10 build-4-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