Search in sources :

Example 1 with PostRecordFlameGenerator

use of org.jwildfire.create.tina.dance.action.PostRecordFlameGenerator in project JWildfire by thargor6.

the class DancingFractalsController method stopRender.

public void stopRender() throws Exception {
    if (renderThread != null) {
        if (doRecordCBx.isSelected()) {
            actionRecorder.recordStop();
        }
        renderThread.setForceAbort(true);
        if (doRecordCBx.isSelected()) {
            JFileChooser chooser = new FlameFileChooser(prefs);
            if (prefs.getOutputFlamePath() != null) {
                try {
                    chooser.setCurrentDirectory(new File(prefs.getOutputFlamePath()));
                } catch (Exception ex) {
                    ex.printStackTrace();
                }
            }
            if (chooser.showSaveDialog(flameRootPanel) == JFileChooser.APPROVE_OPTION) {
                File file = chooser.getSelectedFile();
                prefs.setLastOutputFlameFile(file);
                PostRecordFlameGenerator generator = new PostRecordFlameGenerator(Prefs.getPrefs(), project, actionRecorder, renderThread, project.getFFT());
                generator.createRecordedFlameFiles(file.getAbsolutePath());
            }
        }
        renderThread = null;
        actionRecorder = null;
    }
}
Also used : JFileChooser(javax.swing.JFileChooser) FlameFileChooser(org.jwildfire.create.tina.swing.FlameFileChooser) PostRecordFlameGenerator(org.jwildfire.create.tina.dance.action.PostRecordFlameGenerator) File(java.io.File)

Aggregations

File (java.io.File)1 JFileChooser (javax.swing.JFileChooser)1 PostRecordFlameGenerator (org.jwildfire.create.tina.dance.action.PostRecordFlameGenerator)1 FlameFileChooser (org.jwildfire.create.tina.swing.FlameFileChooser)1