Package org.geotools.api.style
Interface PointPlacement
- All Superinterfaces:
LabelPlacement
- All Known Implementing Classes:
PointPlacementImpl
A PointPlacement specifies how a text label is positioned relative to a geometric point.
- Since:
- GeoAPI 2.2
- Author:
- Open Geospatial Consortium, Johann Sorel (Geomatys), Ian Turton
-
Method Summary
Modifier and TypeMethodDescriptionaccept
(TraversingStyleVisitor visitor, Object extraData) calls the visit method of a StyleVisitorReturns the AnchorPoint which identifies the location inside a textlabel to use as an "anchor" for positioning it relative to a point geometry.Returns the Displacement which gives X and Y offset displacements to use for rendering a text label near a point.Returns the rotation of the label.void
setAnchorPoint
(AnchorPoint anchorPoint) sets the AnchorPoint which identifies the location inside a textlabel to use as an "anchor" for positioning it relative to a point geometry.void
setDisplacement
(Displacement displacement) sets the Displacement which gives X and Y offset displacements to use for rendering a text label near a point.void
setRotation
(Expression rotation) sets the rotation of the label.Methods inherited from interface LabelPlacement
accept
-
Method Details
-
getAnchorPoint
AnchorPoint getAnchorPoint()Returns the AnchorPoint which identifies the location inside a textlabel to use as an "anchor" for positioning it relative to a point geometry.- Returns:
- anchorPoint from the relative to the original geometry
-
setAnchorPoint
sets the AnchorPoint which identifies the location inside a textlabel to use as an "anchor" for positioning it relative to a point geometry.- Parameters:
anchorPoint
- relative to the original geometry
-
getDisplacement
Displacement getDisplacement()Returns the Displacement which gives X and Y offset displacements to use for rendering a text label near a point.- Returns:
- Offset to use when rendering text near a point
-
setDisplacement
sets the Displacement which gives X and Y offset displacements to use for rendering a text label near a point. -
getRotation
Expression getRotation()Returns the rotation of the label.- Returns:
- rotation of the label as a dynamic expression
-
accept
calls the visit method of a StyleVisitor- Specified by:
accept
in interfaceLabelPlacement
- Parameters:
visitor
- the style visitor
-
setRotation
sets the rotation of the label.Sets the rotation of the label.
-