@Test public void testGetModelToSceneTransform() throws TransformException { final Point2D.Double[] ptSrcs = new Point2D.Double[]{new Point2D.Double(0, 0), new Point2D.Double(1.5, 0.5)}; final Point2D.Double[] expected = new Point2D.Double[]{new Point2D.Double(2, 2), new Point2D.Double(3.5, 2.5)}; for (int i = 0; i < 2; i++) { final Point2D.Double ptDst = new Point2D.Double(); final Point2D result = sceneTransformProvider.getModelToSceneTransform().transform(ptSrcs[i], ptDst); assertNotNull(result); assertEquals(ptDst.getX(), result.getX(), 1e-8); assertEquals(ptDst.getY(), result.getY(), 1e-8); assertEquals(expected[i].getX(), ptDst.getX(), 1e-8); assertEquals(expected[i].getY(), ptDst.getY(), 1e-8); } }
@Override public MathTransform2D getModelToSceneTransform() { return modelToSceneTransform; }
SlstrGeoCodingSceneTransformProvider implements SceneTransformProvider { @Override public MathTransform2D getModelToSceneTransform() { return modelToSceneTransform; } }
SlstrGeoCodingSceneTransformProvider implements SceneTransformProvider { @Override public MathTransform2D getModelToSceneTransform() { return modelToSceneTransform; } SlstrGeoCodingSceneTransformProvider(GeoCoding sceneGeoCoding, GeoCoding modelGeoCoding); }
SlstrGeoCodingSceneTransformProvider implements SceneTransformProvider { @Override public MathTransform2D getModelToSceneTransform() { return modelToSceneTransform; } SlstrGeoCodingSceneTransformProvider(GeoCoding sceneGeoCoding, GeoCoding modelGeoCoding); @Override MathTransform2D getModelToSceneTransform(); @Override MathTransform2D getSceneToModelTransform(); }
SlstrGeoCodingSceneTransformProvider implements SceneTransformProvider { @Override public MathTransform2D getModelToSceneTransform() { return modelToSceneTransform; } SlstrGeoCodingSceneTransformProvider(GeoCoding sceneGeoCoding, GeoCoding modelGeoCoding); @Override MathTransform2D getModelToSceneTransform(); @Override MathTransform2D getSceneToModelTransform();  }