public class BatchProcessor
extends java.lang.Object
Constructor and Description |
---|
BatchProcessor(BatchAction action) |
Modifier and Type | Method and Description |
---|---|
protected void |
astroPass2()
Pass 2: for each adjusted image, "astro" action only
|
void |
batch(java.io.File[] files,
java.lang.String fileNameModifier,
java.util.Map<java.lang.String,java.lang.Object> params)
Perform batch processing on the given array of files.
|
void |
batch(java.lang.String fileNameModifier,
java.util.Map<java.lang.String,java.lang.Object> params)
Ask the user to select the files for processing, then process them
in the background, on a worker thread.
|
protected void |
cropOthers(java.awt.Point pt1,
java.awt.Point pt2)
Nov 07: No longer static.
|
void |
doOpInBackground(java.io.File[] files,
java.lang.String fileNameModifier,
java.util.Map<java.lang.String,java.lang.Object> params,
int nSteps)
For particularly long operations, run them on a worker thread rather than
clog up swing's event dispatch thread.
|
static boolean |
isBatchCropping() |
public BatchProcessor(BatchAction action)
public void batch(java.lang.String fileNameModifier, java.util.Map<java.lang.String,java.lang.Object> params)
public void batch(java.io.File[] files, java.lang.String fileNameModifier, java.util.Map<java.lang.String,java.lang.Object> params)
fileNameModifier
- Append this string to the name of the file when it
is saved after processing, so the original is not overwritten.params
- Some batch processes expect parameters. These will have been
obtained before calling this method, either from a configuration file or
by asking the user. For example, rotation needs to know an angle.protected void astroPass2()
public static boolean isBatchCropping()
protected void cropOthers(java.awt.Point pt1, java.awt.Point pt2)
public void doOpInBackground(java.io.File[] files, java.lang.String fileNameModifier, java.util.Map<java.lang.String,java.lang.Object> params, int nSteps)