toys
Class RhythmEvent

java.lang.Object
  extended by java.util.EventObject
      extended by toys.RhythmEvent
All Implemented Interfaces:
Serializable

public class RhythmEvent
extends EventObject

A rhythm event that carries a time stamp holding the difference to the last rhythm event.

See Also:
Serialized Form

Field Summary
private  long duration
          The beat interval.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RhythmEvent(Object src, long dt)
          Constructs a new rhythm event that hold the source and the beat interval.
 
Method Summary
 long getDuration()
          Returns the beat period.
 
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
 

Field Detail

duration

private long duration
The beat interval.

Constructor Detail

RhythmEvent

public RhythmEvent(Object src,
                   long dt)
Constructs a new rhythm event that hold the source and the beat interval.

Method Detail

getDuration

public long getDuration()
Returns the beat period.