javax.sound.sampled

Class LineEvent

public class LineEvent extends EventObject

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

Since: 1.3

UNKNOWN: This class is not really serializable, and attempts to serialize it will throw {@link NotSerializableException}.

Nested Class Summary
static classLineEvent.Type
This class represents the kinds of state changes that can occur to a Line.
Constructor Summary
LineEvent(Line line, LineEvent.Type type, long pos)
Create a new LineEvent with the indicated line, type, and frame position.
Method Summary
longgetFramePosition()
Return the frame position associated with this event.
LinegetLine()
Return the Line associated with this event.
LineEvent.TypegetType()
Return the Type associated with this event.
StringtoString()
Return a description of this event.

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.