org.bff.javampd.events
Class TrackPositionChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.bff.javampd.events.TrackPositionChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class TrackPositionChangeEvent
extends java.util.EventObject

Represents a change in the position of a playing song.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TrackPositionChangeEvent(java.lang.Object source, long newTime)
          Creates a new instance of TrackPositionEvent.
 
Method Summary
 long getElapsedTime()
          Returns the elapsed time of the playing song.
 
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

TrackPositionChangeEvent

public TrackPositionChangeEvent(java.lang.Object source,
                                long newTime)
Creates a new instance of TrackPositionEvent.

Parameters:
source - the object on which the Event initially occurred
newTime - the new elapsed time of the song
Method Detail

getElapsedTime

public long getElapsedTime()
Returns the elapsed time of the playing song.

Returns:
the new elapsed time