Interface PointPlacement

All Superinterfaces:
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.
Since:
GeoAPI 2.2
Author:
Open Geospatial Consortium, Johann Sorel (Geomatys), Ian Turton
  • Method Summary

    Modifier and Type
    Method
    Description
    accept(TraversingStyleVisitor visitor, Object extraData)
    calls the visit method of a StyleVisitor
    Returns the AnchorPoint which identifies the location inside a textlabel to use as an "anchor" for positioning it relative to a point geometry.
    Returns the Displacement which gives X and Y offset displacements to use for rendering a text label near a point.
    Returns the rotation of the label.
    void
    sets the AnchorPoint which identifies the location inside a textlabel to use as an "anchor" for positioning it relative to a point geometry.
    void
    sets the Displacement which gives X and Y offset displacements to use for rendering a text label near a point.
    void
    sets the rotation of the label.

    Methods inherited from interface LabelPlacement

    accept
  • Method Details

    • getAnchorPoint

      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:
      anchorPoint from the relative to the original geometry
    • setAnchorPoint

      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 - relative to the original geometry
    • getDisplacement

      Displacement getDisplacement()
      Returns the Displacement which gives X and Y offset displacements to use for rendering a text label near a point.
      Returns:
      Offset to use when rendering text near a point
    • setDisplacement

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

      Expression getRotation()
      Returns the rotation of the label.
      Returns:
      rotation of the label as a dynamic expression
    • accept

      Object accept(TraversingStyleVisitor visitor, Object extraData)
      calls the visit method of a StyleVisitor
      Specified by:
      accept in interface LabelPlacement
      Parameters:
      visitor - the style visitor
    • setRotation

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

      Sets the rotation of the label.