/* JWildfire - an image and animation processor written in Java Copyright (C) 1995-2016 Andreas Maschke This is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this software; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.jwildfire.create.tina.swing; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Component; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Font; import java.awt.Point; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import java.awt.event.KeyEvent; import javax.swing.JButton; import javax.swing.JCheckBox; import javax.swing.JComboBox; import javax.swing.JInternalFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JSlider; import javax.swing.JTable; import javax.swing.JTextField; import javax.swing.JTree; import javax.swing.ListSelectionModel; import javax.swing.SwingConstants; import javax.swing.WindowConstants; import javax.swing.border.EmptyBorder; import javax.swing.border.MatteBorder; import javax.swing.border.TitledBorder; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; import javax.swing.event.TreeSelectionEvent; import javax.swing.event.TreeSelectionListener; import org.jwildfire.base.Prefs; import org.jwildfire.create.tina.randomflame.RandomFlameGeneratorList; import org.jwildfire.swing.JWildfire; public class DancingFlamesInternalFrame extends JInternalFrame { private TinaController tinaController; private static final long serialVersionUID = 1L; private JPanel jContentPane = null; public DancingFlamesInternalFrame() { super(); initialize(); } /** * This method initializes this * * @return void */ private void initialize() { this.setSize(1188, 700); this.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10)); this.setLocation(new Point(JWildfire.DEFAULT_WINDOW_LEFT + 20, JWildfire.DEFAULT_WINDOW_TOP + 20)); this.setClosable(true); this.setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE); this.setIconifiable(true); this.setTitle("Dancing flames movies"); this.setVisible(false); this.setResizable(true); this.setMaximizable(false); this.setContentPane(getJContentPane()); } /** * This method initializes jContentPane * * @return javax.swing.JPanel */ private JPanel getJContentPane() { if (jContentPane == null) { jContentPane = new JPanel(); jContentPane.setLayout(new BorderLayout()); jContentPane.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10)); jContentPane.setSize(new Dimension(1097, 617)); jContentPane.add(getPanel_36(), BorderLayout.CENTER); } return jContentPane; } private JWFNumberField swfAnimatorFramesPerSecondREd; private JWFNumberField swfAnimatorFrameREd; private JPanel panel_36; private JPanel dancingFlamesFlamePnl; private JButton dancingFlamesStopShowBtn; private JPanel dancingFlamesGraph1Pnl; private JButton dancingFlamesAddFromEditorBtn; private JButton dancingFlamesAddFromClipboardBtn; private JButton dancingFlamesAddFromDiscBtn; private JPanel panel_43; private JButton dancingFlamesLoadSoundBtn; private JLabel lblRandomGenerator; private JPanel panel_52; private JPanel panel_54; private JComboBox dancingFlamesRandomGenCmb; private JWFNumberField dancingFlamesRandomCountIEd; private JButton dancingFlamesGenRandFlamesBtn; private JPanel dancingFlamesPoolFlamePreviewPnl; private JLabel lblBorderSize; private JSlider dancingFlamesBorderSizeSlider; private JButton dancingFlamesFlameToEditorBtn; private JTextField dancingFlamesFramesPerSecondIEd; private JLabel label_7; private JButton dancingFlamesDeleteFlameBtn; private JTextField dancingFlamesMorphFrameCountIEd; private JLabel lblMorphFrames; private JButton dancingFlamesStartShowBtn; private JCheckBox dancingFlamesDoRecordCBx; private JPanel panel_37; private JPanel panel_41; private JPanel panel_49; private JComboBox dancingFlamesFlameCmb; private JCheckBox dancingFlamesDrawTrianglesCBx; private JCheckBox dancingFlamesDrawFFTCBx; private JCheckBox dancingFlamesDrawFPSCBx; private JTree dancingFlamesFlamePropertiesTree; private JPanel panel_42; private JPanel panel_40; private JPanel panel_44; private JPanel panel_46; private JPanel panel_47; private JPanel panel_48; private JPanel panel_39; private JPanel panel_38; private JPanel panel_45; private JPanel dancingFlamesMotionPropertyPnl; private JScrollPane scrollPane_3; private JTable dancingFlamesMotionTable; private JComboBox dancingFlamesAddMotionCmb; private JButton dancingFlamesAddMotionBtn; private JButton dancingFlamesDeleteMotionBtn; private JButton dancingFlamesLinkMotionBtn; private JButton dancingFlamesUnlinkMotionBtn; private JButton dancingFlamesCreateMotionsBtn; private JComboBox dancingFlamesCreateMotionsCmb; private JButton dancingFlamesClearMotionsBtn; private JButton dancingFlamesLoadProjectBtn; private JButton dancingFlamesSaveProjectBtn; private JPanel panel_50; private JTable dancingFlamesMotionLinksTable; private JButton dancingFlamesReplaceFlameFromEditorBtn; private JButton dancingFlamesRenameFlameBtn; private JButton dancingFlamesRenameMotionBtn; private JCheckBox dancingFlamesMutedCBx; private JWFNumberField swfAnimatorGlobalScript1REd; private JWFNumberField swfAnimatorGlobalScript2REd; private JWFNumberField swfAnimatorGlobalScript3REd; private JWFNumberField swfAnimatorGlobalScript4REd; private JWFNumberField swfAnimatorXFormScript1REd; private JWFNumberField swfAnimatorXFormScript2REd; private JWFNumberField swfAnimatorXFormScript3REd; private JWFNumberField swfAnimatorXFormScript4REd; private JWFNumberField swfAnimatorXFormScript5REd; private JWFNumberField swfAnimatorGlobalScript5REd; private JWFNumberField swfAnimatorMotionBlurLengthREd; private JWFNumberField swfAnimatorMotionBlurTimeStepREd; private JWFNumberField swfAnimatorXFormScript6REd; private JWFNumberField swfAnimatorXFormScript7REd; private JWFNumberField swfAnimatorXFormScript8REd; private JWFNumberField swfAnimatorXFormScript9REd; private JWFNumberField swfAnimatorXFormScript10REd; private JWFNumberField swfAnimatorXFormScript11REd; private JWFNumberField swfAnimatorXFormScript12REd; private JWFNumberField swfAnimatorGlobalScript6REd; private JWFNumberField swfAnimatorGlobalScript7REd; private JWFNumberField swfAnimatorGlobalScript8REd; private JWFNumberField swfAnimatorGlobalScript9REd; private JWFNumberField swfAnimatorGlobalScript10REd; private JWFNumberField swfAnimatorGlobalScript11REd; private JWFNumberField swfAnimatorGlobalScript12REd; public JWFNumberField getSwfAnimatorFramesPerSecondREd() { return swfAnimatorFramesPerSecondREd; } public JWFNumberField getSwfAnimatorFrameREd() { return swfAnimatorFrameREd; } private JPanel getPanel_36() { if (panel_36 == null) { panel_36 = new JPanel(); panel_36.setLayout(new BorderLayout(0, 0)); panel_36.add(getPanel_46(), BorderLayout.EAST); panel_36.add(getPanel_43()); } return panel_36; } JButton getDancingFlamesStopShowBtn() { if (dancingFlamesStopShowBtn == null) { dancingFlamesStopShowBtn = new JButton(); dancingFlamesStopShowBtn.setBounds(413, 90, 125, 24); dancingFlamesStopShowBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tinaController.getDancingFractalsController().stopShow(); } }); dancingFlamesStopShowBtn.setText("Stop show"); dancingFlamesStopShowBtn.setPreferredSize(new Dimension(125, 24)); dancingFlamesStopShowBtn.setMinimumSize(new Dimension(100, 24)); dancingFlamesStopShowBtn.setMaximumSize(new Dimension(32000, 24)); dancingFlamesStopShowBtn.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); } return dancingFlamesStopShowBtn; } public JPanel getRealtimeFlamePnl() { return dancingFlamesFlamePnl; } public JPanel getRealtimeGraph1Pnl() { return dancingFlamesGraph1Pnl; } JButton getDancingFlamesAddFromEditorBtn() { if (dancingFlamesAddFromEditorBtn == null) { dancingFlamesAddFromEditorBtn = new JButton(); dancingFlamesAddFromEditorBtn.setBounds(320, 6, 135, 24); dancingFlamesAddFromEditorBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tinaController.getDancingFractalsController().importFlame(tinaController.getCurrFlame()); } }); dancingFlamesAddFromEditorBtn.setMinimumSize(new Dimension(125, 24)); dancingFlamesAddFromEditorBtn.setMaximumSize(new Dimension(30000, 24)); dancingFlamesAddFromEditorBtn.setToolTipText("Load flame from Editor and add it to the movie"); dancingFlamesAddFromEditorBtn.setText("Add from Editor"); dancingFlamesAddFromEditorBtn.setPreferredSize(new Dimension(125, 24)); dancingFlamesAddFromEditorBtn.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); } return dancingFlamesAddFromEditorBtn; } JButton getDancingFlamesAddFromClipboardBtn() { if (dancingFlamesAddFromClipboardBtn == null) { dancingFlamesAddFromClipboardBtn = new JButton(); dancingFlamesAddFromClipboardBtn.setBounds(320, 31, 135, 24); dancingFlamesAddFromClipboardBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tinaController.getDancingFractalsController().loadFlameFromClipboardButton_clicked(); } }); dancingFlamesAddFromClipboardBtn.setMinimumSize(new Dimension(125, 24)); dancingFlamesAddFromClipboardBtn.setMaximumSize(new Dimension(30000, 24)); dancingFlamesAddFromClipboardBtn.setToolTipText("Load flame from clipboard and add it to the movie"); dancingFlamesAddFromClipboardBtn.setText("Add from Clipboard"); dancingFlamesAddFromClipboardBtn.setPreferredSize(new Dimension(125, 24)); dancingFlamesAddFromClipboardBtn.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); } return dancingFlamesAddFromClipboardBtn; } JButton getDancingFlamesAddFromDiscBtn() { if (dancingFlamesAddFromDiscBtn == null) { dancingFlamesAddFromDiscBtn = new JButton(); dancingFlamesAddFromDiscBtn.setBounds(457, 31, 135, 24); dancingFlamesAddFromDiscBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tinaController.getDancingFractalsController().loadFlameButton_clicked(); } }); dancingFlamesAddFromDiscBtn.setMaximumSize(new Dimension(30000, 24)); dancingFlamesAddFromDiscBtn.setMinimumSize(new Dimension(125, 24)); dancingFlamesAddFromDiscBtn.setToolTipText("Load flames from file and add it to the movie"); dancingFlamesAddFromDiscBtn.setText("Add flames from disc"); dancingFlamesAddFromDiscBtn.setPreferredSize(new Dimension(125, 24)); dancingFlamesAddFromDiscBtn.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); } return dancingFlamesAddFromDiscBtn; } private JPanel getPanel_43() { if (panel_43 == null) { panel_43 = new JPanel(); panel_43.setLayout(new BorderLayout(0, 0)); panel_43.add(getPanel_49(), BorderLayout.SOUTH); panel_43.add(getPanel_52(), BorderLayout.CENTER); } return panel_43; } public JButton getDancingFlamesLoadSoundBtn() { return dancingFlamesLoadSoundBtn; } private JLabel getLblRandomGenerator() { if (lblRandomGenerator == null) { lblRandomGenerator = new JLabel(); lblRandomGenerator.setBounds(0, 11, 100, 14); lblRandomGenerator.setMinimumSize(new Dimension(100, 24)); lblRandomGenerator.setText("Random generator"); lblRandomGenerator.setPreferredSize(new Dimension(100, 24)); lblRandomGenerator.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); } return lblRandomGenerator; } private JPanel getPanel_52() { if (panel_52 == null) { panel_52 = new JPanel(); panel_52.setBorder(new TitledBorder(null, "Preview", TitledBorder.LEADING, TitledBorder.TOP, null, null)); panel_52.setLayout(new BorderLayout(0, 0)); panel_52.add(getPanel_54(), BorderLayout.SOUTH); dancingFlamesFlamePnl = new JPanel(); panel_52.add(dancingFlamesFlamePnl, BorderLayout.CENTER); dancingFlamesFlamePnl.setBorder(new EmptyBorder(25, 25, 25, 25)); dancingFlamesFlamePnl.setLayout(new BorderLayout(0, 0)); } return panel_52; } private JPanel getPanel_54() { if (panel_54 == null) { panel_54 = new JPanel(); panel_54.setBorder(new EmptyBorder(0, 0, 0, 0)); panel_54.setPreferredSize(new Dimension(10, 100)); dancingFlamesGraph1Pnl = new JPanel(); dancingFlamesGraph1Pnl.setMinimumSize(new Dimension(180, 24)); dancingFlamesGraph1Pnl.setPreferredSize(new Dimension(180, 24)); panel_54.add(dancingFlamesGraph1Pnl); dancingFlamesGraph1Pnl.setBorder(new MatteBorder(1, 1, 1, 1, (Color) new Color(0, 0, 0))); dancingFlamesGraph1Pnl.setLayout(new BorderLayout(0, 0)); panel_54.add(getPanel_37()); panel_54.add(getPanel_41()); panel_54.add(getDancingFlamesDrawTrianglesCBx()); panel_54.add(getDancingFlamesDrawFFTCBx()); panel_54.add(getDancingFlamesDrawFPSCBx()); dancingFlamesMutedCBx = new JCheckBox("Muted"); dancingFlamesMutedCBx.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent e) { if (tinaController != null) { tinaController.getDancingFractalsController().mutedCBx_changed(); } } }); dancingFlamesMutedCBx.setPreferredSize(new Dimension(110, 18)); dancingFlamesMutedCBx.setMinimumSize(new Dimension(140, 18)); dancingFlamesMutedCBx.setMaximumSize(new Dimension(160, 18)); panel_54.add(dancingFlamesMutedCBx); } return panel_54; } public JComboBox getDancingFlamesRandomGenCmb() { return dancingFlamesRandomGenCmb; } public JWFNumberField getDancingFlamesRandomCountIEd() { return dancingFlamesRandomCountIEd; } public JButton getDancingFlamesGenRandFlamesBtn() { return dancingFlamesGenRandFlamesBtn; } public JPanel getDancingFlamesPoolFlamePreviewPnl() { return dancingFlamesPoolFlamePreviewPnl; } private JLabel getLblBorderSize() { if (lblBorderSize == null) { lblBorderSize = new JLabel(); lblBorderSize.setHorizontalAlignment(SwingConstants.RIGHT); lblBorderSize.setText("Border size"); lblBorderSize.setPreferredSize(new Dimension(60, 24)); lblBorderSize.setMinimumSize(new Dimension(100, 24)); lblBorderSize.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); } return lblBorderSize; } public JSlider getDancingFlamesBorderSizeSlider() { return dancingFlamesBorderSizeSlider; } JButton getDancingFlamesFlameToEditorBtn() { return dancingFlamesFlameToEditorBtn; } JTextField getDancingFlamesFramesPerSecondIEd() { if (dancingFlamesFramesPerSecondIEd == null) { dancingFlamesFramesPerSecondIEd = new JTextField(); dancingFlamesFramesPerSecondIEd.setText("12"); dancingFlamesFramesPerSecondIEd.setPreferredSize(new Dimension(56, 22)); dancingFlamesFramesPerSecondIEd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10)); } return dancingFlamesFramesPerSecondIEd; } private JLabel getLabel_7() { if (label_7 == null) { label_7 = new JLabel(); label_7.setText("Frames per second"); label_7.setPreferredSize(new Dimension(110, 22)); label_7.setHorizontalAlignment(SwingConstants.RIGHT); label_7.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); } return label_7; } JButton getDancingFlamesDeleteFlameBtn() { return dancingFlamesDeleteFlameBtn; } JTextField getDancingFlamesMorphFrameCountIEd() { if (dancingFlamesMorphFrameCountIEd == null) { dancingFlamesMorphFrameCountIEd = new JTextField(); dancingFlamesMorphFrameCountIEd.setBounds(482, 57, 56, 22); dancingFlamesMorphFrameCountIEd.setText("0"); dancingFlamesMorphFrameCountIEd.setPreferredSize(new Dimension(56, 22)); dancingFlamesMorphFrameCountIEd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10)); } return dancingFlamesMorphFrameCountIEd; } JLabel getLblMorphFrames() { if (lblMorphFrames == null) { lblMorphFrames = new JLabel(); lblMorphFrames.setBounds(396, 57, 83, 22); lblMorphFrames.setText("Morph frames"); lblMorphFrames.setPreferredSize(new Dimension(120, 22)); lblMorphFrames.setHorizontalAlignment(SwingConstants.RIGHT); lblMorphFrames.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); } return lblMorphFrames; } public JButton getDancingFlamesStartShowBtn() { return dancingFlamesStartShowBtn; } JCheckBox getDancingFlamesDoRecordCBx() { if (dancingFlamesDoRecordCBx == null) { dancingFlamesDoRecordCBx = new JCheckBox("Record show"); dancingFlamesDoRecordCBx.setBounds(226, 93, 125, 18); dancingFlamesDoRecordCBx.setActionCommand("Record show"); dancingFlamesDoRecordCBx.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10)); dancingFlamesDoRecordCBx.setPreferredSize(new Dimension(125, 18)); } return dancingFlamesDoRecordCBx; } private JPanel getPanel_37() { if (panel_37 == null) { panel_37 = new JPanel(); panel_37.setPreferredSize(new Dimension(180, 32)); panel_37.setMinimumSize(new Dimension(180, 32)); panel_37.add(getLabel_7()); panel_37.add(getDancingFlamesFramesPerSecondIEd()); } return panel_37; } private JPanel getPanel_41() { if (panel_41 == null) { panel_41 = new JPanel(); panel_41.setMinimumSize(new Dimension(180, 32)); panel_41.setPreferredSize(new Dimension(180, 32)); panel_41.add(getLblBorderSize()); dancingFlamesBorderSizeSlider = new JSlider(); dancingFlamesBorderSizeSlider.setPaintLabels(true); panel_41.add(dancingFlamesBorderSizeSlider); dancingFlamesBorderSizeSlider.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { if (tinaController != null) tinaController.getDancingFractalsController().borderSizeSlider_changed(); } }); dancingFlamesBorderSizeSlider.setValue(200); dancingFlamesBorderSizeSlider.setPreferredSize(new Dimension(100, 22)); dancingFlamesBorderSizeSlider.setMaximum(640); dancingFlamesBorderSizeSlider.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); } return panel_41; } private JPanel getPanel_49() { if (panel_49 == null) { panel_49 = new JPanel(); panel_49.setBorder(new TitledBorder(null, "Project", TitledBorder.LEADING, TitledBorder.TOP, null, null)); panel_49.setPreferredSize(new Dimension(10, 130)); panel_49.setMinimumSize(new Dimension(10, 100)); panel_49.setLayout(null); dancingFlamesFlameCmb = new JComboBox(); dancingFlamesFlameCmb.setBounds(204, 57, 180, 24); panel_49.add(dancingFlamesFlameCmb); dancingFlamesFlameCmb.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent e) { if (tinaController != null) { tinaController.getDancingFractalsController().flameCmb_changed(); } } }); dancingFlamesFlameCmb.setPreferredSize(new Dimension(125, 24)); dancingFlamesFlameCmb.setMinimumSize(new Dimension(125, 24)); dancingFlamesFlameCmb.setMaximumSize(new Dimension(30000, 24)); dancingFlamesFlameCmb.setMaximumRowCount(32); dancingFlamesFlameCmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); dancingFlamesFlameCmb.setAlignmentX(1.0f); JLabel lblFlame = new JLabel(); lblFlame.setBounds(154, 58, 47, 22); panel_49.add(lblFlame); lblFlame.setText("Flame"); lblFlame.setPreferredSize(new Dimension(120, 22)); lblFlame.setHorizontalAlignment(SwingConstants.RIGHT); lblFlame.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); panel_49.add(getDancingFlamesMorphFrameCountIEd()); panel_49.add(getLblMorphFrames()); dancingFlamesLoadSoundBtn = new JButton(); dancingFlamesLoadSoundBtn.setBounds(19, 57, 125, 24); panel_49.add(dancingFlamesLoadSoundBtn); dancingFlamesLoadSoundBtn.setMaximumSize(new Dimension(125, 24)); dancingFlamesLoadSoundBtn.setMinimumSize(new Dimension(100, 24)); dancingFlamesLoadSoundBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tinaController.getDancingFractalsController().loadSoundButton_clicked(); } }); dancingFlamesLoadSoundBtn.setToolTipText("Load a *.wav or *.mp3 file"); dancingFlamesLoadSoundBtn.setText("Load sound"); dancingFlamesLoadSoundBtn.setPreferredSize(new Dimension(125, 24)); dancingFlamesLoadSoundBtn.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); dancingFlamesStartShowBtn = new JButton(); dancingFlamesStartShowBtn.setBounds(19, 90, 125, 24); panel_49.add(dancingFlamesStartShowBtn); dancingFlamesStartShowBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tinaController.getDancingFractalsController().startShow(); } }); dancingFlamesStartShowBtn.setText("Start show"); dancingFlamesStartShowBtn.setPreferredSize(new Dimension(125, 24)); dancingFlamesStartShowBtn.setMinimumSize(new Dimension(100, 24)); dancingFlamesStartShowBtn.setMaximumSize(new Dimension(32000, 24)); dancingFlamesStartShowBtn.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); panel_49.add(getDancingFlamesStopShowBtn()); panel_49.add(getDancingFlamesDoRecordCBx()); dancingFlamesLoadProjectBtn = new JButton(); dancingFlamesLoadProjectBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tinaController.getDancingFractalsController().dancingFlamesLoadProjectBtn_clicked(); } }); dancingFlamesLoadProjectBtn.setToolTipText("Load dancing flames project"); dancingFlamesLoadProjectBtn.setText("Load project"); dancingFlamesLoadProjectBtn.setPreferredSize(new Dimension(125, 24)); dancingFlamesLoadProjectBtn.setMinimumSize(new Dimension(100, 24)); dancingFlamesLoadProjectBtn.setMaximumSize(new Dimension(125, 24)); dancingFlamesLoadProjectBtn.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); dancingFlamesLoadProjectBtn.setBounds(282, 20, 125, 24); panel_49.add(dancingFlamesLoadProjectBtn); dancingFlamesSaveProjectBtn = new JButton(); dancingFlamesSaveProjectBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tinaController.getDancingFractalsController().dancingFlamesSaveProjectBtn_clicked(); } }); dancingFlamesSaveProjectBtn.setToolTipText("Save all flames, all motions and the sound as dancing flames project"); dancingFlamesSaveProjectBtn.setText("Save project"); dancingFlamesSaveProjectBtn.setPreferredSize(new Dimension(125, 24)); dancingFlamesSaveProjectBtn.setMinimumSize(new Dimension(100, 24)); dancingFlamesSaveProjectBtn.setMaximumSize(new Dimension(125, 24)); dancingFlamesSaveProjectBtn.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); dancingFlamesSaveProjectBtn.setBounds(413, 20, 125, 24); panel_49.add(dancingFlamesSaveProjectBtn); } return panel_49; } public JComboBox getDancingFlamesFlameCmb() { return dancingFlamesFlameCmb; } JCheckBox getDancingFlamesDrawTrianglesCBx() { if (dancingFlamesDrawTrianglesCBx == null) { dancingFlamesDrawTrianglesCBx = new JCheckBox("Draw triangles"); dancingFlamesDrawTrianglesCBx.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent e) { if (tinaController != null) { tinaController.getDancingFractalsController().drawTrianglesCBx_changed(); } } }); dancingFlamesDrawTrianglesCBx.setSelected(true); dancingFlamesDrawTrianglesCBx.setMaximumSize(new Dimension(160, 18)); dancingFlamesDrawTrianglesCBx.setPreferredSize(new Dimension(110, 18)); dancingFlamesDrawTrianglesCBx.setMinimumSize(new Dimension(140, 18)); } return dancingFlamesDrawTrianglesCBx; } JCheckBox getDancingFlamesDrawFFTCBx() { if (dancingFlamesDrawFFTCBx == null) { dancingFlamesDrawFFTCBx = new JCheckBox("Show FFT data"); dancingFlamesDrawFFTCBx.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent e) { if (tinaController != null) { tinaController.getDancingFractalsController().drawFFTCBx_changed(); } } }); dancingFlamesDrawFFTCBx.setSelected(true); dancingFlamesDrawFFTCBx.setPreferredSize(new Dimension(110, 18)); dancingFlamesDrawFFTCBx.setMinimumSize(new Dimension(140, 18)); dancingFlamesDrawFFTCBx.setMaximumSize(new Dimension(160, 18)); } return dancingFlamesDrawFFTCBx; } JCheckBox getDancingFlamesDrawFPSCBx() { if (dancingFlamesDrawFPSCBx == null) { dancingFlamesDrawFPSCBx = new JCheckBox("Show fps"); dancingFlamesDrawFPSCBx.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent e) { if (tinaController != null) { tinaController.getDancingFractalsController().drawFPSCBx_changed(); } } }); dancingFlamesDrawFPSCBx.setSelected(true); dancingFlamesDrawFPSCBx.setPreferredSize(new Dimension(110, 18)); dancingFlamesDrawFPSCBx.setMinimumSize(new Dimension(140, 18)); dancingFlamesDrawFPSCBx.setMaximumSize(new Dimension(160, 18)); } return dancingFlamesDrawFPSCBx; } public JTree getDancingFlamesFlamePropertiesTree() { return dancingFlamesFlamePropertiesTree; } private JPanel getPanel_42_1() { if (panel_42 == null) { panel_42 = new JPanel(); panel_42.setLayout(new BorderLayout(0, 0)); JScrollPane scrollPane_2 = new JScrollPane(); panel_42.add(scrollPane_2, BorderLayout.CENTER); dancingFlamesFlamePropertiesTree = new JTree(); dancingFlamesFlamePropertiesTree.addTreeSelectionListener(new TreeSelectionListener() { public void valueChanged(TreeSelectionEvent e) { if (tinaController != null) { tinaController.getDancingFractalsController().flamePropertiesTree_changed(e); } } }); dancingFlamesFlamePropertiesTree.setRootVisible(false); scrollPane_2.setViewportView(dancingFlamesFlamePropertiesTree); } return panel_42; } private JPanel getPanel_40() { if (panel_40 == null) { panel_40 = new JPanel(); panel_40.setPreferredSize(new Dimension(10, 62)); panel_40.setLayout(null); dancingFlamesRandomGenCmb = new JComboBox(); dancingFlamesRandomGenCmb.setBounds(100, 6, 207, 24); panel_40.add(dancingFlamesRandomGenCmb); dancingFlamesRandomGenCmb.setAlignmentX(Component.RIGHT_ALIGNMENT); dancingFlamesRandomGenCmb.setPreferredSize(new Dimension(125, 24)); dancingFlamesRandomGenCmb.setMinimumSize(new Dimension(125, 24)); dancingFlamesRandomGenCmb.setMaximumSize(new Dimension(30000, 24)); dancingFlamesRandomGenCmb.setMaximumRowCount(32); dancingFlamesRandomGenCmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); dancingFlamesRandomGenCmb.removeAllItems(); for (String name : RandomFlameGeneratorList.getNameList()) { dancingFlamesRandomGenCmb.addItem(name); } dancingFlamesRandomGenCmb.setSelectedItem(RandomFlameGeneratorList.DEFAULT_GENERATOR_NAME); panel_40.add(getLblRandomGenerator()); JLabel lblCount = new JLabel(); lblCount.setBounds(0, 36, 100, 14); panel_40.add(lblCount); lblCount.setMinimumSize(new Dimension(100, 24)); lblCount.setText("Count"); lblCount.setPreferredSize(new Dimension(100, 24)); lblCount.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); dancingFlamesRandomCountIEd = new JWFNumberField(); dancingFlamesRandomCountIEd.setBounds(100, 31, 62, 24); panel_40.add(dancingFlamesRandomCountIEd); dancingFlamesRandomCountIEd.setMinimumSize(new Dimension(125, 24)); dancingFlamesRandomCountIEd.setMaximumSize(new Dimension(30000, 24)); dancingFlamesRandomCountIEd.setValueStep(1.0); dancingFlamesRandomCountIEd.setText("12"); dancingFlamesRandomCountIEd.setPreferredSize(new Dimension(125, 24)); dancingFlamesRandomCountIEd.setOnlyIntegers(true); dancingFlamesRandomCountIEd.setMinValue(-255.0); dancingFlamesRandomCountIEd.setMaxValue(255.0); dancingFlamesRandomCountIEd.setHasMinValue(true); dancingFlamesRandomCountIEd.setHasMaxValue(true); dancingFlamesRandomCountIEd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10)); dancingFlamesRandomCountIEd.setEditable(true); dancingFlamesGenRandFlamesBtn = new JButton(); dancingFlamesGenRandFlamesBtn.setBounds(161, 31, 146, 24); panel_40.add(dancingFlamesGenRandFlamesBtn); dancingFlamesGenRandFlamesBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tinaController.getDancingFractalsController().genRandomFlames(); } }); dancingFlamesGenRandFlamesBtn.setText("Gen. random flames"); dancingFlamesGenRandFlamesBtn.setPreferredSize(new Dimension(125, 24)); dancingFlamesGenRandFlamesBtn.setMinimumSize(new Dimension(100, 24)); dancingFlamesGenRandFlamesBtn.setMaximumSize(new Dimension(30000, 24)); dancingFlamesGenRandFlamesBtn.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); panel_40.add(getDancingFlamesAddFromEditorBtn()); panel_40.add(getDancingFlamesAddFromClipboardBtn()); panel_40.add(getDancingFlamesAddFromDiscBtn()); } return panel_40; } private JPanel getPanel_44_1() { if (panel_44 == null) { panel_44 = new JPanel(); panel_44.setBorder(new EmptyBorder(0, 0, 0, 0)); panel_44.setPreferredSize(new Dimension(240, 10)); panel_44.setLayout(new BorderLayout(0, 0)); JPanel panel_1 = new JPanel(); panel_1.setBorder(new EmptyBorder(0, 0, 0, 0)); panel_1.setPreferredSize(new Dimension(160, 160)); panel_44.add(panel_1, BorderLayout.CENTER); panel_1.setLayout(new BorderLayout(0, 0)); dancingFlamesDeleteFlameBtn = new JButton(); dancingFlamesDeleteFlameBtn.setMinimumSize(new Dimension(100, 24)); dancingFlamesDeleteFlameBtn.setMaximumSize(new Dimension(160, 24)); dancingFlamesDeleteFlameBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tinaController.getDancingFractalsController().deleteFlameBtn_clicked(); } }); dancingFlamesDeleteFlameBtn.setToolTipText("Delete the current flame"); dancingFlamesDeleteFlameBtn.setText("Delete"); dancingFlamesDeleteFlameBtn.setPreferredSize(new Dimension(115, 24)); dancingFlamesDeleteFlameBtn.setMnemonic(KeyEvent.VK_D); dancingFlamesDeleteFlameBtn.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); JPanel panel_2 = new JPanel(); FlowLayout flowLayout = (FlowLayout) panel_2.getLayout(); flowLayout.setHgap(2); flowLayout.setAlignment(FlowLayout.LEADING); flowLayout.setVgap(2); panel_1.add(panel_2, BorderLayout.SOUTH); panel_2.setPreferredSize(new Dimension(135, 58)); dancingFlamesFlameToEditorBtn = new JButton(); dancingFlamesFlameToEditorBtn.setMaximumSize(new Dimension(160, 24)); dancingFlamesFlameToEditorBtn.setMinimumSize(new Dimension(100, 24)); dancingFlamesFlameToEditorBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tinaController.getDancingFractalsController().flameToEditorBtn_clicked(); } }); dancingFlamesFlameToEditorBtn.setToolTipText("Copy current flame into Editor"); dancingFlamesFlameToEditorBtn.setText("To Editor"); dancingFlamesFlameToEditorBtn.setPreferredSize(new Dimension(115, 24)); dancingFlamesFlameToEditorBtn.setMnemonic(KeyEvent.VK_E); dancingFlamesFlameToEditorBtn.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); panel_2.add(getDancingFlamesFlameToEditorBtn()); panel_2.add(getDancingFlamesReplaceFlameFromEditorBtn()); panel_2.add(getDancingFlamesRenameFlameBtn()); panel_2.add(getDancingFlamesDeleteFlameBtn()); dancingFlamesPoolFlamePreviewPnl = new JPanel(); panel_1.add(dancingFlamesPoolFlamePreviewPnl, BorderLayout.CENTER); dancingFlamesPoolFlamePreviewPnl.setMaximumSize(new Dimension(32767, 160)); dancingFlamesPoolFlamePreviewPnl.setPreferredSize(new Dimension(240, 160)); dancingFlamesPoolFlamePreviewPnl.setMinimumSize(new Dimension(160, 100)); dancingFlamesPoolFlamePreviewPnl.setBorder(new EmptyBorder(0, 0, 0, 0)); dancingFlamesPoolFlamePreviewPnl.setLayout(new BorderLayout(0, 0)); } return panel_44; } private JPanel getPanel_46() { if (panel_46 == null) { panel_46 = new JPanel(); panel_46.setPreferredSize(new Dimension(620, 10)); panel_46.setLayout(new BorderLayout(0, 0)); panel_46.add(getPanel_47(), BorderLayout.NORTH); panel_46.add(getPanel_48(), BorderLayout.CENTER); } return panel_46; } private JPanel getPanel_47() { if (panel_47 == null) { panel_47 = new JPanel(); panel_47.setBorder(new TitledBorder(null, "Flame pool", TitledBorder.LEADING, TitledBorder.TOP, null, null)); panel_47.setPreferredSize(new Dimension(10, 280)); panel_47.setLayout(new BorderLayout(0, 0)); panel_47.add(getPanel_40(), BorderLayout.NORTH); panel_47.add(getPanel_39_1(), BorderLayout.CENTER); } return panel_47; } private JPanel getPanel_48() { if (panel_48 == null) { panel_48 = new JPanel(); panel_48.setBorder(new TitledBorder(null, "Motions", TitledBorder.LEADING, TitledBorder.TOP, null, null)); panel_48.setLayout(new BorderLayout(0, 0)); panel_48.add(getPanel_38(), BorderLayout.SOUTH); panel_48.add(getPanel_45(), BorderLayout.CENTER); JPanel panel_1 = new JPanel(); panel_1.setBorder(new TitledBorder(null, "Motion-Links", TitledBorder.LEADING, TitledBorder.TOP, null, null)); panel_1.setPreferredSize(new Dimension(10, 162)); panel_48.add(panel_1, BorderLayout.NORTH); panel_1.setLayout(new BorderLayout(0, 0)); panel_1.add(getPanel_50(), BorderLayout.EAST); JPanel panel_2 = new JPanel(); panel_1.add(panel_2, BorderLayout.CENTER); panel_2.setLayout(new BorderLayout(0, 0)); JScrollPane scrollPane_2 = new JScrollPane(); panel_2.add(scrollPane_2, BorderLayout.CENTER); dancingFlamesMotionLinksTable = new JTable(); dancingFlamesMotionLinksTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); scrollPane_2.setViewportView(dancingFlamesMotionLinksTable); } return panel_48; } private JPanel getPanel_39_1() { if (panel_39 == null) { panel_39 = new JPanel(); panel_39.setLayout(new BorderLayout(0, 0)); panel_39.add(getPanel_44_1(), BorderLayout.EAST); panel_39.add(getPanel_42_1(), BorderLayout.CENTER); } return panel_39; } private JPanel getPanel_38() { if (panel_38 == null) { panel_38 = new JPanel(); panel_38.setPreferredSize(new Dimension(10, 62)); panel_38.setLayout(null); dancingFlamesAddMotionCmb = new JComboBox(); dancingFlamesAddMotionCmb.setPreferredSize(new Dimension(125, 24)); dancingFlamesAddMotionCmb.setMinimumSize(new Dimension(125, 24)); dancingFlamesAddMotionCmb.setMaximumSize(new Dimension(30000, 24)); dancingFlamesAddMotionCmb.setMaximumRowCount(32); dancingFlamesAddMotionCmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); dancingFlamesAddMotionCmb.setAlignmentX(1.0f); dancingFlamesAddMotionCmb.setBounds(132, 6, 180, 24); panel_38.add(dancingFlamesAddMotionCmb); dancingFlamesAddMotionBtn = new JButton(); dancingFlamesAddMotionBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tinaController.getDancingFractalsController().addMotionBtn_clicked(); } }); dancingFlamesAddMotionBtn.setText("Add motion"); dancingFlamesAddMotionBtn.setPreferredSize(new Dimension(125, 24)); dancingFlamesAddMotionBtn.setMinimumSize(new Dimension(100, 24)); dancingFlamesAddMotionBtn.setMaximumSize(new Dimension(32000, 24)); dancingFlamesAddMotionBtn.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); dancingFlamesAddMotionBtn.setBounds(6, 6, 125, 24); panel_38.add(dancingFlamesAddMotionBtn); dancingFlamesDeleteMotionBtn = new JButton(); dancingFlamesDeleteMotionBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tinaController.getDancingFractalsController().deleteMotionBtn_clicked(); } }); dancingFlamesDeleteMotionBtn.setText("Delete motion"); dancingFlamesDeleteMotionBtn.setPreferredSize(new Dimension(125, 24)); dancingFlamesDeleteMotionBtn.setMinimumSize(new Dimension(100, 24)); dancingFlamesDeleteMotionBtn.setMaximumSize(new Dimension(32000, 24)); dancingFlamesDeleteMotionBtn.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); dancingFlamesDeleteMotionBtn.setBounds(461, 6, 125, 24); panel_38.add(dancingFlamesDeleteMotionBtn); panel_38.add(getDancingFlamesCreateMotionsBtn()); panel_38.add(getDancingFlamesCreateMotionsCmb()); panel_38.add(getDancingFlamesClearMotionsBtn()); dancingFlamesRenameMotionBtn = new JButton(); dancingFlamesRenameMotionBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tinaController.getDancingFractalsController().renameMotionBtn_clicked(); } }); dancingFlamesRenameMotionBtn.setToolTipText("Rename the current motion"); dancingFlamesRenameMotionBtn.setText("Rename"); dancingFlamesRenameMotionBtn.setPreferredSize(new Dimension(115, 24)); dancingFlamesRenameMotionBtn.setMnemonic(KeyEvent.VK_M); dancingFlamesRenameMotionBtn.setMinimumSize(new Dimension(100, 24)); dancingFlamesRenameMotionBtn.setMaximumSize(new Dimension(160, 24)); dancingFlamesRenameMotionBtn.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); dancingFlamesRenameMotionBtn.setBounds(334, 6, 115, 24); panel_38.add(dancingFlamesRenameMotionBtn); } return panel_38; } private JPanel getPanel_45() { if (panel_45 == null) { panel_45 = new JPanel(); panel_45.setLayout(new BorderLayout(0, 0)); panel_45.add(getDancingFlamesMotionPropertyPnl(), BorderLayout.EAST); panel_45.add(getScrollPane_3(), BorderLayout.CENTER); } return panel_45; } JPanel getDancingFlamesMotionPropertyPnl() { if (dancingFlamesMotionPropertyPnl == null) { dancingFlamesMotionPropertyPnl = new JPanel(); dancingFlamesMotionPropertyPnl.setPreferredSize(new Dimension(280, 10)); dancingFlamesMotionPropertyPnl.setLayout(new BorderLayout(0, 0)); } return dancingFlamesMotionPropertyPnl; } private JScrollPane getScrollPane_3() { if (scrollPane_3 == null) { scrollPane_3 = new JScrollPane(); scrollPane_3.setViewportView(getDancingFlamesMotionTable()); } return scrollPane_3; } JTable getDancingFlamesMotionTable() { if (dancingFlamesMotionTable == null) { dancingFlamesMotionTable = new JTable(); dancingFlamesMotionTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); dancingFlamesMotionTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() { @Override public void valueChanged(ListSelectionEvent e) { if (!e.getValueIsAdjusting()) { tinaController.getDancingFractalsController().motionTableClicked(); } } }); } return dancingFlamesMotionTable; } public JComboBox getDancingFlamesAddMotionCmb() { return dancingFlamesAddMotionCmb; } public JButton getDancingFlamesAddMotionBtn() { return dancingFlamesAddMotionBtn; } public JButton getDancingFlamesDeleteMotionBtn() { return dancingFlamesDeleteMotionBtn; } public JButton getDancingFlamesLinkMotionBtn() { return dancingFlamesLinkMotionBtn; } public JButton getDancingFlamesUnlinkMotionBtn() { return dancingFlamesUnlinkMotionBtn; } private JButton getDancingFlamesCreateMotionsBtn() { if (dancingFlamesCreateMotionsBtn == null) { dancingFlamesCreateMotionsBtn = new JButton(); dancingFlamesCreateMotionsBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tinaController.getDancingFractalsController().createMotionsBtn_clicked(); } }); dancingFlamesCreateMotionsBtn.setToolTipText("Create predefined motions and linkings to all currently available flames"); dancingFlamesCreateMotionsBtn.setText("Create motions"); dancingFlamesCreateMotionsBtn.setPreferredSize(new Dimension(125, 24)); dancingFlamesCreateMotionsBtn.setMinimumSize(new Dimension(100, 24)); dancingFlamesCreateMotionsBtn.setMaximumSize(new Dimension(32000, 24)); dancingFlamesCreateMotionsBtn.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); dancingFlamesCreateMotionsBtn.setBounds(5, 31, 125, 24); } return dancingFlamesCreateMotionsBtn; } JComboBox getDancingFlamesCreateMotionsCmb() { if (dancingFlamesCreateMotionsCmb == null) { dancingFlamesCreateMotionsCmb = new JComboBox(); dancingFlamesCreateMotionsCmb.setPreferredSize(new Dimension(125, 24)); dancingFlamesCreateMotionsCmb.setMinimumSize(new Dimension(125, 24)); dancingFlamesCreateMotionsCmb.setMaximumSize(new Dimension(30000, 24)); dancingFlamesCreateMotionsCmb.setMaximumRowCount(32); dancingFlamesCreateMotionsCmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); dancingFlamesCreateMotionsCmb.setAlignmentX(1.0f); dancingFlamesCreateMotionsCmb.setBounds(131, 31, 180, 24); } return dancingFlamesCreateMotionsCmb; } JButton getDancingFlamesClearMotionsBtn() { if (dancingFlamesClearMotionsBtn == null) { dancingFlamesClearMotionsBtn = new JButton(); dancingFlamesClearMotionsBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tinaController.getDancingFractalsController().clearMotionsBtn_clicked(); } }); dancingFlamesClearMotionsBtn.setText("Clear all motions"); dancingFlamesClearMotionsBtn.setPreferredSize(new Dimension(125, 24)); dancingFlamesClearMotionsBtn.setMinimumSize(new Dimension(100, 24)); dancingFlamesClearMotionsBtn.setMaximumSize(new Dimension(32000, 24)); dancingFlamesClearMotionsBtn.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); dancingFlamesClearMotionsBtn.setBounds(461, 31, 125, 24); } return dancingFlamesClearMotionsBtn; } public JButton getDancingFlamesLoadProjectBtn() { return dancingFlamesLoadProjectBtn; } public JButton getDancingFlamesSaveProjectBtn() { return dancingFlamesSaveProjectBtn; } private JPanel getPanel_50() { if (panel_50 == null) { panel_50 = new JPanel(); panel_50.setPreferredSize(new Dimension(125, 10)); panel_50.setLayout(null); dancingFlamesLinkMotionBtn = new JButton(); dancingFlamesLinkMotionBtn.setBounds(0, 0, 125, 24); panel_50.add(dancingFlamesLinkMotionBtn); dancingFlamesLinkMotionBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tinaController.getDancingFractalsController().linkMotionBtn_clicked(); } }); dancingFlamesLinkMotionBtn.setToolTipText("Link the currently selected motion to the currently selected flame property"); dancingFlamesLinkMotionBtn.setText("Add link"); dancingFlamesLinkMotionBtn.setPreferredSize(new Dimension(125, 24)); dancingFlamesLinkMotionBtn.setMinimumSize(new Dimension(100, 24)); dancingFlamesLinkMotionBtn.setMaximumSize(new Dimension(32000, 24)); dancingFlamesLinkMotionBtn.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); dancingFlamesUnlinkMotionBtn = new JButton(); dancingFlamesUnlinkMotionBtn.setBounds(0, 23, 125, 24); panel_50.add(dancingFlamesUnlinkMotionBtn); dancingFlamesUnlinkMotionBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tinaController.getDancingFractalsController().unlinkMotionBtn_clicked(); } }); dancingFlamesUnlinkMotionBtn.setToolTipText("Unlink the currently selected motion from the currently selected flame property"); dancingFlamesUnlinkMotionBtn.setText("Delete link"); dancingFlamesUnlinkMotionBtn.setPreferredSize(new Dimension(125, 24)); dancingFlamesUnlinkMotionBtn.setMinimumSize(new Dimension(100, 24)); dancingFlamesUnlinkMotionBtn.setMaximumSize(new Dimension(32000, 24)); dancingFlamesUnlinkMotionBtn.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); } return panel_50; } public JTable getDancingFlamesMotionLinksTable() { return dancingFlamesMotionLinksTable; } JButton getDancingFlamesReplaceFlameFromEditorBtn() { if (dancingFlamesReplaceFlameFromEditorBtn == null) { dancingFlamesReplaceFlameFromEditorBtn = new JButton(); dancingFlamesReplaceFlameFromEditorBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tinaController.getDancingFractalsController().replaceFlameFromEditorBtn_clicked(tinaController.getCurrFlame()); } }); dancingFlamesReplaceFlameFromEditorBtn.setToolTipText("Replace the current flame with flame from the editor"); dancingFlamesReplaceFlameFromEditorBtn.setText("Repl from Editor"); dancingFlamesReplaceFlameFromEditorBtn.setPreferredSize(new Dimension(115, 24)); dancingFlamesReplaceFlameFromEditorBtn.setMnemonic(KeyEvent.VK_F); dancingFlamesReplaceFlameFromEditorBtn.setMinimumSize(new Dimension(100, 24)); dancingFlamesReplaceFlameFromEditorBtn.setMaximumSize(new Dimension(160, 24)); dancingFlamesReplaceFlameFromEditorBtn.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); } return dancingFlamesReplaceFlameFromEditorBtn; } JButton getDancingFlamesRenameFlameBtn() { if (dancingFlamesRenameFlameBtn == null) { dancingFlamesRenameFlameBtn = new JButton(); dancingFlamesRenameFlameBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tinaController.getDancingFractalsController().renameFlameBtn_clicked(); } }); dancingFlamesRenameFlameBtn.setToolTipText("Rename the current flame"); dancingFlamesRenameFlameBtn.setText("Rename"); dancingFlamesRenameFlameBtn.setPreferredSize(new Dimension(115, 24)); dancingFlamesRenameFlameBtn.setMnemonic(KeyEvent.VK_R); dancingFlamesRenameFlameBtn.setMinimumSize(new Dimension(100, 24)); dancingFlamesRenameFlameBtn.setMaximumSize(new Dimension(160, 24)); dancingFlamesRenameFlameBtn.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10)); } return dancingFlamesRenameFlameBtn; } public JButton getDancingFlamesRenameMotionBtn() { return dancingFlamesRenameMotionBtn; } public JCheckBox getDancingFlamesMutedCBx() { return dancingFlamesMutedCBx; } public JWFNumberField getSwfAnimatorGlobalScript1REd() { return swfAnimatorGlobalScript1REd; } public JWFNumberField getSwfAnimatorGlobalScript2REd() { return swfAnimatorGlobalScript2REd; } public JWFNumberField getSwfAnimatorGlobalScript3REd() { return swfAnimatorGlobalScript3REd; } public JWFNumberField getSwfAnimatorGlobalScript4REd() { return swfAnimatorGlobalScript4REd; } public JWFNumberField getSwfAnimatorXFormScript1REd() { return swfAnimatorXFormScript1REd; } public JWFNumberField getSwfAnimatorXFormScript2REd() { return swfAnimatorXFormScript2REd; } public JWFNumberField getSwfAnimatorXFormScript3REd() { return swfAnimatorXFormScript3REd; } public JWFNumberField getSwfAnimatorXFormScript4REd() { return swfAnimatorXFormScript4REd; } public JWFNumberField getSwfAnimatorXFormScript5REd() { return swfAnimatorXFormScript5REd; } public JWFNumberField getSwfAnimatorGlobalScript5REd() { return swfAnimatorGlobalScript5REd; } public JWFNumberField getSwfAnimatorMotionBlurLengthREd() { return swfAnimatorMotionBlurLengthREd; } public JWFNumberField getSwfAnimatorMotionBlurTimeStepREd() { return swfAnimatorMotionBlurTimeStepREd; } public JWFNumberField getSwfAnimatorXFormScript6REd() { return swfAnimatorXFormScript6REd; } public JWFNumberField getSwfAnimatorXFormScript7REd() { return swfAnimatorXFormScript7REd; } public JWFNumberField getSwfAnimatorXFormScript8REd() { return swfAnimatorXFormScript8REd; } public JWFNumberField getSwfAnimatorXFormScript9REd() { return swfAnimatorXFormScript9REd; } public JWFNumberField getSwfAnimatorXFormScript10REd() { return swfAnimatorXFormScript10REd; } public JWFNumberField getSwfAnimatorXFormScript11REd() { return swfAnimatorXFormScript11REd; } public JWFNumberField getSwfAnimatorXFormScript12REd() { return swfAnimatorXFormScript12REd; } public JWFNumberField getSwfAnimatorGlobalScript6REd() { return swfAnimatorGlobalScript6REd; } public JWFNumberField getSwfAnimatorGlobalScript7REd() { return swfAnimatorGlobalScript7REd; } public JWFNumberField getSwfAnimatorGlobalScript8REd() { return swfAnimatorGlobalScript8REd; } public JWFNumberField getSwfAnimatorGlobalScript9REd() { return swfAnimatorGlobalScript9REd; } public JWFNumberField getSwfAnimatorGlobalScript10REd() { return swfAnimatorGlobalScript10REd; } public JWFNumberField getSwfAnimatorGlobalScript11REd() { return swfAnimatorGlobalScript11REd; } public JWFNumberField getSwfAnimatorGlobalScript12REd() { return swfAnimatorGlobalScript12REd; } public void setTinaController(TinaController tinaController) { this.tinaController = tinaController; } }