org.deegree.graphics.sld
Interface LabelPlacement

All Known Implementing Classes:
LabelPlacement_Impl

public interface LabelPlacement

Used to position a label relative to a point or a line string. For a point, you can specify the anchor point of the label and a linear displacement from the point (so that you can also plot a graphic symbol at the point). For a line-string placement, you can specify a perpendicular offset (so you can draw a stroke on the line). MORE PARAMETERS ARE PROBABLY NEEDED HERE.

----------------------------------------------------------------------

Version:
$Revision: 1.3 $ $Date: 2004/01/12 14:48:13 $
Author:
Andreas Poth

Method Summary
 LinePlacement getLinePlacement()
          For a LinePlacement, a perpendicular offset can be specified, to allow the line itself to be plotted also.
 PointPlacement getPointPlacement()
          For a PointPlacement, the anchor point of the label and a linear displacement from the point can be specified, to allow a graphic symbol to be plotted directly at the point.
 void setLinePlacement(LinePlacement linePlacement)
          sets
 void setPointPlacement(PointPlacement pointPlacement)
          Sets the PointPlacement for the Label.
 

Method Detail

getPointPlacement

public PointPlacement getPointPlacement()
For a PointPlacement, the anchor point of the label and a linear displacement from the point can be specified, to allow a graphic symbol to be plotted directly at the point. This might be useful to label a city, for example.

Returns:
the pointplacement for the label

setPointPlacement

public void setPointPlacement(PointPlacement pointPlacement)
Sets the PointPlacement for the Label.

Parameters:
pointPlacement - the pointplacement for the label

getLinePlacement

public LinePlacement getLinePlacement()
For a LinePlacement, a perpendicular offset can be specified, to allow the line itself to be plotted also. This might be useful for labelling a road or a river, for example.

Returns:
the lineplacement for the label

setLinePlacement

public void setLinePlacement(LinePlacement linePlacement)
sets

Parameters:
linePlacement - the lineplacement for the label