Package org.geotools.styling
Class PointPlacementImpl
- Object
-
- PointPlacementImpl
-
- All Implemented Interfaces:
Cloneable
,LabelPlacement
,PointPlacement
,Cloneable
public class PointPlacementImpl extends Object implements PointPlacement, Cloneable
- Author:
- Ian Turton, CCG
-
-
Field Summary
Fields Modifier and Type Field Description static AnchorPoint
DEFAULT_ANCHOR_POINT
-
Constructor Summary
Constructors Constructor Description PointPlacementImpl()
PointPlacementImpl(FilterFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(StyleVisitor visitor)
Object
accept(TraversingStyleVisitor visitor, Object data)
calls the visit method of a StyleVisitorObject
clone()
Creates and returns a copy of this object.boolean
equals(Object obj)
AnchorPoint
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.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.int
hashCode()
void
setAnchorPoint(AnchorPoint anchorPoint)
Setter for property anchorPoint.void
setDisplacement(Displacement displacement)
Setter for property displacement.void
setRotation(Expression rotation)
Setter for property rotation.
-
-
-
Field Detail
-
DEFAULT_ANCHOR_POINT
public static final AnchorPoint DEFAULT_ANCHOR_POINT
-
-
Constructor Detail
-
PointPlacementImpl
public PointPlacementImpl()
-
PointPlacementImpl
public PointPlacementImpl(FilterFactory factory)
-
-
Method Detail
-
getAnchorPoint
public AnchorPoint 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:
getAnchorPoint
in interfacePointPlacement
- Returns:
- Label's AnchorPoint.
-
setAnchorPoint
public void setAnchorPoint(AnchorPoint anchorPoint)
Setter for property anchorPoint.- Specified by:
setAnchorPoint
in interfacePointPlacement
- Parameters:
anchorPoint
- New value of property anchorPoint.
-
getDisplacement
public Displacement getDisplacement()
Returns the Displacement which gives X and Y offset displacements to use for rendering a text label near a point.- Specified by:
getDisplacement
in interfacePointPlacement
- Returns:
- The label displacement.
-
setDisplacement
public void setDisplacement(Displacement displacement)
Setter for property displacement.- Specified by:
setDisplacement
in interfacePointPlacement
- Parameters:
displacement
- New value of property displacement.
-
getRotation
public Expression getRotation()
Returns the rotation of the label.- Specified by:
getRotation
in interfacePointPlacement
- Returns:
- The rotation of the label.
-
setRotation
public void setRotation(Expression rotation)
Setter for property rotation.- Specified by:
setRotation
in interfacePointPlacement
- Parameters:
rotation
- New value of property rotation.
-
accept
public Object accept(TraversingStyleVisitor visitor, Object data)
Description copied from interface:PointPlacement
calls the visit method of a StyleVisitor- Specified by:
accept
in interfaceLabelPlacement
- Specified by:
accept
in interfacePointPlacement
- Parameters:
visitor
- the style visitor
-
accept
public void accept(StyleVisitor visitor)
- Specified by:
accept
in interfaceLabelPlacement
-
clone
public Object clone()
Description copied from interface:Cloneable
Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object.- Specified by:
clone
in interfaceCloneable
- Overrides:
clone
in classObject
- Returns:
- A copy of this object.
- See Also:
Object.clone()
-
-