home *** CD-ROM | disk | FTP | other *** search
- package javax.sound.sampled;
-
- import java.util.EventObject;
-
- public class LineEvent extends EventObject {
- private final Type type;
- private final long position;
-
- public LineEvent(Line var1, Type var2, long var3) {
- super(var1);
- this.type = var2;
- this.position = var3;
- }
-
- public final Line getLine() {
- return (Line)((EventObject)this).getSource();
- }
-
- public final Type getType() {
- return this.type;
- }
-
- public final long getFramePosition() {
- return this.position;
- }
-
- public String toString() {
- return new String(this.type.toString() + " event from line " + this.getLine().toString());
- }
- }
-