Package com.softsynth.jmsl.view
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 Summary
Constructors Constructor Description PatchEditorPanel()
-
Method Summary
Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent ev)
void
addFrom(Namable obj, int fromIndex)
add a object/index pair to the list of signal sourcesvoid
addPatchEditorListener(PatchEditorListener listener)
void
addTo(Namable obj, int toIndex)
add a object/index pair to the list of signal processorsvoid
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, getLocation, 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 Details
-
PatchEditorPanel
public PatchEditorPanel()
-
-
Method Details
-
addPatchEditorListener
-
removePatchEditorListener
-
setPatches
public void setPatches(java.util.Vector patches) -
addFrom
add a object/index pair to the list of signal sources -
addTo
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 interfacejava.awt.event.ItemListener
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent ev)- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
main
public static void main(java.lang.String[] args)
-