javax.media
Class ControllerEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--javax.media.MediaEvent
              |
              +--javax.media.ControllerEvent
Direct Known Subclasses:
AudioDeviceUnavailableEvent, CachingControlEvent, ControllerClosedEvent, DurationUpdateEvent, FormatChangeEvent, MediaTimeSetEvent, RateChangeEvent, StopTimeChangeEvent, TransitionEvent

public class ControllerEvent
extends MediaEvent

ControllerEvent is the base class for events generated by a Controller. These events are used by ControllerListener.

See Also:
Controller, ControllerListener, MediaEvent, Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ControllerEvent(Controller from)
           
 
Method Summary
 java.lang.Object getSource()
           
 Controller getSourceController()
          Get the Controller that posted this event.
 java.lang.String toString()
          Returns the String representation of this event's values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ControllerEvent

public ControllerEvent(Controller from)
Method Detail

getSourceController

public Controller getSourceController()
Get the Controller that posted this event. The returned Controller has at least one active listener. (The addListener method has been called on the Controller).
Returns:
The Controller that posted this event.

getSource

public java.lang.Object getSource()
Overrides:
getSource in class java.util.EventObject

toString

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