|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.deegree_impl.graphics.displayelements.DisplayElement_Impl
Basic interface of all display elements. A DisplayElement is associated to one feature that may have a geometry property or not (usually it has).
| 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 |
private static final long serialVersionUID
protected Feature feature
private boolean highlighted
private boolean selected
| Constructor Detail |
DisplayElement_Impl()
DisplayElement_Impl(Feature feature)
feature - | Method Detail |
public Feature getFeature()
getFeature in interface DisplayElementpublic java.lang.String getAssociateFeatureId()
getAssociateFeatureId in interface DisplayElement
public abstract void paint(java.awt.Graphics g,
GeoTransform projection)
paint in interface DisplayElementpublic void setSelected(boolean selected)
setSelected in interface DisplayElementpublic boolean isSelected()
isSelected in interface DisplayElementpublic void setHighlighted(boolean highlighted)
setHighlighted in interface DisplayElementpublic boolean isHighlighted()
isHighlighted in interface DisplayElementpublic boolean doesScaleConstraintApply(double scale)
doesScaleConstraintApply in interface DisplayElement
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||