Save This Page
Home » openjdk-7 » com.sun.media » sound » [javadoc | source]
com.sun.media.sound
abstract class: AbstractLine [javadoc | source]
java.lang.Object
   com.sun.media.sound.AbstractLine

All Implemented Interfaces:
    Line

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

AbstractLine
Field Summary
protected  Info info     
protected  Control[] controls     
protected  AbstractMixer mixer     
Constructor:
 protected AbstractLine(Info info,
    AbstractMixer mixer,
    Control[] controls) 
    Constructs a new AbstractLine.
    Parameters:
    mixer - the mixer with which this line is associated
    controls - set of supported controls
Method from com.sun.media.sound.AbstractLine 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 com.sun.media.sound.AbstractLine 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.