|
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 |
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).
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 |
---|
Feature getFeature()
Feature
.
void setFeature(Feature feature)
Feature
.
feature
- java.lang.String getAssociateFeatureId()
void paint(java.awt.Graphics g, GeoTransform projection, double scale)
DisplayElement
to the submitted graphic context.
g
- graphics context to render toprojection
- scale
- void setSelected(boolean selected)
DisplayElement
.
selected
- true, if the DisplayElement
is selected, false otherwiseboolean isSelected()
DisplayElement
is selected.
DisplayElement
is selected, false otherwisevoid setHighlighted(boolean highlighted)
DisplayElement
.
highlighted
- true, if the DisplayElement
is highlighted, false otherwiseboolean isHighlighted()
DisplayElement
is highlighted.
DisplayElement
is highlighted, false otherwiseboolean doesScaleConstraintApply(double scale)
DisplayElement
should be painted at the given scale.
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