net.java.joglutils.msg.test
Class ProgressEvent<IDENT>

java.lang.Object
  extended by java.util.EventObject
      extended by net.java.joglutils.msg.test.ProgressEvent<IDENT>
All Implemented Interfaces:
Serializable

public class ProgressEvent<IDENT>
extends EventObject

Represents a progress event during downloading or uploading of an image.

Author:
Kenneth Russell
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ProgressEvent(Fetcher<IDENT> source, Object imageDescriptor, IDENT clientIdentifier, float fractionCompleted, boolean isDownload)
           
 
Method Summary
 IDENT getClientIdentifier()
           
 float getFractionCompleted()
          Returns a fraction between 0.0f and 1.0f, or a negative number if we weren't able to make a determination of the estimated image size.
 Object getImageDescriptor()
           
 boolean isDownload()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProgressEvent

public ProgressEvent(Fetcher<IDENT> source,
                     Object imageDescriptor,
                     IDENT clientIdentifier,
                     float fractionCompleted,
                     boolean isDownload)
Method Detail

getImageDescriptor

public Object getImageDescriptor()

getClientIdentifier

public IDENT getClientIdentifier()

getFractionCompleted

public float getFractionCompleted()
Returns a fraction between 0.0f and 1.0f, or a negative number if we weren't able to make a determination of the estimated image size.


isDownload

public boolean isDownload()