javax.sound.sampled
Class LineEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.sound.sampled.LineEvent
All Implemented Interfaces:
Serializable

public class LineEvent
extends EventObject

This class holds information about a state change of a Line.

Since:
1.3
See Also:
Serialized Form

Nested Class Summary
static class LineEvent.Type
          This class represents the kinds of state changes that can occur to a Line.
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
LineEvent(Line line, LineEvent.Type type, long pos)
          Create a new LineEvent with the indicated line, type, and frame position.
 
Method Summary
 long getFramePosition()
          Return the frame position associated with this event.
 Line getLine()
          Return the Line associated with this event.
 LineEvent.Type getType()
          Return the Type associated with this event.
 String toString()
          Return a description of this event.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LineEvent

public LineEvent(Line line,
                 LineEvent.Type type,
                 long pos)
Create a new LineEvent with the indicated line, type, and frame position.

Parameters:
line - the line
type - the type of the event
pos - the frame position
Method Detail

getFramePosition

public final long getFramePosition()
Return the frame position associated with this event.


getLine

public final Line getLine()
Return the Line associated with this event.


getType

public final LineEvent.Type getType()
Return the Type associated with this event.


toString

public String toString()
Return a description of this event.

Overrides:
toString in class EventObject
Returns:
String representation of the Event
See Also:
Object.getClass(), Object.hashCode(), Class.getName(), Integer.toHexString(int)