org.geotools.styling
Class PointPlacementImpl

java.lang.Object
  extended byorg.geotools.styling.PointPlacementImpl
All Implemented Interfaces:
org.opengis.util.Cloneable, java.lang.Cloneable, LabelPlacement, PointPlacement

public class PointPlacementImpl
extends java.lang.Object
implements PointPlacement, org.opengis.util.Cloneable

Version:
$Id: PointPlacementImpl.java,v 1.10 2003/09/06 04:52:31 seangeo Exp $
Author:
Ian Turton, CCG

Constructor Summary
PointPlacementImpl()
          Creates a new instance of DefaultPointPlacement
 
Method Summary
 void accept(StyleVisitor visitor)
           
 java.lang.Object clone()
           
 boolean equals(java.lang.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.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointPlacementImpl

public PointPlacementImpl()
Creates a new instance of DefaultPointPlacement

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 interface PointPlacement
Returns:
Label's AnchorPoint.

setAnchorPoint

public void setAnchorPoint(AnchorPoint anchorPoint)
Setter for property anchorPoint.

Specified by:
setAnchorPoint in interface PointPlacement
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 interface PointPlacement
Returns:
The label displacement.

setDisplacement

public void setDisplacement(Displacement displacement)
Setter for property displacement.

Specified by:
setDisplacement in interface PointPlacement
Parameters:
displacement - New value of property displacement.

getRotation

public Expression getRotation()
Returns the rotation of the label.

Specified by:
getRotation in interface PointPlacement
Returns:
The rotation of the label.

setRotation

public void setRotation(Expression rotation)
Setter for property rotation.

Specified by:
setRotation in interface PointPlacement
Parameters:
rotation - New value of property rotation.

accept

public void accept(StyleVisitor visitor)
Specified by:
accept in interface PointPlacement

clone

public java.lang.Object clone()
Specified by:
clone in interface org.opengis.util.Cloneable

equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()


Copyright © GeoTools. All Rights Reserved.