org.tritonus.share.sampled.mixer
Class TLine

java.lang.Object
  extended byorg.tritonus.share.sampled.mixer.TLine
All Implemented Interfaces:
Line
Direct Known Subclasses:
TDataLine, TMixer, TPort

public abstract class TLine
extends Object
implements Line

Base class for classes implementing Line.


Nested Class Summary
 
Nested classes inherited from class javax.sound.sampled.Line
Line.Info
 
Constructor Summary
protected TLine(TMixer mixer, Line.Info info)
           
protected TLine(TMixer mixer, Line.Info info, Collection controls)
           
 
Method Summary
protected  void addControl(Control control)
           
 void addLineListener(LineListener listener)
           
 void close()
           
protected  void closeImpl()
          Subclasses should override this method.
 Control getControl(Control.Type controlType)
           
 Control[] getControls()
           
 Line.Info getLineInfo()
           
protected  TMixer getMixer()
           
 boolean isControlSupported(Control.Type controlType)
           
 boolean isOpen()
           
protected  void notifyLineEvent(LineEvent.Type type)
           
protected  void notifyLineEvent(LineEvent event)
           
 void open()
           
protected  void openImpl()
          Subclasses should override this method.
protected  void removeControl(Control control)
           
 void removeLineListener(LineListener listener)
           
protected  void setLineInfo(Line.Info info)
           
protected  void setOpen(boolean bOpen)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TLine

protected TLine(TMixer mixer,
                Line.Info info)

TLine

protected TLine(TMixer mixer,
                Line.Info info,
                Collection controls)
Method Detail

getMixer

protected TMixer getMixer()

getLineInfo

public Line.Info getLineInfo()
Specified by:
getLineInfo in interface Line

setLineInfo

protected void setLineInfo(Line.Info info)

open

public void open()
          throws LineUnavailableException
Specified by:
open in interface Line
Throws:
LineUnavailableException

openImpl

protected void openImpl()
                 throws LineUnavailableException
Subclasses should override this method.

Throws:
LineUnavailableException

close

public void close()
Specified by:
close in interface Line

closeImpl

protected void closeImpl()
Subclasses should override this method.


isOpen

public boolean isOpen()
Specified by:
isOpen in interface Line

setOpen

protected void setOpen(boolean bOpen)

addControl

protected void addControl(Control control)

removeControl

protected void removeControl(Control control)

getControls

public Control[] getControls()
Specified by:
getControls in interface Line

getControl

public Control getControl(Control.Type controlType)
Specified by:
getControl in interface Line

isControlSupported

public boolean isControlSupported(Control.Type controlType)
Specified by:
isControlSupported in interface Line

addLineListener

public void addLineListener(LineListener listener)
Specified by:
addLineListener in interface Line

removeLineListener

public void removeLineListener(LineListener listener)
Specified by:
removeLineListener in interface Line

notifyLineEvent

protected void notifyLineEvent(LineEvent.Type type)

notifyLineEvent

protected void notifyLineEvent(LineEvent event)