com.esri.wms.client
Class MapURL

java.lang.Object
  extended by com.esri.wms.client.ResourceURL
      extended by com.esri.wms.client.ImageURL
          extended by com.esri.wms.client.MapURL
All Implemented Interfaces:
Serializable

public class MapURL
extends ImageURL

Defines the map URL, size of the image, and extent of the map.

See Also:
Serialized Form

Field Summary
protected  Envelope extent
          The map extent.
 
Fields inherited from class com.esri.wms.client.ImageURL
height, width
 
Fields inherited from class com.esri.wms.client.ResourceURL
typeMIME, URL
 
Constructor Summary
protected MapURL()
          Instantiates an object of MapURL.
  MapURL(String format, String url, Integer width, Integer height, Envelope extent)
          Instantiates an object of MapURL.
 
Method Summary
 boolean equals(Object obj)
          Compares the specified object with this instance for equality.
 Envelope getExtent()
          Gets the extent of the map.
 int hashCode()
          Returns the hash code of the request object.
 
Methods inherited from class com.esri.wms.client.ImageURL
getHeight, getWidth
 
Methods inherited from class com.esri.wms.client.ResourceURL
getAsStream, getMIMEType, getURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

extent

protected Envelope extent
The map extent.

Constructor Detail

MapURL

public MapURL(String format,
              String url,
              Integer width,
              Integer height,
              Envelope extent)
Instantiates an object of MapURL.

Parameters:
format - the MIME type of the URL.
url - the URL.
width - the width in pixels.
height - the height in pixels.
extent - the extent of the map.

MapURL

protected MapURL()
Instantiates an object of MapURL.

Method Detail

getExtent

public Envelope getExtent()
Gets the extent of the map.

Returns:
Returns the extent.

hashCode

public int hashCode()
Returns the hash code of the request object.

Overrides:
hashCode in class ImageURL

equals

public boolean equals(Object obj)
Compares the specified object with this instance for equality. Returns true if all fields of the two Objects are equal.

Overrides:
equals in class ImageURL
Parameters:
obj - object to be compared for equality with this instance.
Returns:
Returns true if the specified object is equal to this instance.