NextApp Echo
1.1.4

nextapp.echo
Interface ImageReference

All Known Implementing Classes:
AbstractImageReference, HttpImageReference, ResourceImageReference

public interface ImageReference

An interface used to describe a referenced image.


Field Summary
static int SIZE_UNKNOWN
          The value getWidth() or getHeight() should return if that dimension of the image is not known.
 
Method Summary
 void addImageUpdateListener(ImageUpdateListener l)
          Adds an image update listener to the image reference.
 int getHeight()
          Returns the height of the image.
 int getWidth()
          Returns the width of the image.
 void removeImageUpdateListener(ImageUpdateListener l)
          Removes an image update listener to the image reference.
 void update()
          Notifies listeners that the referenced image has changed.
 

Field Detail

SIZE_UNKNOWN

public static final int SIZE_UNKNOWN
The value getWidth() or getHeight() should return if that dimension of the image is not known.

See Also:
Constant Field Values
Method Detail

addImageUpdateListener

public void addImageUpdateListener(ImageUpdateListener l)
Adds an image update listener to the image reference. An image update listener will be notified of any changes to the image.

Parameters:
l - The ImageUpdateListener to add.

getHeight

public int getHeight()
Returns the height of the image. If the height is not known, SIZE_UNKNOWN should be returned.

Returns:
The height of the image in pixels.

getWidth

public int getWidth()
Returns the width of the image. If the width is not known, SIZE_UNKNOWN should be returned.

Returns:
The width of the image in pixels.

removeImageUpdateListener

public void removeImageUpdateListener(ImageUpdateListener l)
Removes an image update listener to the image reference. An image update listener will be notified of any changes to the image.

Parameters:
l - The ImageUpdateListener to remove.

update

public void update()
Notifies listeners that the referenced image has changed.


NextApp Echo
1.1.4