Class PatchEditorPanel

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

    • PatchEditorPanel

      public PatchEditorPanel()
  • Method Details

    • 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)