com.softsynth.jmsl.view
Class PatchEditorPanel

java.lang.Object
  extended by com.softsynth.jmsl.view.PVPanelAdapter
      extended by com.softsynth.jmsl.view.PatchEditorPanel
All Implemented Interfaces:
PVComponent, PVPanel, java.awt.event.ActionListener, java.awt.event.ItemListener, java.util.EventListener

public class PatchEditorPanel
extends PVPanelAdapter
implements java.awt.event.ItemListener, java.awt.event.ActionListener

Editor Panel for patches. Connect signal sources to signal processors for example. This class only deals in Namable (really Instruments) and their associated orchestraInstrumentIndex. Input is a Vector of OrchPatch which specifies what orchestraInstrumentIndexes (outputs/signalsources) are patched to other orchestraInstrumentIndexes (signal processors). Output is the modified Vector.

Author:
Nick Didkovsky, (c) 2002 Nick Didkovsky, all rights reserved

Constructor Summary
PatchEditorPanel()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ev)
           
 void addFrom(Namable obj, int fromIndex)
          add a object/index pair to the list of signal sources
 void addPatchEditorListener(PatchEditorListener listener)
           
 void addTo(Namable obj, int toIndex)
          add a object/index pair to the list of signal processors
 void build()
          This must be called after setPatches() and some calls to addFrom() and addTo()
 java.lang.String getPatchName()
           
 void itemStateChanged(java.awt.event.ItemEvent e)
           
static void main(java.lang.String[] args)
           
 void removePatchEditorListener(PatchEditorListener listener)
           
 void setFromLabelText(java.lang.String s)
           
 void setPatches(java.util.Vector patches)
           
 void setPatchName(java.lang.String s)
          Set this depending on the kind of Patches you are editing, for example "orchpatch" or "lurkerpatch"
 void setToLabelText(java.lang.String s)
           
 
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
 

Constructor Detail

PatchEditorPanel

public PatchEditorPanel()
Method Detail

addPatchEditorListener

public void addPatchEditorListener(PatchEditorListener listener)

removePatchEditorListener

public void removePatchEditorListener(PatchEditorListener listener)

setPatches

public void setPatches(java.util.Vector patches)

addFrom

public void addFrom(Namable obj,
                    int fromIndex)
add a object/index pair to the list of signal sources


addTo

public void addTo(Namable obj,
                  int toIndex)
add a object/index pair to the list of signal processors


setFromLabelText

public void setFromLabelText(java.lang.String s)

setToLabelText

public void setToLabelText(java.lang.String s)

build

public void build()
This must be called after setPatches() and some calls to addFrom() and addTo()


setPatchName

public void setPatchName(java.lang.String s)
Set this depending on the kind of Patches you are editing, for example "orchpatch" or "lurkerpatch"


getPatchName

public java.lang.String getPatchName()

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ev)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

main

public static void main(java.lang.String[] args)