|
|||||||||||
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
org.deegree_impl.graphics.displayelements.GeometryDisplayElement_Impl
org.deegree_impl.graphics.displayelements.LineStringDisplayElement_Impl
DisplayElement that encapsulates a linestring (GM_Curve) or multi-linestring geometry (GM_MultiCurve) and a LineStringSymbolizer.
It can be rendered using a solid stroke or a graphics stroke.
Field Summary | |
protected Feature |
feature
|
protected GM_Object |
geometry
|
protected Symbolizer |
highlightSymbolizer
|
protected java.lang.Object |
placement
|
protected Symbolizer |
selectedSymbolizer
|
private static long |
serialVersionUID
Use serialVersionUID for interoperability. |
protected Symbolizer |
symbolizer
|
Constructor Summary | |
protected |
LineStringDisplayElement_Impl(Feature feature,
GM_Curve geometry)
Creates a new LineStringDisplayElement_Impl object. |
protected |
LineStringDisplayElement_Impl(Feature feature,
GM_Curve geometry,
LineSymbolizer symbolizer)
Creates a new LineStringDisplayElement_Impl object. |
protected |
LineStringDisplayElement_Impl(Feature feature,
GM_MultiCurve geometry)
Creates a new LineStringDisplayElement_Impl object. |
protected |
LineStringDisplayElement_Impl(Feature feature,
GM_MultiCurve geometry,
LineSymbolizer symbolizer)
Creates a new LineStringDisplayElement_Impl object. |
Method Summary | |
private int[][] |
calcTargetCoordinates(GeoTransform projection,
GM_Curve curve)
Calculates the screen coordinates of the curve. |
private double |
distance(double x1,
double y1,
double x2,
double y2)
|
boolean |
doesScaleConstraintApply(double scale)
Returns if the DisplayElement should be painted at the current scale or not. |
private void |
drawLine(java.awt.Graphics g,
int[][] pos,
Stroke stroke)
Renders a curve to the submitted graphic context. |
java.lang.String |
getAssociateFeatureId()
returns the id of the feature that's associated with the DisplayElement |
double |
getDistance(double x1,
double y1,
double x2,
double y2)
|
Feature |
getFeature()
Returns the associated Feature. |
GM_Object |
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. |
boolean |
isHighlighted()
returns if the DisplayElement is highlighted or not. |
boolean |
isSelected()
returns if the DisplayElement is selected or not |
void |
paint(java.awt.Graphics g,
GeoTransform projection)
renders the DisplayElement to the submitted graphic context |
void |
paintImage(java.awt.Image image,
java.awt.Graphics2D g,
int x,
int y,
double rotation)
|
private java.awt.Graphics2D |
setColor(java.awt.Graphics2D g2,
java.awt.Color color,
double opacity)
|
void |
setGeometry(GM_Object geometry)
sets the geometry that determines the position the DisplayElement will be rendered to |
void |
setHighlighted(boolean highlighted)
marks the DisplayElement as highlighted or not |
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 |
setSelected(boolean selected)
marks a DisplayElement as selected or not |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.deegree.graphics.displayelements.GeometryDisplayElement |
getGeometry, getHighlightSymbolizer, getSelectedSymbolizer, getSymbolizer, setGeometry, setHighlightSymbolizer, setPlacement, setSelectedSymbolizer, setSymbolizer |
Methods inherited from interface org.deegree.graphics.displayelements.DisplayElement |
doesScaleConstraintApply, getAssociateFeatureId, getFeature, isHighlighted, isSelected, setHighlighted, setSelected |
Field Detail |
private static final long serialVersionUID
protected GM_Object geometry
protected Symbolizer symbolizer
protected Symbolizer highlightSymbolizer
protected Symbolizer selectedSymbolizer
protected java.lang.Object placement
protected Feature feature
Constructor Detail |
protected LineStringDisplayElement_Impl(Feature feature, GM_Curve geometry)
feature
- geometry
- protected LineStringDisplayElement_Impl(Feature feature, GM_Curve geometry, LineSymbolizer symbolizer)
feature
- geometry
- symbolizer
- protected LineStringDisplayElement_Impl(Feature feature, GM_MultiCurve geometry)
feature
- geometry
- protected LineStringDisplayElement_Impl(Feature feature, GM_MultiCurve geometry, LineSymbolizer symbolizer)
feature
- geometry
- symbolizer
- Method Detail |
public void paintImage(java.awt.Image image, java.awt.Graphics2D g, int x, int y, double rotation)
public void paint(java.awt.Graphics g, GeoTransform projection)
paint
in interface DisplayElement
paint
in class DisplayElement_Impl
public double getDistance(double x1, double y1, double x2, double y2)
private int[][] calcTargetCoordinates(GeoTransform projection, GM_Curve curve) throws java.lang.Exception
java.lang.Exception
private void drawLine(java.awt.Graphics g, int[][] pos, Stroke stroke) throws FilterEvaluationException
FilterEvaluationException
private double distance(double x1, double y1, double x2, double y2)
private java.awt.Graphics2D setColor(java.awt.Graphics2D g2, java.awt.Color color, double opacity)
g2
- color
- opacity
-
public void setPlacement(java.lang.Object o)
setPlacement
in interface GeometryDisplayElement
o
- the placement to be usedpublic void setGeometry(GM_Object geometry)
setGeometry
in interface GeometryDisplayElement
public GM_Object getGeometry()
getGeometry
in interface GeometryDisplayElement
public void setSymbolizer(Symbolizer symbolizer)
setSymbolizer
in interface GeometryDisplayElement
symbolizer
- symbolizer defining rendering stylepublic Symbolizer getSymbolizer()
getSymbolizer
in interface GeometryDisplayElement
public void setHighlightSymbolizer(Symbolizer rule)
setHighlightSymbolizer
in interface GeometryDisplayElement
rule
- symbolizer defining rendering stylepublic Symbolizer getHighlightSymbolizer()
getHighlightSymbolizer
in interface GeometryDisplayElement
public void setSelectedSymbolizer(Symbolizer rule)
setSelectedSymbolizer
in interface GeometryDisplayElement
rule
- symbolizer defining rendering stylepublic Symbolizer getSelectedSymbolizer()
getSelectedSymbolizer
in interface GeometryDisplayElement
public boolean doesScaleConstraintApply(double scale)
doesScaleConstraintApply
in interface DisplayElement
doesScaleConstraintApply
in class DisplayElement_Impl
public Feature getFeature()
getFeature
in interface DisplayElement
public java.lang.String getAssociateFeatureId()
getAssociateFeatureId
in interface DisplayElement
public void setSelected(boolean selected)
setSelected
in interface DisplayElement
public boolean isSelected()
isSelected
in interface DisplayElement
public void setHighlighted(boolean highlighted)
setHighlighted
in interface DisplayElement
public boolean isHighlighted()
isHighlighted
in interface DisplayElement
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |