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 StopEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjavax.media.ControllerEvent
          extended byjavax.media.TransitionEvent
              extended byjavax.media.StopEvent
All Implemented Interfaces:
MediaEvent, java.io.Serializable
Direct Known Subclasses:
DataStarvedEvent, DeallocateEvent, EndOfMediaEvent, RestartingEvent, StopAtTimeEvent, StopByRequestEvent

public class StopEvent
extends TransitionEvent

StopEvent is a ControllerEvent that indicates that a Controller has stopped.

See Also:
Controller, ControllerListener, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
StopEvent(Controller from, int previous, int current, int target, Time mediaTime)
           
 
Method Summary
 Time getMediaTime()
          Get the clock time (media time) that was passed into the constructor.
 
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

StopEvent

public StopEvent(Controller from,
                 int previous,
                 int current,
                 int target,
                 Time mediaTime)
Parameters:
from - The Controller that generated this event.
mediaTime - The media time at which the Controller stopped.
Method Detail

getMediaTime

public Time getMediaTime()
Get the clock time (media time) that was passed into the constructor.

Returns:
The mediaTime at which the Controller stopped.

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.