public class CentroidPositionCalculatior extends java.lang.Object implements AnnotationPositionCalculator
| Constructor and Description |
|---|
CentroidPositionCalculatior() |
| Modifier and Type | Method and Description |
|---|---|
Point |
getAnnotationPosition(Feature feature)
This method returns the position where the annotation has to be displayed.
|
java.lang.String |
getName() |
public Point getAnnotationPosition(Feature feature) throws AnnotationPositionCalculationException
AnnotationPositionCalculatorgetAnnotationPosition in interface AnnotationPositionCalculatorfeature - the feature that is used like input.AnnotationPositionCalculationException - if there is an exception calculating the pointpublic java.lang.String getName()