|
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 org.deegree.graphics.displayelements.GeometryDisplayElement
abstract class GeometryDisplayElement
Basic interface of all display elements that are related to a geometry (this is the common case).
Field Summary | |
---|---|
protected Geometry |
geometry
the geometry |
protected Symbolizer |
highlightSymbolizer
the highlighted Symbolizer |
protected java.lang.Object |
placement
The placement? |
protected Symbolizer |
selectedSymbolizer
the selected Symbolizer |
protected Symbolizer |
symbolizer
the symbolizer |
Fields inherited from class org.deegree.graphics.displayelements.AbstractDisplayElement |
---|
feature |
Constructor Summary | |
---|---|
GeometryDisplayElement(Feature feature,
Geometry geometry)
Creates a new GeometryDisplayElement object. |
|
GeometryDisplayElement(Feature feature,
Geometry geometry,
Symbolizer symbolizer)
Creates a new GeometryDisplayElement object. |
|
GeometryDisplayElement(Feature feature,
Geometry geometry,
Symbolizer symbolizer,
Symbolizer highlightSymbolizer,
Symbolizer selectedSymbolizer)
Creates a new GeometryDisplayElement object. |
Method Summary | |
---|---|
boolean |
doesScaleConstraintApply(double scale)
Returns if the DisplayElement should be painted at the current scale or not. |
Geometry |
getGeometry()
returns the geometry that determines the position the DisplayElement will be rendered to |
Symbolizer |
getHighlightSymbolizer()
returns the symbolizer that determines how the geometry will be rendered if it's highlighted |
Symbolizer |
getSelectedSymbolizer()
returns the symbolizer that determines how the geometry will be rendered if it's selected |
Symbolizer |
getSymbolizer()
Returns the symbolizer that determines how the geometry will be rendered. |
protected Envelope |
growEnvelope(Envelope env,
float percent)
Returns a new Envelope for the given envelope that has a border of percent * (with |
height) on all sides around it (the longer side is used to determine the border size). |
void |
setGeometry(Geometry geometry)
sets the geometry that determines the position the DisplayElement will be rendered to |
void |
setHighlightSymbolizer(Symbolizer rule)
sets the rule that determines how the geometry will be rendered when it's highlighted |
void |
setPlacement(java.lang.Object o)
Overwrites the default placement of the DisplayElement. |
void |
setSelectedSymbolizer(Symbolizer rule)
sets the rule that determines how the geometry will be rendered when it's selected |
void |
setSymbolizer(Symbolizer symbolizer)
sets the rules that determines how the geometry will be rendered |
Methods inherited from class org.deegree.graphics.displayelements.AbstractDisplayElement |
---|
getAssociateFeatureId, getFeature, isHighlighted, isSelected, setFeature, setHighlighted, setSelected |
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 Geometry geometry
protected Symbolizer symbolizer
protected Symbolizer highlightSymbolizer
protected Symbolizer selectedSymbolizer
protected java.lang.Object placement
Constructor Detail |
---|
GeometryDisplayElement(Feature feature, Geometry geometry)
feature
- geometry
- GeometryDisplayElement(Feature feature, Geometry geometry, Symbolizer symbolizer)
feature
- geometry
- symbolizer
- GeometryDisplayElement(Feature feature, Geometry geometry, Symbolizer symbolizer, Symbolizer highlightSymbolizer, Symbolizer selectedSymbolizer)
feature
- geometry
- symbolizer
- selectedSymbolizer
- highlightSymbolizer
- Method Detail |
---|
protected Envelope growEnvelope(Envelope env, float percent)
Envelope
for the given envelope that has a border of percent * (with |
height) on all sides around it (the longer side is used to determine the border size).
env
- percent
-
public void setPlacement(java.lang.Object o)
o
- the placement to be usedpublic void setGeometry(Geometry geometry)
geometry
- to setpublic Geometry getGeometry()
public void setSymbolizer(Symbolizer symbolizer)
symbolizer
- public Symbolizer getSymbolizer()
public void setHighlightSymbolizer(Symbolizer rule)
rule
- symbolizer defining rendering stylepublic Symbolizer getHighlightSymbolizer()
public void setSelectedSymbolizer(Symbolizer rule)
rule
- symbolizer defining rendering stylepublic Symbolizer getSelectedSymbolizer()
public boolean doesScaleConstraintApply(double scale)
doesScaleConstraintApply
in interface DisplayElement
doesScaleConstraintApply
in class AbstractDisplayElement
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