Package org.geomajas.puregwt.client.spatial

Examples of org.geomajas.puregwt.client.spatial.Bbox.translate()


      double dX = (rescalePoint.getX() - position.getX()) * (1 - 1 / factor);
      double dY = (rescalePoint.getY() - position.getY()) * (1 - 1 / factor);

      // Apply translation to set the BBOX on the correct location:
      newBbox.setCenterPoint(new Coordinate(position.getX(), position.getY()));
      newBbox.translate(dX, dY);

      // Now apply on this view port:
      scale = limitedScale;
      position = newBbox.getCenterPoint();
      if (eventBus != null) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.