public class CentroidPositionCalculatior extends 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.
|
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 String getName()