use of org.jwildfire.create.tina.base.Flame in project JWildfire by thargor6.
the class TinaController method distributeColorsBtn_clicked.
public void distributeColorsBtn_clicked() {
Flame flame = getCurrFlame();
if (flame != null) {
saveUndoPoint();
getCurrLayer().distributeColors();
transformationChanged(true);
}
}
use of org.jwildfire.create.tina.base.Flame in project JWildfire by thargor6.
the class TinaController method resetDOFSettings.
public void resetDOFSettings() {
Flame flame = getCurrFlame();
if (flame != null) {
saveUndoPoint();
flame.resetDOFSettings();
refreshUI();
}
}
use of org.jwildfire.create.tina.base.Flame in project JWildfire by thargor6.
the class TinaController method resetBokehSettings.
public void resetBokehSettings() {
Flame flame = getCurrFlame();
if (flame != null) {
saveUndoPoint();
flame.resetBokehSettings();
refreshUI();
}
}
use of org.jwildfire.create.tina.base.Flame in project JWildfire by thargor6.
the class TinaController method xFormModSaturationRandomizeBtn_Clicked.
public void xFormModSaturationRandomizeBtn_Clicked(boolean pWholeFractal) {
if (pWholeFractal) {
Flame flame = getCurrFlame();
if (flame != null) {
saveUndoPoint();
for (Layer layer : flame.getLayers()) {
for (XForm xForm : layer.getXForms()) {
xForm.randomizeModSaturation();
}
}
refreshXFormUI(getCurrXForm(XFormType.BOTH));
refreshFlameImage(true, false, 1, true, false);
}
} else {
XForm xForm = getCurrXForm(XFormType.NORMAL);
if (xForm != null) {
saveUndoPoint();
xForm.randomizeModSaturation();
refreshXFormUI(xForm);
refreshFlameImage(true, false, 1, true, false);
}
}
}
use of org.jwildfire.create.tina.base.Flame in project JWildfire by thargor6.
the class TinaController method allsaveButton_clicked.
public void allsaveButton_clicked() {
try {
List<Flame> flames = new ArrayList<>();
for (FlameThumbnail thumbnail : randomBatch) {
if (thumbnail.getSelectCheckbox() != null && thumbnail.getSelectCheckbox().isSelected()) {
flames.add(generateExportFlame(thumbnail.getFlame()));
}
}
if (!flames.isEmpty()) {
JFileChooser chooser = new FlameFileChooser(prefs);
if (prefs.getOutputFlamePath() != null) {
try {
chooser.setCurrentDirectory(new File(prefs.getOutputFlamePath()));
} catch (Exception ex) {
ex.printStackTrace();
}
}
if (chooser.showSaveDialog(centerPanel) == JFileChooser.APPROVE_OPTION) {
File file = chooser.getSelectedFile();
String filename = file.getAbsolutePath();
if (!filename.endsWith("." + Tools.FILEEXT_FLAME)) {
filename += "." + Tools.FILEEXT_FLAME;
}
new FlameWriter().writeFlames(flames, filename);
messageHelper.showStatusMessage(getCurrFlame(), flames.size() + " " + (flames.size() > 1 ? "flames" : "flame") + " saved to disc");
prefs.setLastOutputFlameFile(file);
}
}
} catch (Throwable ex) {
errorHandler.handleError(ex);
}
}
Aggregations