});
envelopeYREd.setPreferredSize(new Dimension(80, 26));
panel_4.setLayout(new BorderLayout(0, 0));
JPanel panel_6 = new JPanel();
panel_6.setBorder(new TitledBorder(null, "Transform", TitledBorder.LEADING, TitledBorder.TOP, null, null));
panel_6.setPreferredSize(new Dimension(204, 10));
panel_4.add(panel_6, BorderLayout.EAST);
panel_6.setLayout(null);
envelopeXScaleREd = new JWFNumberField();
envelopeXScaleREd.setText("1");
envelopeXScaleREd.setPreferredSize(new Dimension(80, 26));
envelopeXScaleREd.setFont(new Font("Dialog", Font.PLAIN, 10));
envelopeXScaleREd.setBounds(105, 19, 80, 26);
panel_6.add(envelopeXScaleREd);
JLabel lblFrameScale = new JLabel();
lblFrameScale.setText("Frame Scale");
lblFrameScale.setPreferredSize(new Dimension(38, 26));
lblFrameScale.setHorizontalAlignment(SwingConstants.RIGHT);
lblFrameScale.setFont(new Font("Dialog", Font.BOLD, 10));
lblFrameScale.setBounds(10, 19, 93, 26);
panel_6.add(lblFrameScale);
JLabel lblFrameOffset = new JLabel();
lblFrameOffset.setText("Frame Offset");
lblFrameOffset.setPreferredSize(new Dimension(38, 26));
lblFrameOffset.setHorizontalAlignment(SwingConstants.RIGHT);
lblFrameOffset.setFont(new Font("Dialog", Font.BOLD, 10));
lblFrameOffset.setBounds(10, 45, 93, 26);
panel_6.add(lblFrameOffset);
envelopeXOffsetREd = new JWFNumberField();
envelopeXOffsetREd.setPreferredSize(new Dimension(80, 26));
envelopeXOffsetREd.setFont(new Font("Dialog", Font.PLAIN, 10));
envelopeXOffsetREd.setBounds(105, 45, 80, 26);
panel_6.add(envelopeXOffsetREd);
envelopeYScaleREd = new JWFNumberField();
envelopeYScaleREd.setText("1");
envelopeYScaleREd.setPreferredSize(new Dimension(80, 26));
envelopeYScaleREd.setFont(new Font("Dialog", Font.PLAIN, 10));
envelopeYScaleREd.setBounds(105, 83, 80, 26);
panel_6.add(envelopeYScaleREd);
JLabel lblAmplitudeScale = new JLabel();
lblAmplitudeScale.setText("Amplitude Scale");
lblAmplitudeScale.setPreferredSize(new Dimension(38, 26));
lblAmplitudeScale.setHorizontalAlignment(SwingConstants.RIGHT);
lblAmplitudeScale.setFont(new Font("Dialog", Font.BOLD, 10));
lblAmplitudeScale.setBounds(10, 83, 93, 26);
panel_6.add(lblAmplitudeScale);
JLabel lblAmplitudeOffset = new JLabel();
lblAmplitudeOffset.setText("Amplitude Offset");
lblAmplitudeOffset.setPreferredSize(new Dimension(38, 26));
lblAmplitudeOffset.setHorizontalAlignment(SwingConstants.RIGHT);
lblAmplitudeOffset.setFont(new Font("Dialog", Font.BOLD, 10));
lblAmplitudeOffset.setBounds(10, 109, 93, 26);
panel_6.add(lblAmplitudeOffset);
envelopeYOffsetREd = new JWFNumberField();
envelopeYOffsetREd.setPreferredSize(new Dimension(80, 26));
envelopeYOffsetREd.setFont(new Font("Dialog", Font.PLAIN, 10));
envelopeYOffsetREd.setBounds(105, 109, 80, 26);
panel_6.add(envelopeYOffsetREd);
envelopeApplyTransformBtn = new JButton();
envelopeApplyTransformBtn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (ctrl != null)
ctrl.applyTransform(false);
}
});
envelopeApplyTransformBtn.setToolTipText("");
envelopeApplyTransformBtn.setText("Apply");
envelopeApplyTransformBtn.setPreferredSize(new Dimension(141, 26));
envelopeApplyTransformBtn.setFont(new Font("Dialog", Font.BOLD, 10));
envelopeApplyTransformBtn.setBounds(23, 152, 80, 26);
panel_6.add(envelopeApplyTransformBtn);
JPanel panel_5 = new JPanel();
panel_5.setPreferredSize(new Dimension(174, 10));
panel_5.setBorder(new TitledBorder(null, "Edit", TitledBorder.LEADING, TitledBorder.TOP, null, null));
panel_4.add(panel_5, BorderLayout.WEST);
panel_5.setLayout(null);
envelopeAddPointButton = new JButton();
envelopeAddPointButton.setBounds(17, 20, 141, 50);
panel_5.add(envelopeAddPointButton);
envelopeAddPointButton.setFont(new Font("Dialog", Font.BOLD, 10));
envelopeAddPointButton.setToolTipText("Add a point to the curve (click at the area to place it)");
envelopeAddPointButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (ctrl != null)
ctrl.addPoint();
}
});
envelopeAddPointButton.setText("Add point");
envelopeAddPointButton.setPreferredSize(new Dimension(141, 50));
envelopeRemovePointButton = new JButton();
envelopeRemovePointButton.setBounds(17, 93, 141, 26);
panel_5.add(envelopeRemovePointButton);
envelopeRemovePointButton.setFont(new Font("Dialog", Font.BOLD, 10));
envelopeRemovePointButton.setToolTipText("Remove a point (after clikcing this button, click at a point)");
envelopeRemovePointButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (ctrl != null)
ctrl.removePoint();
}
});
envelopeRemovePointButton.setText("Remove point");
envelopeRemovePointButton.setPreferredSize(new Dimension(141, 26));
envelopeClearButton = new JButton();
envelopeClearButton.setBounds(17, 157, 141, 26);
panel_5.add(envelopeClearButton);
envelopeClearButton.setFont(new Font("Dialog", Font.BOLD, 10));
envelopeClearButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (ctrl != null)
ctrl.clearEnvelope();
}
});
envelopeClearButton.setText("Reset curve");
envelopeClearButton.setPreferredSize(new Dimension(141, 26));
envelopeApplyTransformReverseBtn = new JButton();
envelopeApplyTransformReverseBtn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (ctrl != null)
ctrl.applyTransform(true);
}
});
envelopeApplyTransformReverseBtn.setToolTipText("Apply, but revert params, can also be used as undo-function");
envelopeApplyTransformReverseBtn.setText("Reverse");
envelopeApplyTransformReverseBtn.setPreferredSize(new Dimension(141, 26));
envelopeApplyTransformReverseBtn.setFont(new Font("Dialog", Font.BOLD, 10));
envelopeApplyTransformReverseBtn.setBounds(105, 152, 80, 26);
panel_6.add(envelopeApplyTransformReverseBtn);
panel_7 = new JPanel();
panel_7.setBorder(new TitledBorder(null, "MP3 Sound", TitledBorder.LEADING, TitledBorder.TOP, null, null));
panel_4.add(panel_7, BorderLayout.CENTER);
panel_7.setLayout(null);
envelopeImportMP3Button = new JButton();
envelopeImportMP3Button.setBounds(16, 21, 184, 26);