net.aerith.misao.toolkit.ImageConversion
Class ImageConversionOperation
java.lang.Object
|
+--net.aerith.misao.util.OperationObservable
|
+--net.aerith.misao.util.Operation
|
+--net.aerith.misao.util.MultiTaskOperation
|
+--net.aerith.misao.toolkit.ImageConversion.ImageConversionOperation
- public class ImageConversionOperation
- extends MultiTaskOperation
The ImageConversionOperation
represents an operation
to create a new image by converting the image format and
transforming the image.
Method Summary |
protected void |
notifyEnd(java.lang.Exception exception)
Notifies when the operation ends. |
protected void |
notifyStart()
Notifies when the operation starts. |
void |
operate(java.lang.Object object)
Operates on one item. |
int |
showSettingDialog()
Shows the dialog to set parameters. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
dialog
protected OutputDialog dialog
- The dialog to select a directory to create converted images
into.
gallery
protected HtmlImageGallery gallery
- The HTML gallery.
ImageConversionOperation
public ImageConversionOperation(MultiTaskConductor conductor)
- Constructs an
ImageConversionOperation
.
- Parameters:
conductor
- the conductor of multi task operation.
showSettingDialog
public int showSettingDialog()
- Shows the dialog to set parameters.
- Overrides:
- showSettingDialog in class MultiTaskOperation
- Returns:
- 0 if OK button is pushed, or 2 if Cancel
button is pushed.
notifyStart
protected void notifyStart()
- Notifies when the operation starts.
- Overrides:
- notifyStart in class OperationObservable
notifyEnd
protected void notifyEnd(java.lang.Exception exception)
- Notifies when the operation ends.
- Overrides:
- notifyEnd in class OperationObservable
- Parameters:
exception
- the exception if an error occurs, or null if
succeeded.
operate
public void operate(java.lang.Object object)
throws java.lang.Exception
- Operates on one item. This is invoked from the conductor of
multi task operation.
- Overrides:
- operate in class MultiTaskOperation
- Parameters:
object
- the target object to operate.- Throws:
- java.lang.Exception - if an error occurs.