org.deegree_impl.graphics.sld
Class LabelPlacement_Impl

java.lang.Object
  extended byorg.deegree_impl.graphics.sld.LabelPlacement_Impl
All Implemented Interfaces:
LabelPlacement, Marshallable

public class LabelPlacement_Impl
extends java.lang.Object
implements LabelPlacement, Marshallable

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.7 $ $Date: 2004/01/12 14:48:41 $
Author:
Katharina Lupp, Markus Schneider

Field Summary
private  LinePlacement linePlacement
           
private  PointPlacement pointPlacement
           
 
Constructor Summary
LabelPlacement_Impl(LinePlacement linePlacement)
          constructor initializing the class with the
LabelPlacement_Impl(PointPlacement pointPlacement)
          constructor initializing the class with the
 
Method Summary
 java.lang.String exportAsXML()
          exports the content of the Font as XML formated String
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

linePlacement

private LinePlacement linePlacement

pointPlacement

private PointPlacement pointPlacement
Constructor Detail

LabelPlacement_Impl

public LabelPlacement_Impl(PointPlacement pointPlacement)
constructor initializing the class with the


LabelPlacement_Impl

public LabelPlacement_Impl(LinePlacement linePlacement)
constructor initializing the class with the

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.

Specified by:
getPointPlacement in interface LabelPlacement
Returns:
the pointplacement for the label

setPointPlacement

public void setPointPlacement(PointPlacement pointPlacement)
sets

Specified by:
setPointPlacement in interface LabelPlacement
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.

Specified by:
getLinePlacement in interface LabelPlacement
Returns:
the lineplacement for the label

setLinePlacement

public void setLinePlacement(LinePlacement linePlacement)
sets

Specified by:
setLinePlacement in interface LabelPlacement
Parameters:
linePlacement - the lineplacement for the label

exportAsXML

public java.lang.String exportAsXML()
exports the content of the Font as XML formated String

Specified by:
exportAsXML in interface Marshallable
Returns:
xml representation of the Font