/** * Specifies the current zoom translation vector. * * <p> * * @param vector current zoom translation vector * @return the current zoom object */ public Zoom translate(Double[] vector) { String arrayString = ArrayUtils.createArrayString(vector); String command = "this.translate(" + arrayString + ");"; JSObject result = evalForJsObject(command); return new Zoom(webEngine, result); }
/** * Specifies the zoom scale's allowed range as a two-element array, [*minimum*, maximum]. If not * specified, returns the current scale extent, which defaults to [0, Infinity]. * * <p> * * @param scale * <p>zoom scale's allowed range as a two-element array * @return the current zoom object */ public Zoom scaleExtent(Double[] scale) { String arrayString = ArrayUtils.createArrayString(scale); String command = "this.scaleExtent(" + arrayString + ")"; JSObject result = evalForJsObject(command); return new Zoom(webEngine, result); }