Save This Page
Home » openjdk-7 » » sound » [javadoc | source]
abstract class: AbstractLine [javadoc | source]

All Implemented Interfaces:

Direct Known Subclasses:
    DirectDL, DirectTDL, DirectSDL, PortMixerPort, DirectClip, PortMixer, AbstractDataLine, AbstractMixer, DirectAudioDevice

Field Summary
protected  Info info     
protected  Control[] controls     
protected  AbstractMixer mixer     
 protected AbstractLine(Info info,
    AbstractMixer mixer,
    Control[] controls) 
    Constructs a new AbstractLine.
    mixer - the mixer with which this line is associated
    controls - set of supported controls
Method from Summary:
addLineListener,   close,   getControl,   getControls,   getEventDispatcher,   getFramePosition,   getLineInfo,   getLongFramePosition,   getMixer,   isControlSupported,   isOpen,   open,   removeLineListener,   sendEvents,   setOpen
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from Detail:
 public  void addLineListener(LineListener listener) 
 abstract public  void close()
 public Control getControl(Type controlType) 
 public Control[] getControls() 
    Obtains the set of controls supported by the line. If no controls are supported, returns an array of length 0.
 protected EventDispatcher getEventDispatcher() 
 public final int getFramePosition() 
    This is an error in the API: getFramePosition should return a long value. At CD quality, the int value wraps around after 13 hours.
 public Info getLineInfo() 
 public long getLongFramePosition() 
    Return the frame position in a long value This implementation returns AudioSystem.NOT_SPECIFIED.
 protected AbstractMixer getMixer() 
 public boolean isControlSupported(Type controlType) 
 public boolean isOpen() 
 abstract public  void open() throws LineUnavailableException
 public  void removeLineListener(LineListener listener) 
    Removes an audio listener.
 protected  void sendEvents(LineEvent event) 
    Send line events.
 protected  void setOpen(boolean open) 
    This method sets the open state and generates events if it changes.