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 Objectaccept(TraversingStyleVisitor visitor, Object extraData)calls the visit method of a StyleVisitorAnchorPointgetAnchorPoint()Returns the AnchorPoint which identifies the location inside a textlabel to use as an "anchor" for positioning it relative to a point geometry.DisplacementgetDisplacement()Returns the Displacement which gives X and Y offset displacements to use for rendering a text label near a point.ExpressiongetRotation()Returns the rotation of the label.voidsetAnchorPoint(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.voidsetDisplacement(Displacement displacement)sets the Displacement which gives X and Y offset displacements to use for rendering a text label near a point.voidsetRotation(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:
acceptin interfaceLabelPlacement- Parameters:
visitor- the style visitor
-
setRotation
void setRotation(Expression rotation)
sets the rotation of the label.Sets the rotation of the label.
-
-