com.softsynth.jmsl.view
Class PanAmpPanel
java.lang.Object
com.softsynth.jmsl.view.PVPanelAdapter
com.softsynth.jmsl.view.PanAmpPanel
- All Implemented Interfaces:
- PVComponent, PVPanel, PVScrollbarListener, java.awt.event.ItemListener, java.util.EventListener
public class PanAmpPanel
- extends PVPanelAdapter
- implements PVScrollbarListener, java.awt.event.ItemListener
- Author:
- Nick Didkovsky, copyright 2000 Nick Didkovsky, all rights reserved
Methods inherited from class com.softsynth.jmsl.view.PVPanelAdapter |
add, add, addKeyListener, equals, getBackground, getBounds, getComponent, getFont, getParent, hashCode, isEnabled, remove, removeAll, removeKeyListener, setBackground, setEnabled, setFont, setLayout, setLocation, setVisible, toString, validate |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
SUGGESTED_WIDTH_PER_PANEL
public static final int SUGGESTED_WIDTH_PER_PANEL
- See Also:
- Constant Field Values
SUGGESTED_HEIGHT_PER_PANEL
public static final int SUGGESTED_HEIGHT_PER_PANEL
- See Also:
- Constant Field Values
PanAmpPanel
public PanAmpPanel(double initPan,
double initAmp,
PanAmpListener listener)
addPanAmpListener
public void addPanAmpListener(PanAmpListener listener)
removePanAmpListener
public void removePanAmpListener(PanAmpListener listener)
setFaderName
public void setFaderName(java.lang.String s)
resetIndex
public static void resetIndex()
incIndex
public static void incIndex()
setPan
public void setPan(double v)
setAmp
public void setAmp(double v)
getPan
public double getPan()
getAmp
public double getAmp()
notifyScrollbarValueChanged
public void notifyScrollbarValueChanged(PVScrollbar jmslUnifiedScrollbar)
- Specified by:
notifyScrollbarValueChanged
in interface PVScrollbarListener
main
public static void main(java.lang.String[] args)
- Add some PanAmpPanels to a Frame, with a PanAmpListener that prints fader
index, amp, pan values as user moves faders
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent ev)
- Specified by:
itemStateChanged
in interface java.awt.event.ItemListener