org.geotools.styling
Class PointPlacementImpl

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

public class PointPlacementImpl
extends AbstractGTComponent
implements PointPlacement, org.opengis.util.Cloneable

DOCUMENT ME!

Version:
$Id: PointPlacementImpl.java 18021 2006-02-14 20:36:18Z jdeolive $
Author:
Ian Turton, CCG

Field Summary
 
Fields inherited from class org.geotools.event.AbstractGTComponent
notification
 
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 org.geotools.event.AbstractGTComponent
changed, fireChanged, fireChildChanged, getNote, getParent, removed, setNote
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.geotools.event.GTComponent
changed, getNote, getParent, removed, setNote
 

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 LabelPlacement

clone

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

equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()


Copyright © GeoTools. All Rights Reserved.