/** * @param significantDigits - Number of significant digits in the bbox coordinates, * pass null to use the default of 6. * @return String - simple string representation of a Bounds object. For example: * "5,42,10,45" */ public String toBBox(Integer significantDigits){ return BoundsImpl.toBBox(getJSObject(), significantDigits); }
/** * @return double - upper right y-coordinate of bounds */ public double getUpperRightY(){ return BoundsImpl.getMaxY(getJSObject()); }
/** * @return double - lower left y-coordinate of bounds */ public double getLowerLeftY(){ return BoundsImpl.getMinY(getJSObject()); }
/** * @return double - upper right x-coordinate of bounds */ public double getUpperRightX(){ return BoundsImpl.getMaxX(getJSObject()); }
/** * @return double - lower left x-coordinate of bounds */ public double getLowerLeftX() { return BoundsImpl.getMinX(getJSObject()); }
/** * @return double - upper right x-coordinate of bounds */ public double getUpperRightX() { return BoundsImpl.getMaxX(getJSObject()); }
/** * Method: getURL Return an image url this layer. * * Parameters: bounds - {<Bounds>} A bounds representing the bbox for the * request. * * Returns: {String} A string with the map image's url. */ public String getURL(Bounds bounds) { return ArcGIS93RestImpl.getURL(getJSObject(), bounds.getJSObject()); }
/** * * @param maxExtent - see {@link org.gwtopenmaps.openlayers.client.MapOptions#setMaxExtent(Bounds)} */ public void setMaxExtent(Bounds maxExtent) { getJSObject().setProperty("maxExtent", maxExtent.getJSObject()); }
/** * The upper bounds of the spatial coordinate reference system, provided * in the units that CRS. * OR * The upper bounds of the spatial data, provided in the units of the CRS * in which the spatial data is served. * * @param maxExtent - a bounding rectangle */ public void setMaxExtent(Bounds maxExtent) { getJSObject().setProperty("maxExtent", maxExtent.getJSObject()); }
public void setMaxExtent(Bounds bounds) { getJSObject().setProperty("maxExtent", bounds.getJSObject()); } public Bounds getMaxExtent() {
/** * * @param minExtent - see {@link org.gwtopenmaps.openlayers.client.MapOptions#setMinExtent(Bounds)} */ public void setMinExtent(Bounds minExtent) { getJSObject().setProperty("minExtent", minExtent.getJSObject()); }
/** * The bounds to be used by the filter. Use bounds for BBOX filters and * geometry for INTERSECTS or DWITHIN filters. * * @param bounds OpenLayers.Bounds */ public void setBoundsValue(Bounds bounds) { getJSObject().setProperty("value", bounds.getJSObject()); }
/** * APIProperty: tileFullExtent {<OpenLayers.Bounds>} The full extent of the * tile set. If not supplied, the layer's <maxExtent> property will be used. */ public void setTileFullExtent(Bounds tileFullExtent) { getJSObject().setProperty("tileFullExtent", tileFullExtent.getJSObject()); }
/** * * @param minExtent - see * {@link org.gwtopenmaps.openlayers.client.MapOptions#setMinExtent(Bounds)} */ public void setMinExtent(Bounds minExtent) { getJSObject().setProperty("minExtent", minExtent.getJSObject()); }
/** * @return the size of the box */ public Size getSize() { return Size.narrowToSize(BoundsImpl.getSize(getJSObject())); }
/** * @return the center of the bounds in pixel space */ public Pixel getCenterPixel() { return Pixel.narrowToPixel(BoundsImpl.getCenterPixel(this.getJSObject())); }
/** * 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)); }
/** * * @param name - OpenLayers layerName * @param url - a relative url or web uri * @param extent - bounds for the Image * @param size - the size of the picture * @param options - see {@link ImageOptions} */ public Image(String name, String url, Bounds extent, Size size, ImageOptions options){ this(ImageImpl.create(name, url, extent.getJSObject(), size.getJSObject(), options.getJSObject())); }
/** * Method: addTile addTile creates a tile, initializes it, and adds it to * the layer div. * * Parameters: bounds - {<Bounds>} position - {<Pixel>} * * Returns: {<Image>} The added OpenLayers.Tile.Image */ public void addTile(Bounds bounds, Pixel position) { ArcGIS93RestImpl.addTile(getJSObject(), bounds.getJSObject(), position.getJSObject()); }
public double[] toArray() { JSObject boundsOpaque = BoundsImpl.toArray(getJSObject()); JDoubleArray bounds = JDoubleArray.narrowToJDoubleArray(boundsOpaque); int boundsLength = bounds.length(); double[] boundsCoordinates = new double[4]; if (boundsLength == 4) { for (int i = 0; i < boundsLength; i++) { boundsCoordinates[i] = bounds.get(i); } } return boundsCoordinates; }