org.gwtopenmaps.openlayers.client.layer
Class Image
java.lang.Object
org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper
org.gwtopenmaps.openlayers.client.layer.Layer
org.gwtopenmaps.openlayers.client.layer.Image
public class Image
- extends Layer
Displays data from a web accessible image.
The path to the image may be relative.
- Since:
- GWT-OL 0.4, OL 2.2
- Author:
- Edwin Commandeur - Atlis EJS
Fields inherited from class org.gwtopenmaps.openlayers.client.layer.Layer |
ARCGIS93REST_CLASS_NAME, BOXES_CLASS_NAME, GOOGLE_CLASS_NAME, GRIDLAYER_CLASS_NAME, HTTPREQUESTLAYER_CLASS_NAME, IMAGE_CLASS_NAME, MARKERS_CLASS_NAME, OSM_CLASS_NAME, TMS_CLASS_NAME, VECTOR_CLASS_NAME, WMS_CLASS_NAME, XYZ_CLASS_NAME |
Methods inherited from class org.gwtopenmaps.openlayers.client.layer.Layer |
addLayerLoadCancelListener, addLayerLoadEndListener, addLayerLoadStartListener, addLayerVisibilityChangedListener, addOptions, displayInLayerSwitcher, getId, getName, getOpacity, getZIndex, isBaseLayer, isVisible, narrowToLayer, redraw, setDisplayInLayerSwitcher, setIsBaseLayer, setIsVisible, setName, setOpacity, setZIndex |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Image
protected Image(JSObject imageLayer)
Image
public Image(String name,
String url,
Bounds extent,
Size size,
ImageOptions options)
- Parameters:
name
- - OpenLayers layerNameurl
- - a relative url or web uriextent
- - bounds for the Imagesize
- - the size of the pictureoptions
- - see ImageOptions
narrowToImage
public Image narrowToImage(JSObject imageLayer)
getExtent
public Bounds getExtent()
getSize
public Size getSize()
setMap
public void setMap(Map map)
setUrl
public void setUrl(String url)
- Change the url for the image.
getUrl
public String getUrl()
- Returns:
- String - the url of the Image
Copyright © 2011 sourceforge. All Rights Reserved.