Package org.geotools.styling
Class PointPlacementImpl
Object
PointPlacementImpl
- All Implemented Interfaces:
Cloneable,LabelPlacement,PointPlacement,Cloneable
- Author:
- Ian Turton, CCG
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(StyleVisitor visitor) accept(TraversingStyleVisitor visitor, Object data) calls the visit method of a StyleVisitorclone()Creates and returns a copy of this object.booleanReturns the AnchorPoint which identifies the location inside a text label 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.inthashCode()voidsetAnchorPoint(AnchorPoint anchorPoint) Setter for property anchorPoint.voidsetDisplacement(Displacement displacement) Setter for property displacement.voidsetRotation(Expression rotation) Setter for property rotation.
-
Field Details
-
DEFAULT_ANCHOR_POINT
-
-
Constructor Details
-
PointPlacementImpl
public PointPlacementImpl() -
PointPlacementImpl
-
-
Method Details
-
getAnchorPoint
Returns the AnchorPoint which identifies the location inside a text label to use as an "anchor" for positioning it relative to a point geometry.- Specified by:
getAnchorPointin interfacePointPlacement- Returns:
- Label's AnchorPoint.
-
setAnchorPoint
Setter for property anchorPoint.- Specified by:
setAnchorPointin interfacePointPlacement- Parameters:
anchorPoint- New value of property anchorPoint.
-
getDisplacement
Returns the Displacement which gives X and Y offset displacements to use for rendering a text label near a point.- Specified by:
getDisplacementin interfacePointPlacement- Returns:
- The label displacement.
-
setDisplacement
Setter for property displacement.- Specified by:
setDisplacementin interfacePointPlacement- Parameters:
displacement- New value of property displacement.
-
getRotation
Returns the rotation of the label.- Specified by:
getRotationin interfacePointPlacement- Returns:
- The rotation of the label.
-
setRotation
Setter for property rotation.- Specified by:
setRotationin interfacePointPlacement- Parameters:
rotation- New value of property rotation.
-
accept
Description copied from interface:PointPlacementcalls the visit method of a StyleVisitor- Specified by:
acceptin interfaceLabelPlacement- Specified by:
acceptin interfacePointPlacement- Parameters:
visitor- the style visitor
-
accept
- Specified by:
acceptin interfaceLabelPlacement
-
clone
Description copied from interface:CloneableCreates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. -
equals
-
hashCode
public int hashCode()
-