javax.media
Class CachingControlEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--javax.media.MediaEvent
              |
              +--javax.media.ControllerEvent
                    |
                    +--javax.media.CachingControlEvent
All Implemented Interfaces:
java.io.Serializable

public class CachingControlEvent
extends ControllerEvent

This event is generated by a Controller that supports the CachingControl interface. It is posted when the caching state changes.

Version:
1.2, 02/08/21.
See Also:
Controller, ControllerListener, CachingControl, Serialized Form

Field Summary
(package private)  CachingControl control
           
(package private)  long progress
           
 
Fields inherited from class javax.media.ControllerEvent
eventSrc
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CachingControlEvent(Controller from, CachingControl cacheControl, long progress)
          Construct a CachingControlEvent from the required elements.
 
Method Summary
 CachingControl getCachingControl()
          Get the CachingControl object that generated the event.
 long getContentProgress()
          Get the total number of bytes of media data that have been downloaded so far.
 java.lang.String toString()
          Returns the String representation of this event's values.
 
Methods inherited from class javax.media.ControllerEvent
getSource, getSourceController
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

control

CachingControl control

progress

long progress
Constructor Detail

CachingControlEvent

public CachingControlEvent(Controller from,
                           CachingControl cacheControl,
                           long progress)
Construct a CachingControlEvent from the required elements.

Method Detail

getCachingControl

public CachingControl getCachingControl()
Get the CachingControl object that generated the event.

Returns:
The CachingControl object.

getContentProgress

public long getContentProgress()
Get the total number of bytes of media data that have been downloaded so far.

Returns:
The number of bytes of media data downloaded.

toString

public java.lang.String toString()
Returns the String representation of this event's values.

Overrides:
toString in class ControllerEvent