javax.media
Class TransitionEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--javax.media.MediaEvent
              |
              +--javax.media.ControllerEvent
                    |
                    +--javax.media.TransitionEvent
Direct Known Subclasses:
ConfigureCompleteEvent, PrefetchCompleteEvent, RealizeCompleteEvent, StartEvent, StopEvent

public class TransitionEvent
extends ControllerEvent

TransitionEvent is a ControllerEvent that indicates that a Controller has changed state.

See Also:
Controller, ControllerListener, Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TransitionEvent(Controller from, int previous, int current, int target)
          Construct a new TransitionEvent.
 
Method Summary
 int getCurrentState()
          Get the Controller's state at the time this event was generated
 int getPreviousState()
          Get the state that the Controller was in before this event occurred.
 int getTargetState()
          Get the Controller's target state at the time this event was generated.
 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
 

Constructor Detail

TransitionEvent

public TransitionEvent(Controller from,
                       int previous,
                       int current,
                       int target)
Construct a new TransitionEvent.
Parameters:
from - The Controller that is generating this event.
previous - The state that the Controller was in before this event.
current - The state that the Controller is in as a result of this event.
target - The state that the Controller is heading to.
Method Detail

getPreviousState

public int getPreviousState()
Get the state that the Controller was in before this event occurred.
Returns:
The Controller's previous state.

getCurrentState

public int getCurrentState()
Get the Controller's state at the time this event was generated
Returns:
The Controller's current state.

getTargetState

public int getTargetState()
Get the Controller's target state at the time this event was generated.
Returns:
The Controller's target state.

toString

public java.lang.String toString()
Returns the String representation of this event's values.
Overrides:
toString in class ControllerEvent


Submit a bug or feature
Copyright 1994-2004 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the Specification License for more details.
Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.