NextApp Echo
1.0.5

nextapp.echo
Class AbstractImageReference

java.lang.Object
  extended bynextapp.echo.AbstractImageReference
All Implemented Interfaces:
ImageReference, java.io.Serializable
Direct Known Subclasses:
AwtImageReference, StreamImageReference

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

A base class from which ImageReferences which render images from binary streams are derived.

See Also:
Serialized Form

Field Summary
protected  EventListenerList listenerList
          A storage facility for EventListeners.
 
Fields inherited from interface nextapp.echo.ImageReference
SIZE_UNKNOWN
 
Constructor Summary
AbstractImageReference()
          Default constructor.
 
Method Summary
 void addImageUpdateListener(ImageUpdateListener l)
          Adds an image update listener to the image reference.
 void removeImageUpdateListener(ImageUpdateListener l)
          Removes an image update listener to the image reference.
 void update()
          Notifies listeners that the referenced image has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nextapp.echo.ImageReference
getHeight, getWidth
 

Field Detail

listenerList

protected EventListenerList listenerList
A storage facility for EventListeners. This EventListenerList is lazy-created, so it may be null if no ImageUpdateListeners have yet been registered.

Constructor Detail

AbstractImageReference

public AbstractImageReference()
Default constructor.

Method Detail

addImageUpdateListener

public void addImageUpdateListener(ImageUpdateListener l)
Description copied from interface: ImageReference
Adds an image update listener to the image reference. An image update listener will be notified of any changes to the image.

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

removeImageUpdateListener

public void removeImageUpdateListener(ImageUpdateListener l)
Description copied from interface: ImageReference
Removes an image update listener to the image reference. An image update listener will be notified of any changes to the image.

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

update

public void update()
Description copied from interface: ImageReference
Notifies listeners that the referenced image has changed.

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

NextApp Echo
1.0.5