net.aerith.misao.toolkit.ImageConversion
Class TransformationDialog

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

public class TransformationDialog
extends Dialog

The TransformationDialog represents a dialog to set the image size or scale.


Field Summary
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
TransformationDialog()
          Constructs an TransformationDialog.
 
Method Summary
 Size getImageSize()
          Gets the image size.
 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.
 void selectScale()
          Selects the scale.
 void selectSize()
          Selects the size.
 void setImageSize(Size size)
          Sets the image size.
 void setRescaleSbig(boolean flag)
          Sets the flag to rescale ST-4/6 Image.
 void setScale(int scale)
          Sets the image 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

transform_panel

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

TransformationDialog

public TransformationDialog()
Constructs an TransformationDialog.
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.

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.

selectSize

public void selectSize()
Selects the size.

selectScale

public void selectScale()
Selects the scale.

getImageSize

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

getScale

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

setImageSize

public void setImageSize(Size size)
Sets the image size.
Parameters:
size - the image size.

setScale

public void setScale(int scale)
Sets the image scale.
Parameters:
scale - 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.

setRescaleSbig

public void setRescaleSbig(boolean flag)
Sets the flag to rescale ST-4/6 Image.
Parameters:
flag - true when to rescale ST-4/6 Image.