public class: LineEvent
class encapsulates information that a line
sends its listeners whenever the line opens, closes, starts, or stops.
Each of these four state changes is represented by a corresponding
type of event. A listener receives the event as a parameter to its
method. By querying the event,
the listener can learn the type of event, the line responsible for
the event, and how much data the line had processed when the event occurred.
Although this class implements Serializable, attempts to
LineEvent object will fail.
Kara - Kytle
|Nested Class Summary:|
|public static class ||LineEvent.Type ||The LineEvent.Type inner class identifies what kind of event occurred on a line.
Static instances are provided for the common types (OPEN, CLOSE, START, and STOP). |
public LineEvent(Line line,
this.type = type;
this.position = position;
Constructs a new event of the specified type, originating from the specified line.
line - the source of this event
type - the event type (
position - the number of sample frames that the line had already processed when the event occurred,
IllegalArgumentException - if
|Methods from java.lang.Object:|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait|