javax.media
Class DurationUpdateEvent

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

public class DurationUpdateEvent
extends ControllerEvent

DurationUpdateEvent is posted by a Controller when its duration changes.

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

Field Summary
(package private)  Time duration
           
 
Fields inherited from class javax.media.ControllerEvent
eventSrc
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DurationUpdateEvent(Controller from, Time newDuration)
           
 
Method Summary
 Time getDuration()
          Get the duration of the media that this Controller is using.
 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

duration

Time duration
Constructor Detail

DurationUpdateEvent

public DurationUpdateEvent(Controller from,
                           Time newDuration)
Method Detail

getDuration

public Time getDuration()
Get the duration of the media that this Controller is using.

Returns:
The duration of this Controller's media.

toString

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

Overrides:
toString in class ControllerEvent