public class PatchEditorFrame extends JSLFrame implements PatchHandler
Modifier and Type | Field and Description |
---|---|
protected BankEditorFrame |
bankFrame
Information about BankEditorFrame which created this PatchEditor frame
(if applicable) so we can update that frame with the edited data on
close.
|
protected int |
forceLabelWidth
For Alignment, a size to scrollbar labels, zero disables
|
protected GridBagConstraints |
gbc
Note that calling addWidget() method may change the value of this.
|
protected Patch |
p
This is the patch we are working on.
|
protected JPanel |
scrollPane
Scroll Pane for the editor frame.
|
protected ArrayList |
widgetList
A list of widget added by addWidget method.
|
Modifier | Constructor and Description |
---|---|
protected |
PatchEditorFrame(String name,
Patch patch)
Creates a new
PatchEditorFrame instance. |
protected |
PatchEditorFrame(String name,
Patch patch,
JPanel panel) |
Modifier and Type | Method and Description |
---|---|
protected void |
addWidget(JComponent parent,
SysexWidget widget,
int gridx,
int gridy,
int gridwidth,
int gridheight,
int slidernum)
Add
SysexWidget widget to
JComponent parent by using specified
GridBagConstraints. |
protected void |
addWidget(JComponent parent,
SysexWidget widget,
int gridx,
int gridy,
int gridwidth,
int gridheight,
int anchor,
int fill,
int slidernum)
Add
SysexWidget widget to
JComponent parent by using specified
GridBagConstraints. |
protected void |
addWidget(SysexWidget widget,
int gridx,
int gridy,
int gridwidth,
int gridheight,
int slidernum)
Add
SysexWidget widget to
scrollPane by using specified GridBagConstraints. |
void |
copySelectedPatch()
Copy the selected patch.
|
JSLFrame |
editSelectedPatch()
Invoke an editor for the selected patch.
|
protected void |
frameActivated()
Called when the frame is activated.
|
protected void |
frameClosing()
Called when the frame is closed.
|
protected void |
frameDeactivated()
Called when the frame is deactivated.
|
protected void |
frameOpened()
Called when the frame is opened.
|
Patch |
getPatch()
return the Patch which is edited.
|
Patch |
getSelectedPatch()
Get the selected patch.
|
void |
nextFader() |
void |
playSelectedPatch()
Play the selected patch.
|
void |
prevFader() |
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 |
setBankEditorInformation(BankEditorFrame bf,
int row,
int col)
Let bankeditorframe set information about itself when it creates a patch
editor frame.
|
void |
setVisible(boolean b)
Shows or hides this component depending on the value of parameter b.
|
void |
storeSelectedPatch()
Send the selected patch to a buffer of the synth specified by user.
|
addFocusListener, addJSLFrameListener, canImport, 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
protected Patch p
protected JPanel scrollPane
protected GridBagConstraints gbc
protected ArrayList widgetList
protected int forceLabelWidth
protected BankEditorFrame bankFrame
protected PatchEditorFrame(String name, Patch patch)
PatchEditorFrame
instance.name
- a name to display in the title bar.patch
- a reference to ISinglePatch
object stored in a
patch library or a bank patch.public void setVisible(boolean b)
JSLFrame
setVisible
in class JSLFrame
protected void frameClosing()
protected void frameOpened()
protected void frameActivated()
protected void frameDeactivated()
public void copySelectedPatch()
PatchHandler
copySelectedPatch
in interface PatchHandler
public Patch getSelectedPatch()
PatchHandler
getSelectedPatch
in interface PatchHandler
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 storeSelectedPatch()
PatchHandler
storeSelectedPatch
in interface PatchHandler
public JSLFrame editSelectedPatch()
PatchHandler
editSelectedPatch
in interface PatchHandler
protected void addWidget(JComponent parent, SysexWidget widget, int gridx, int gridy, int gridwidth, int gridheight, int anchor, int fill, int slidernum)
SysexWidget
widget
to
JComponent
parent
by using specified
GridBagConstraints.parent
- a parent JComponent
to which widget
is added.widget
- a SysexWidget
to be added.gridx
- see GridBagConstraints.gridx
.gridy
- see GridBagConstraints.gridy
.gridwidth
- see GridBagConstraints.gridwidth
.gridheight
- see GridBagConstraints.gridheight
.anchor
- see GridBagConstraints.anchor
.fill
- see GridBagConstraints.fill
.slidernum
- a slider number. Only used by ScrollBar Widgets.GridBagConstraints
protected void addWidget(JComponent parent, SysexWidget widget, int gridx, int gridy, int gridwidth, int gridheight, int slidernum)
SysexWidget
widget
to
JComponent
parent
by using specified
GridBagConstraints.
NORTHEAST
is used for the anchor
constraint and
HORIZONTAL
is used for the fill
constraint.
protected void addWidget(SysexWidget widget, int gridx, int gridy, int gridwidth, int gridheight, int slidernum)
SysexWidget
widget
to
scrollPane
by using specified GridBagConstraints.
EAST
is used for the anchor
constraint and
BOTH
is used for the fill
constraint.
public void nextFader()
public void prevFader()
public void setBankEditorInformation(BankEditorFrame bf, int row, int col)
public void revalidateDriver()
public Patch getPatch()
Copyright © 2014. All Rights Reserved.