org.gwtopenmaps.openlayers.client.layer
Class Image

java.lang.Object
  extended by org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
      extended by org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
          extended by org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper
              extended by org.gwtopenmaps.openlayers.client.layer.Layer
                  extended by 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

Field Summary
 
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
 
Fields inherited from class org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper
eventListeners
 
Constructor Summary
protected Image(JSObject imageLayer)
           
  Image(String name, String url, Bounds extent, Size size, ImageOptions options)
           
 
Method Summary
 Bounds getExtent()
           
 Size getSize()
           
 String getUrl()
           
 Image narrowToImage(JSObject imageLayer)
           
 void setMap(Map map)
           
 void setUrl(String url)
          Change the url for the image.
 
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 org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper
getListeners, narrowToOpenLayersEObjectWrapper, removeListener
 
Methods inherited from class org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
getClassName, getEvents, narrowToOpenLayersObjectWrapper
 
Methods inherited from class org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
getJSObject, setJSObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Image

protected Image(JSObject imageLayer)

Image

public Image(String name,
             String url,
             Bounds extent,
             Size size,
             ImageOptions options)
Parameters:
name - - OpenLayers layerName
url - - a relative url or web uri
extent - - bounds for the Image
size - - the size of the picture
options - - see ImageOptions
Method Detail

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.