net.sf.fmj.ejmf.toolkit.util
Class SourcedTimerEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.sf.fmj.ejmf.toolkit.util.SourcedTimerEvent
All Implemented Interfaces:
java.io.Serializable

public class SourcedTimerEvent
extends java.util.EventObject

This event is sent by a SourcedTimer to its listeners in response from a 'tick' by the SourcedTimer's base timer. From the book: Essential JMF, Gordon, Talley (ISBN 0130801046). Used with permission. see ejmf.toolkit.SourcedTimer see ejmf.toolkit.TimeSource

Version:
1.0
Author:
Rob Gordon & Steve Talley
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SourcedTimerEvent(java.lang.Object src, long t)
          Event constructor.
 
Method Summary
 long getTime()
          Retrieve the time from the event Object.
 void setTime(long t)
          Set the time of event object.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourcedTimerEvent

public SourcedTimerEvent(java.lang.Object src,
                         long t)
Event constructor.

Parameters:
src - Source of event.
t - Time in units of source.
Method Detail

getTime

public long getTime()
Retrieve the time from the event Object.

Returns:
Time in units of time source.

setTime

public void setTime(long t)
Set the time of event object. This operation for a client unless it happens to re-generated event for its own purposes.

Parameters:
t - Time in units detemined by caller.