Package org.geotools.api.style
Interface PointPlacement
-
- All Superinterfaces:
LabelPlacement
- All Known Implementing Classes:
PointPlacementImpl
public interface PointPlacement extends LabelPlacement
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
accept(TraversingStyleVisitor visitor, Object extraData)
calls the visit method of a StyleVisitorAnchorPoint
getAnchorPoint()
Returns the AnchorPoint which identifies the location inside a textlabel to use as an "anchor" for positioning it relative to a point geometry.Displacement
getDisplacement()
Returns the Displacement which gives X and Y offset displacements to use for rendering a text label near a point.Expression
getRotation()
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 Detail
-
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
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.- 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
void setDisplacement(Displacement displacement)
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
Object accept(TraversingStyleVisitor visitor, Object extraData)
calls the visit method of a StyleVisitor- Specified by:
accept
in interfaceLabelPlacement
- Parameters:
visitor
- the style visitor
-
setRotation
void setRotation(Expression rotation)
sets the rotation of the label.Sets the rotation of the label.
-
-