net.aerith.misao.toolkit.ImageConversion
Class ConversionDialog

java.lang.Object
  |
  +--net.aerith.misao.gui.dialog.Dialog
        |
        +--net.aerith.misao.toolkit.ImageConversion.ConversionDialog

public class ConversionDialog
extends Dialog

The ConversionDialog represents a dialog to set up parameters to convert the format of and transform all of the images.


Inner Class Summary
protected  class ConversionDialog.FilterButtonListener
          The FilterButtonListener is a listener class of menu selection to select image processing filters.
protected  class ConversionDialog.FilterCheckListener
          The FilterCheckListener is a listener class of menu selection to apply image processing filters.
protected  class ConversionDialog.InputFormatListener
          The InputFormatListener is a listener class of menu selection to specify the input format.
protected  class ConversionDialog.OutputFormatListener
          The OutputFormatListener is a listener class of menu selection to specify the output format.
protected  class ConversionDialog.TransformListener
          The TransformListener is a listener class of menu selection to transform the images.
 
Field Summary
protected  javax.swing.JButton button_filter
          The button to show the dialog to set the image processing filters.
protected  javax.swing.JCheckBox check_change_filename
          The check box to change the file names by default.
protected  javax.swing.JCheckBox check_filter
          The check box to apply the image processing filters.
protected  javax.swing.JCheckBox check_input_format
          The check box to select the input image format.
protected  javax.swing.JCheckBox check_output_format
          The check box to select the output image format.
protected  javax.swing.JCheckBox check_transform
          The check box to set the image size or scale.
protected  javax.swing.JComboBox combo_input_format
          The combo box to select the input image format.
protected  javax.swing.JComboBox combo_output_format
          The combo box to select the output image format.
protected  FilterSet filter_set
          The set of image processing filters.
protected  ImageFileFilter[] input_filters
          The list of input image file filters.
protected  ImageFileFilter[] output_filters
          The list of output image file filters.
protected  TransformationPanel transform_panel
          The panel to set the image size or scale.
 
Fields inherited from class net.aerith.misao.gui.dialog.Dialog
components, default_values, parent_pane
 
Constructor Summary
ConversionDialog()
          Constructs a ConversionDialog.
 
Method Summary
 boolean appliesImageProcessingFilters()
          Returns true when to apply image processing filters to all images.
 boolean changesFilenames()
          Returns true when to change all output image file names by default.
 FilterSet getFilterSet()
          Gets the set of image processing filters.
 Size getImageSize()
          Gets the image size.
 ImageFileFilter getInputFileFilter()
          Gets the FileFilter for the selected input image format.
 ImageFileFilter getOutputFileFilter()
          Gets the FileFilter for the selected output image format.
 int getScale()
          Gets the image scale.
protected  java.lang.String getTitle()
          Gets the title of the dialog.
 boolean isScale()
          Returns true if the scale is selected.
 boolean isSize()
          Returns true if the size is selected.
 boolean rescalesSbig()
          Returns true when to rescale ST-4/6 Image.
 boolean specifiesInputFormat()
          Returns true when to read images in the same format.
 boolean specifiesOutputFormat()
          Returns true when to create images in the same format.
 boolean transformsAll()
          Returns true when to create images in the same size or scale.
 
Methods inherited from class net.aerith.misao.gui.dialog.Dialog
saveDefaultValues, show
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

check_input_format

protected javax.swing.JCheckBox check_input_format
The check box to select the input image format.

combo_input_format

protected javax.swing.JComboBox combo_input_format
The combo box to select the input image format.

input_filters

protected ImageFileFilter[] input_filters
The list of input image file filters.

check_output_format

protected javax.swing.JCheckBox check_output_format
The check box to select the output image format.

combo_output_format

protected javax.swing.JComboBox combo_output_format
The combo box to select the output image format.

output_filters

protected ImageFileFilter[] output_filters
The list of output image file filters.

check_change_filename

protected javax.swing.JCheckBox check_change_filename
The check box to change the file names by default.

check_transform

protected javax.swing.JCheckBox check_transform
The check box to set the image size or scale.

transform_panel

protected TransformationPanel transform_panel
The panel to set the image size or scale.

check_filter

protected javax.swing.JCheckBox check_filter
The check box to apply the image processing filters.

button_filter

protected javax.swing.JButton button_filter
The button to show the dialog to set the image processing filters.

filter_set

protected FilterSet filter_set
The set of image processing filters.
Constructor Detail

ConversionDialog

public ConversionDialog()
Constructs a ConversionDialog.
Method Detail

getTitle

protected java.lang.String getTitle()
Gets the title of the dialog.
Overrides:
getTitle in class Dialog
Returns:
the title of the dialog.

specifiesInputFormat

public boolean specifiesInputFormat()
Returns true when to read images in the same format.
Returns:
true when to read images in the same format.

getInputFileFilter

public ImageFileFilter getInputFileFilter()
Gets the FileFilter for the selected input image format.
Returns:
the FileFilter for the selected input image format.

specifiesOutputFormat

public boolean specifiesOutputFormat()
Returns true when to create images in the same format.
Returns:
true when to create images in the same format.

getOutputFileFilter

public ImageFileFilter getOutputFileFilter()
Gets the FileFilter for the selected output image format.
Returns:
the FileFilter for the selected output image format.

changesFilenames

public boolean changesFilenames()
Returns true when to change all output image file names by default.
Returns:
true when to change all output image file names by default.

transformsAll

public boolean transformsAll()
Returns true when to create images in the same size or scale.
Returns:
true when to create images in the same size or scale.

isSize

public boolean isSize()
Returns true if the size is selected.
Returns:
true if the size is selected.

isScale

public boolean isScale()
Returns true if the scale is selected.
Returns:
true if the scale is selected.

getImageSize

public Size getImageSize()
Gets the image size.
Returns:
the image size.

getScale

public int getScale()
Gets the image scale.
Returns:
the image scale.

rescalesSbig

public boolean rescalesSbig()
Returns true when to rescale ST-4/6 Image.
Returns:
true when to rescale ST-4/6 Image.

appliesImageProcessingFilters

public boolean appliesImageProcessingFilters()
Returns true when to apply image processing filters to all images.
Returns:
true when to apply image processing filters to all images.

getFilterSet

public FilterSet getFilterSet()
Gets the set of image processing filters.
Returns:
the set of image processing filters.