org.geotools.styling
Interface PointPlacement

All Superinterfaces:
GTComponent, LabelPlacement
All Known Implementing Classes:
PointPlacementImpl

public interface PointPlacement
extends LabelPlacement

A PointPlacement specifies how a text label is positioned relative to a geometric point.

The details of this object are taken from the OGC Styled-Layer Descriptor Report (OGC 02-070) version 1.0.0.:


 <xsd:element name="PointPlacement">
   <xsd:annotation>
     <xsd:documentation>
       A "PointPlacement" specifies how a text label should be rendered
       relative to a geometric point.
     </xsd:documentation>
   </xsd:annotation>
   <xsd:complexType>
     <xsd:sequence>
       <xsd:element ref="sld:AnchorPoint" minOccurs="0"/>
       <xsd:element ref="sld:Displacement" minOccurs="0"/>
       <xsd:element ref="sld:Rotation" minOccurs="0"/>
     </xsd:sequence>
   </xsd:complexType>
 </xsd:element>
 

$Id: PointPlacement.java 18021 2006-02-14 20:36:18Z jdeolive $

Author:
Ian Turton

Method Summary
 AnchorPoint getAnchorPoint()
          Returns the AnchorPoint which identifies the location inside a textlabel 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.
 void setAnchorPoint(AnchorPoint anchorPoint)
          sets the AnchorPoint which identifies the location inside a textlabel to use as an "anchor" for positioning it relative to a point geometry.
 void setDisplacement(Displacement displacement)
          sets the Displacement which gives X and Y offset displacements to use for rendering a text label near a point.
 void setRotation(Expression rotation)
          sets the rotation of the label.
 
Methods inherited from interface org.geotools.styling.LabelPlacement
accept
 
Methods inherited from interface org.geotools.event.GTComponent
changed, getNote, getParent, removed, setNote
 

Method Detail

getAnchorPoint

public AnchorPoint getAnchorPoint()
Returns the AnchorPoint which identifies the location inside a textlabel to use as an "anchor" for positioning it relative to a point geometry.

Returns:
DOCUMENT ME!

setAnchorPoint

public void setAnchorPoint(AnchorPoint anchorPoint)
sets the AnchorPoint which identifies the location inside a textlabel to use as an "anchor" for positioning it relative to a point geometry.

Parameters:
anchorPoint - DOCUMENT ME!

getDisplacement

public Displacement getDisplacement()
Returns the Displacement which gives X and Y offset displacements to use for rendering a text label near a point.

Returns:
DOCUMENT ME!

setDisplacement

public void setDisplacement(Displacement displacement)
sets the Displacement which gives X and Y offset displacements to use for rendering a text label near a point.

Parameters:
displacement - DOCUMENT ME!

getRotation

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

Returns:
DOCUMENT ME!

setRotation

public void setRotation(Expression rotation)
sets the rotation of the label.

Parameters:
rotation - DOCUMENT ME!


Copyright © GeoTools. All Rights Reserved.