nextapp.echo
Class HttpImageReference

java.lang.Object
  extended by nextapp.echo.HttpImageReference
All Implemented Interfaces:
java.io.Serializable, ImageReference

public class HttpImageReference
extends java.lang.Object
implements ImageReference, java.io.Serializable

A reference to an image that may be retrieved through an HTTP request.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface nextapp.echo.ImageReference
SIZE_UNKNOWN
 
Constructor Summary
HttpImageReference(java.lang.String uri)
          Creates a reference to an image at the specified URI of unknown size.
HttpImageReference(java.lang.String uri, int width, int height)
          Creates a reference to an image at the specified URI of the given width and height.
 
Method Summary
 void addImageUpdateListener(ImageUpdateListener l)
          Not supported.
 int getHeight()
          Returns the height of the image in pixels.
 java.lang.String getUri()
          Returns the URI that contains the image.
 int getWidth()
          Returns the width of the image in pixels.
 void removeImageUpdateListener(ImageUpdateListener l)
          Not supported.
 void update()
          Not supported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpImageReference

public HttpImageReference(java.lang.String uri)
Creates a reference to an image at the specified URI of unknown size.

Parameters:
uri - A URI referencing the image.

HttpImageReference

public HttpImageReference(java.lang.String uri,
                          int width,
                          int height)
Creates a reference to an image at the specified URI of the given width and height. If the image is not of the given width and height, it will be scaled to the given width and height.

Parameters:
uri - A URI referencing the image.
width - The width at which to render the image, in pixels.
height - The height at which to render the image in pixels.
Method Detail

addImageUpdateListener

public void addImageUpdateListener(ImageUpdateListener l)
Not supported.

Specified by:
addImageUpdateListener in interface ImageReference
Parameters:
l - The ImageUpdateListener to add.
See Also:
ImageReference.addImageUpdateListener(ImageUpdateListener)

getHeight

public int getHeight()
Returns the height of the image in pixels.

Specified by:
getHeight in interface ImageReference
Returns:
The height of the image in pixels.
See Also:
ImageReference.getHeight()

getUri

public java.lang.String getUri()
Returns the URI that contains the image.

Returns:
The URI that contains the image.

getWidth

public int getWidth()
Returns the width of the image in pixels.

Specified by:
getWidth in interface ImageReference
Returns:
The width of the image in pixels.
See Also:
ImageReference.getWidth()

removeImageUpdateListener

public void removeImageUpdateListener(ImageUpdateListener l)
Not supported.

Specified by:
removeImageUpdateListener in interface ImageReference
Parameters:
l - The ImageUpdateListener to remove.
See Also:
ImageReference.removeImageUpdateListener(ImageUpdateListener)

update

public void update()
Not supported.

Specified by:
update in interface ImageReference
See Also:
ImageReference.update()