com.esri.wms.client
Class ImageURL

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

public class ImageURL
extends ResourceURL

A URL with optional width and height, e.g. Legend URL.

See Also:
Serialized Form

Field Summary
protected  Integer height
          The image height in pixels.
protected  Integer width
          The image width in pixels.
 
Fields inherited from class com.esri.wms.client.ResourceURL
typeMIME, URL
 
Constructor Summary
protected ImageURL()
          Instantiates an empty object of ImageURL.
  ImageURL(String format, String url, Integer width, Integer height)
          Instantiates an object of ImageURL.
 
Method Summary
 boolean equals(Object obj)
          Compares the specified object with this instance for equality.
 Integer getHeight()
          Gets the height of the ImageURL.
 Integer getWidth()
          Gets the width of the ImageURL.
 int hashCode()
          Returns the hash code of the request object.
 
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

width

protected Integer width
The image width in pixels.


height

protected Integer height
The image height in pixels.

Constructor Detail

ImageURL

public ImageURL(String format,
                String url,
                Integer width,
                Integer height)
Instantiates an object of ImageURL.

Parameters:
format - the image format. The acceptable values are specified in WMS spec.
url - the URL of the image.
width - the width in pixels, and can be null.
height - the height in pixels, and can be null.

ImageURL

protected ImageURL()
Instantiates an empty object of ImageURL.

Method Detail

getHeight

public Integer getHeight()
Gets the height of the ImageURL.

Returns:
Returns the height.

getWidth

public Integer getWidth()
Gets the width of the ImageURL.

Returns:
Returns the width.

hashCode

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

Overrides:
hashCode in class ResourceURL

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 ResourceURL
Parameters:
obj - object to be compared for equality with this instance.
Returns:
Returns true if the specified object is equal to this instance.