com.softsynth.jmsl.view
Class PanAmpPanel

java.lang.Object
  extended by com.softsynth.jmsl.view.PVPanelAdapter
      extended by 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

Field Summary
static int SUGGESTED_HEIGHT_PER_PANEL
           
static int SUGGESTED_WIDTH_PER_PANEL
           
 
Constructor Summary
PanAmpPanel(double initPan, double initAmp, PanAmpListener listener)
           
 
Method Summary
 void addPanAmpListener(PanAmpListener listener)
           
 double getAmp()
           
 double getPan()
           
static void incIndex()
           
 void itemStateChanged(java.awt.event.ItemEvent ev)
           
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
 void notifyScrollbarValueChanged(PVScrollbar jmslUnifiedScrollbar)
           
 void removePanAmpListener(PanAmpListener listener)
           
static void resetIndex()
           
 void setAmp(double v)
           
 void setFaderName(java.lang.String s)
           
 void setPan(double v)
           
 
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
 

Field Detail

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
Constructor Detail

PanAmpPanel

public PanAmpPanel(double initPan,
                   double initAmp,
                   PanAmpListener listener)
Method Detail

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