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, setVisibleprotected 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
PatchBasketimportPatch in interface PatchBasketIOExceptionFileNotFoundExceptionpublic void exportPatch(File file) throws IOException, FileNotFoundException
PatchBasketexportPatch in interface PatchBasketIOExceptionFileNotFoundExceptionpublic void deleteSelectedPatch()
PatchBasketdeleteSelectedPatch in interface PatchBasketpublic void copySelectedPatch()
PatchBasketcopySelectedPatch in interface PatchHandlercopySelectedPatch in interface PatchBasketpublic Patch getSelectedPatch()
PatchBasketgetSelectedPatch in interface PatchHandlergetSelectedPatch in interface PatchBasketpublic void sendSelectedPatch()
PatchHandlersendSelectedPatch in interface PatchHandlerpublic void sendToSelectedPatch()
PatchHandlersendToSelectedPatch in interface PatchHandlerpublic void reassignSelectedPatch()
PatchHandlerreassignSelectedPatch in interface PatchHandlerpublic void playSelectedPatch()
PatchHandlerplaySelectedPatch in interface PatchHandlerpublic void printPatch()
public void storeSelectedPatch()
PatchHandlerstoreSelectedPatch in interface PatchHandlerpublic JSLFrame editSelectedPatch()
PatchHandlereditSelectedPatch in interface PatchHandlerpublic void pastePatch()
PatchBasketpastePatch in interface PatchBasketpublic void pastePatch(Patch p)
PatchBasketpastePatch in interface PatchBasketpublic void pastePatch(Patch p, int bankNum, int patchNum)
PatchBasketpastePatch in interface PatchBasketpublic List<Patch> getPatchCollection()
PatchBasketgetPatchCollection in interface PatchBasketpublic void revalidateDriver()
public boolean canImport(DataFlavor[] flavors)
public Patch getBankData()
Copyright © 2014. All Rights Reserved.