com.softsynth.jmsl.view
Class JSynDeviceSelector
java.lang.Object
com.softsynth.jmsl.view.JSynDeviceSelector
- All Implemented Interfaces:
- PVChoice, PVComponent
public class JSynDeviceSelector
- extends java.lang.Object
- implements PVChoice
Choice list showing available devices for user to choose
- Author:
- Nick Didkovsky, (c) 2005 Nick Didkovsky, didkovn@mail.rockefeller.edu
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
INPUT_MODE
public static final int INPUT_MODE
- See Also:
- Constant Field Values
OUTPUT_MODE
public static final int OUTPUT_MODE
- See Also:
- Constant Field Values
JSynDeviceSelector
public JSynDeviceSelector(java.lang.String text,
int mode)
start
public void start()
stop
public void stop()
getMaxChannels
public int getMaxChannels(int id)
getNumChannels
public int getNumChannels(int id)
getSelectedDeviceID
public int getSelectedDeviceID()
getDeviceID
public int getDeviceID()
getComponent
public java.awt.Component getComponent()
- Specified by:
getComponent
in interface PVComponent
- Returns:
- implementation Component of the class that implements this
interface
main
public static void main(java.lang.String[] args)
addChoiceItem
public void addChoiceItem(java.lang.String label)
- Specified by:
addChoiceItem
in interface PVChoice
- Parameters:
label
-
addChoiceItem
public void addChoiceItem(java.lang.String string,
boolean b)
- Specified by:
addChoiceItem
in interface PVChoice
- Parameters:
string
- b
-
addItemListener
public void addItemListener(java.awt.event.ItemListener l)
- Specified by:
addItemListener
in interface PVChoice
- Parameters:
l
-
addKeyListener
public void addKeyListener(java.awt.event.KeyListener l)
- Specified by:
addKeyListener
in interface PVComponent
- Parameters:
l
-
equals
public boolean equals(java.lang.Object arg0)
- Overrides:
equals
in class java.lang.Object
getBackground
public java.awt.Color getBackground()
- Specified by:
getBackground
in interface PVComponent
- Returns:
getBounds
public java.awt.Rectangle getBounds()
- Specified by:
getBounds
in interface PVComponent
- Returns:
getFont
public java.awt.Font getFont()
- Specified by:
getFont
in interface PVComponent
- Returns:
getItemCount
public int getItemCount()
- Specified by:
getItemCount
in interface PVChoice
- Returns:
getParent
public java.awt.Container getParent()
- Specified by:
getParent
in interface PVComponent
- Returns:
getSelectedChoiceItem
public java.lang.Object getSelectedChoiceItem()
- Specified by:
getSelectedChoiceItem
in interface PVChoice
- Returns:
getSelectedIndex
public int getSelectedIndex()
- Specified by:
getSelectedIndex
in interface PVChoice
- Returns:
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interface PVComponent
- Returns:
removeAllChoiceItems
public void removeAllChoiceItems()
- Specified by:
removeAllChoiceItems
in interface PVChoice
removeKeyListener
public void removeKeyListener(java.awt.event.KeyListener l)
- Specified by:
removeKeyListener
in interface PVComponent
- Parameters:
l
-
selectChoiceItem
public void selectChoiceItem(int pos)
- Specified by:
selectChoiceItem
in interface PVChoice
- Parameters:
pos
-
selectChoiceItem
public void selectChoiceItem(java.lang.String str)
- Specified by:
selectChoiceItem
in interface PVChoice
- Parameters:
str
-
setBackground
public void setBackground(java.awt.Color color)
- Specified by:
setBackground
in interface PVComponent
- Parameters:
color
-
setEnabled
public void setEnabled(boolean b)
- Specified by:
setEnabled
in interface PVComponent
- Parameters:
b
-
setFont
public void setFont(java.awt.Font font)
- Specified by:
setFont
in interface PVComponent
- Parameters:
font
-
setLocation
public void setLocation(int x,
int y)
- Specified by:
setLocation
in interface PVComponent
- Parameters:
x
- y
-
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object