SimpleFeaturePointFigure extends AbstractPointFigure implements SimpleFeatureFigure { @Override public Point getGeometry() { return geometry; } SimpleFeaturePointFigure(SimpleFeature simpleFeature, FigureStyle style);  SimpleFeaturePointFigure(SimpleFeature simpleFeature, FigureStyle normalStyle, FigureStyle selectedStyle); @Override SimpleFeature getSimpleFeature(); @Override Point getGeometry(); @Override void setGeometry(Geometry geometry); @Override void forceRegeneration(); @Override double getX(); @Override double getY(); @Override void setLocation(double x, double y); @Override double getRadius(); @Override int getMaxSelectionStage(); @Override Handle[] createHandles(int selectionStage);  }
@Test public void testScaling() throws Exception { SimpleFeatureType type = createShipTrackFeatureType(); SimpleFeature feature = createFeature(type, 1, 53.1F, 13.2F, 0.5); SimpleFeaturePointFigure figure = new SimpleFeaturePointFigure(feature, new DefaultFigureStyle()); Coordinate coordinate = figure.getGeometry().getCoordinate(); assertEquals(13.2F, coordinate.x, 1e-10); assertEquals(53.1F, coordinate.y, 1e-10); boolean closeTo = figure.isCloseTo(new Point2D.Double(13.2F, 53.1F), new AffineTransform()); assertEquals(true, closeTo); }