/** * Translates current screen tiles grid to avoid actual view point transformation. Such grid * translating leads to view point changing without any geo recalculations. This method also fires * view point changed event if <code>isLast</code> param is true. * * @param x Amount of offset in screen coordinate space along horizontal axis. * @param y Amount of offset in screen coordinate space along vertical axis. * @param isLast Flag, indicating that this translate call is last call in some sequence. If true, * view point change event will be fired. * @throws Exception */ @Override public void translateGrid(int x, int y, boolean isLast) throws Exception { super.translateGrid(x, y, isLast); if (isLast) { Point2D.Double screenCenterBefore = screen2Cartesian(new Point(0, 0)); Point2D.Double screenCenterAfter = screen2Cartesian(new Point(x, y)); fireViewTranslated( screenCenterAfter.x - screenCenterBefore.x, screenCenterAfter.y - screenCenterBefore.y, aoiToGeoGeometry(), aoiToCartesianGeometry()); } }