Ejemplo n.º 1
0
 /**
  * Scales the bounds around a LonLat.
  *
  * @param ratio
  * @param origin default is center
  * @return a new bounds that is scaled by ratio from origin
  */
 public Bounds scale(float ratio, LonLat origin) {
   JSObject originJsObj = (origin == null) ? null : origin.getJSObject();
   return Bounds.narrowToBounds(BoundsImpl.scale(this.getJSObject(), ratio, originJsObj));
 }
Ejemplo n.º 2
0
 /**
  * Scales the bounds.
  *
  * @param ratio
  * @return a new bounds that is scaled by ratio
  */
 public Bounds scale(float ratio) {
   return Bounds.narrowToBounds(BoundsImpl.scale(this.getJSObject(), ratio, null));
 }