javax.media
类 CachingControlEvent

java.lang.Object
  继承者 java.util.EventObject
      继承者 javax.media.MediaEvent
          继承者 javax.media.ControllerEvent
              继承者 javax.media.CachingControlEvent
所有已实现的接口:
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.

另请参见:
Controller, ControllerListener, CachingControl, 序列化表格

字段摘要
 
从类 java.util.EventObject 继承的字段
source
 
构造方法摘要
CachingControlEvent(Controller from, CachingControl cacheControl, long progress)
          Construct a CachingControlEvent from the required elements.
 
方法摘要
 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.
 
从类 javax.media.ControllerEvent 继承的方法
getSource, getSourceController
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

CachingControlEvent

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

方法详细信息

getCachingControl

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

返回:
The CachingControl object.

getContentProgress

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

返回:
The number of bytes of media data downloaded.

toString

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

覆盖:
ControllerEvent 中的 toString