|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.graphics.sld.PointPlacement_Impl
Incarnation of a sld:PointPlacement-element. For a PointPlacement, the anchor point of the label and a linear displacement from the point can be specified, to allow a graphic symbol to be plotted directly at the point. This might be useful to label a city, for example. For a LinePlacement, a perpendicular offset can be specified, to allow the line itself to be plotted also. This might be useful for labelling a road or a river, for example.
Field Summary | |
private ParameterValueType[] |
anchorPoint
|
private boolean |
auto
|
private ParameterValueType[] |
displacement
|
private ParameterValueType |
rotation
|
Constructor Summary | |
(package private) |
PointPlacement_Impl()
|
|
PointPlacement_Impl(ParameterValueType[] anchorPoint,
ParameterValueType[] displacement,
ParameterValueType rotation,
boolean auto)
Creates a new PointPlacement_Impl object. |
Method Summary | |
java.lang.String |
exportAsXML()
exports the content of the PointPlacement as XML formated String |
double[] |
getAnchorPoint(Feature feature)
The AnchorPoint element of a PointPlacement gives the location inside of a label to use for anchoring the label to the main-geometry point. |
double[] |
getDisplacement(Feature feature)
The Displacement element of a PointPlacement gives the X and Y displacements from the main-geometry point to render a text label. |
double |
getRotation(Feature feature)
The Rotation of a PointPlacement gives the clockwise rotation of the label in degrees from the normal direction for a font (left-to-right for Latin- derived human languages at least). |
boolean |
isAuto()
Returns whether the placement should be optimized or not. |
void |
setAnchorPoint(double[] anchorPoint)
|
void |
setAuto(boolean auto)
|
void |
setDisplacement(double[] displacement)
|
void |
setRotation(double rotation)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private ParameterValueType rotation
private ParameterValueType[] anchorPoint
private ParameterValueType[] displacement
private boolean auto
Constructor Detail |
PointPlacement_Impl()
public PointPlacement_Impl(ParameterValueType[] anchorPoint, ParameterValueType[] displacement, ParameterValueType rotation, boolean auto)
anchorPoint
- displacement
- rotation
- Method Detail |
public double[] getAnchorPoint(Feature feature) throws FilterEvaluationException
getAnchorPoint
in interface PointPlacement
feature
- specifies the Feature to be used for evaluation
of the underlying 'sld:ParameterValueType'
FilterEvaluationException
- if the evaluation failspublic void setAnchorPoint(double[] anchorPoint)
setAnchorPoint
in interface PointPlacement
anchorPoint
- anchorPoint for the PointPlacement
public double[] getDisplacement(Feature feature) throws FilterEvaluationException
getDisplacement
in interface PointPlacement
feature
- specifies the Feature to be used for evaluation
of the underlying 'sld:ParameterValueType'
FilterEvaluationException
- if the evaluation fails*public void setDisplacement(double[] displacement)
setDisplacement
in interface PointPlacement
displacement
-
public double getRotation(Feature feature) throws FilterEvaluationException
getRotation
in interface PointPlacement
feature
- specifies the Feature to be used for evaluation
of the underlying 'sld:ParameterValueType'
FilterEvaluationException
- if the evaluation fails*public void setRotation(double rotation)
setRotation
in interface PointPlacement
rotation
- the rotation to be set for the PointPlacementPointPlacement.getRotation(Feature)
public boolean isAuto()
isAuto
in interface PointPlacement
public void setAuto(boolean auto)
setAuto
in interface PointPlacement
auto
- public java.lang.String exportAsXML()
exportAsXML
in interface Marshallable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |