public class BankEditorFrame extends JSLFrame implements PatchBasket, PatchHandler
Modifier and Type | Field and Description |
---|---|
protected int |
autoResizeMode |
protected BankPatch |
bankData
This is the patch we are working on.
|
protected BankEditorFrame |
instance
This BankEditorFrame instance.
|
protected int |
preferredColumnWidth |
protected Dimension |
preferredScrollableViewportSize |
Constructor and Description |
---|
BankEditorFrame(BankPatch bankPatch)
Creates a new
BankEditorFrame instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
canImport(DataFlavor[] flavors) |
void |
copySelectedPatch()
Copy the selected patch.
|
void |
deleteSelectedPatch()
Delete the selected patch.
|
JSLFrame |
editSelectedPatch()
Invoke an editor for the selected patch.
|
void |
exportPatch(File file)
Export a patch to a file.
|
Patch |
getBankData() |
List<Patch> |
getPatchCollection()
Return collection of all patches in basket.
|
Patch |
getSelectedPatch()
Get the selected patch.
|
void |
importPatch(File file)
Import a patch from a file.
|
protected void |
initBankEditorFrame()
Initialize the bank editor frame.
|
void |
pastePatch()
Paste a patch from system clipboard or drag&drop buffer.
|
void |
pastePatch(Patch p)
Add a patch into the table of patches.
|
void |
pastePatch(Patch p,
int bankNum,
int patchNum)
Add a patch into the table of patches including bank and patch numbers.
|
void |
playSelectedPatch()
Play the selected patch.
|
void |
printPatch() |
void |
reassignSelectedPatch()
Reassign the driver of the selected patch.
|
void |
revalidateDriver() |
void |
sendSelectedPatch()
Send the selected patch to the Edit buffer of the synth for the patch.
|
void |
sendToSelectedPatch()
Send the selected patch to the Edit buffer of the synth specified by
user.
|
void |
storeSelectedPatch()
Send the selected patch to a buffer of the synth specified by user.
|
addFocusListener, addJSLFrameListener, dispose, getAppConfig, getContentPane, getJFrame, getJInternalFrame, getJSLFrameListeners, getMinimumSize, getSize, getSize, getTitle, getX, getY, isClosing, isIcon, isSelected, isVisible, moveToDefaultLocation, moveToFront, pack, removeJSLFrameListener, repaint, setClosed, setJMenuBar, setLocation, setLocation, setSelected, setSize, setTitle, setVisible
protected BankPatch bankData
protected final BankEditorFrame instance
protected Dimension preferredScrollableViewportSize
protected int autoResizeMode
protected int preferredColumnWidth
public BankEditorFrame(BankPatch bankPatch)
BankEditorFrame
instance.bankPatch
- a Patch
valueprotected void initBankEditorFrame()
public void importPatch(File file) throws IOException, FileNotFoundException
PatchBasket
importPatch
in interface PatchBasket
IOException
FileNotFoundException
public void exportPatch(File file) throws IOException, FileNotFoundException
PatchBasket
exportPatch
in interface PatchBasket
IOException
FileNotFoundException
public void deleteSelectedPatch()
PatchBasket
deleteSelectedPatch
in interface PatchBasket
public void copySelectedPatch()
PatchBasket
copySelectedPatch
in interface PatchHandler
copySelectedPatch
in interface PatchBasket
public Patch getSelectedPatch()
PatchBasket
getSelectedPatch
in interface PatchHandler
getSelectedPatch
in interface PatchBasket
public void sendSelectedPatch()
PatchHandler
sendSelectedPatch
in interface PatchHandler
public void sendToSelectedPatch()
PatchHandler
sendToSelectedPatch
in interface PatchHandler
public void reassignSelectedPatch()
PatchHandler
reassignSelectedPatch
in interface PatchHandler
public void playSelectedPatch()
PatchHandler
playSelectedPatch
in interface PatchHandler
public void printPatch()
public void storeSelectedPatch()
PatchHandler
storeSelectedPatch
in interface PatchHandler
public JSLFrame editSelectedPatch()
PatchHandler
editSelectedPatch
in interface PatchHandler
public void pastePatch()
PatchBasket
pastePatch
in interface PatchBasket
public void pastePatch(Patch p)
PatchBasket
pastePatch
in interface PatchBasket
public void pastePatch(Patch p, int bankNum, int patchNum)
PatchBasket
pastePatch
in interface PatchBasket
public List<Patch> getPatchCollection()
PatchBasket
getPatchCollection
in interface PatchBasket
public void revalidateDriver()
public boolean canImport(DataFlavor[] flavors)
public Patch getBankData()
Copyright © 2014. All Rights Reserved.