Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR-927 (Maintenance Release)

javax.media
Class StartEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjavax.media.ControllerEvent
          extended byjavax.media.TransitionEvent
              extended byjavax.media.StartEvent
All Implemented Interfaces:
MediaEvent, java.io.Serializable

public class StartEvent
extends TransitionEvent

StartEvent is a TransitionEvent that indicates that a Controller has entered the Started state. Entering the Started state implies that syncStart has been invoked, providing a new media time to time-base time mapping. StartEvent provides the time-base time and the media-time that Started this Controller.

See Also:
Controller, ControllerListener, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
StartEvent(Controller from, int previous, int current, int target, Time mediaTime, Time tbTime)
          Construct a new StartEvent.
 
Method Summary
 Time getMediaTime()
          Get the clock time (media time) when the Controller started.
 Time getTimeBaseTime()
          Get the time-base time that started the Controller.
 
Methods inherited from class javax.media.TransitionEvent
getCurrentState, getPreviousState, getTargetState
 
Methods inherited from class javax.media.ControllerEvent
getSource, getSourceController
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StartEvent

public StartEvent(Controller from,
                  int previous,
                  int current,
                  int target,
                  Time mediaTime,
                  Time tbTime)
Construct a new StartEvent. The from argument identifies the Controller that is generating this event. The mediaTime and the tbTime identify the media-time to time-base-time mapping that Started the Controller

Parameters:
from - The Controller that has Started.
mediaTime - The media time when the Controller Started.
tbTime - The time-base time when the Controller Started.
Method Detail

getMediaTime

public Time getMediaTime()
Get the clock time (media time) when the Controller started.

Returns:
The Controller's media time when it started.

getTimeBaseTime

public Time getTimeBaseTime()
Get the time-base time that started the Controller.

Returns:
The time-base time associated with the Controller when it started.

JSR-927 (Maintenance Release)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 927 specification.