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 SummaryFields Modifier and Type Field Description static AnchorPointDEFAULT_ANCHOR_POINT
 - 
Constructor SummaryConstructors Constructor Description PointPlacementImpl()PointPlacementImpl(FilterFactory factory)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(StyleVisitor visitor)Objectaccept(TraversingStyleVisitor visitor, Object data)calls the visit method of a StyleVisitorObjectclone()Creates and returns a copy of this object.booleanequals(Object obj)AnchorPointgetAnchorPoint()Returns the AnchorPoint which identifies the location inside a text label 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.inthashCode()voidsetAnchorPoint(AnchorPoint anchorPoint)Setter for property anchorPoint.voidsetDisplacement(Displacement displacement)Setter for property displacement.voidsetRotation(Expression rotation)Setter for property rotation.
 
- 
- 
- 
Field Detail- 
DEFAULT_ANCHOR_POINTpublic static final AnchorPoint DEFAULT_ANCHOR_POINT 
 
- 
 - 
Constructor Detail- 
PointPlacementImplpublic PointPlacementImpl() 
 - 
PointPlacementImplpublic PointPlacementImpl(FilterFactory factory) 
 
- 
 - 
Method Detail- 
getAnchorPointpublic 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:
- getAnchorPointin interface- PointPlacement
- Returns:
- Label's AnchorPoint.
 
 - 
setAnchorPointpublic void setAnchorPoint(AnchorPoint anchorPoint) Setter for property anchorPoint.- Specified by:
- setAnchorPointin interface- PointPlacement
- Parameters:
- anchorPoint- New value of property anchorPoint.
 
 - 
getDisplacementpublic Displacement getDisplacement() Returns the Displacement which gives X and Y offset displacements to use for rendering a text label near a point.- Specified by:
- getDisplacementin interface- PointPlacement
- Returns:
- The label displacement.
 
 - 
setDisplacementpublic void setDisplacement(Displacement displacement) Setter for property displacement.- Specified by:
- setDisplacementin interface- PointPlacement
- Parameters:
- displacement- New value of property displacement.
 
 - 
getRotationpublic Expression getRotation() Returns the rotation of the label.- Specified by:
- getRotationin interface- PointPlacement
- Returns:
- The rotation of the label.
 
 - 
setRotationpublic void setRotation(Expression rotation) Setter for property rotation.- Specified by:
- setRotationin interface- PointPlacement
- Parameters:
- rotation- New value of property rotation.
 
 - 
acceptpublic Object accept(TraversingStyleVisitor visitor, Object data) Description copied from interface:PointPlacementcalls the visit method of a StyleVisitor- Specified by:
- acceptin interface- LabelPlacement
- Specified by:
- acceptin interface- PointPlacement
- Parameters:
- visitor- the style visitor
 
 - 
acceptpublic void accept(StyleVisitor visitor) - Specified by:
- acceptin interface- LabelPlacement
 
 - 
clonepublic Object 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.- Specified by:
- clonein interface- Cloneable
- Overrides:
- clonein class- Object
- Returns:
- A copy of this object.
- See Also:
- Object.clone()
 
 
- 
 
-