net.aerith.misao.toolkit.PixyDesktop
Class MatchingSettingDialog

java.lang.Object
  |
  +--net.aerith.misao.gui.dialog.Dialog
        |
        +--net.aerith.misao.toolkit.PixyDesktop.MatchingSettingDialog

public class MatchingSettingDialog
extends Dialog

The MatchingSettingDialog represents a dialog to select the matching operation mode.


Inner Class Summary
protected  class MatchingSettingDialog.ModeListener
          The ModeListener is a listener class of selection of a radio button in the matching operation mode.
 
Field Summary
protected  javax.swing.JCheckBox checkbox_loose
          The check box which represents the loose judgement.
static int MODE_DEFAULT
          The mode number which indicates the default matching process.
static int MODE_RETRY
          The mode number which indicates to retry at most 9 times.
static int MODE_SEARCH
          The mode number which indicates to search the position.
static int MODE_SKIP_MATCHING
          The mode number which indicates to skip matching process.
protected  javax.swing.JRadioButton radio_default
          The radio button for default matching process.
protected  javax.swing.JRadioButton radio_retry
          The radio button to retry at most 9 times.
protected  javax.swing.JRadioButton radio_search
          The radio button to search the position.
protected  javax.swing.JRadioButton radio_skip_matching
          The radio button to skip matching process.
protected  javax.swing.JTextField text_rotation
          The text field to input the position angle of up.
protected  javax.swing.JTextField text_search_radius
          The text field to input the search radius.
 
Fields inherited from class net.aerith.misao.gui.dialog.Dialog
components, default_values, parent_pane
 
Constructor Summary
MatchingSettingDialog()
          Constructs a MatchingSettingDialog.
 
Method Summary
 int getMode()
          Gets the matching operation mode.
 double getPositionAngleOfUp()
          Gets the position angle of up.
 double getSearchRadius()
          Gets the search radius.
protected  java.lang.String getTitle()
          Gets the title of the dialog.
 boolean isLooseJudgementSelected()
          Returns true when loose judgement is selected.
protected  void saveDefaultValues()
          Saves the default values.
protected  void setDefaultValues()
          Sets the default values.
 
Methods inherited from class net.aerith.misao.gui.dialog.Dialog
show
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

radio_default

protected javax.swing.JRadioButton radio_default
The radio button for default matching process.

radio_retry

protected javax.swing.JRadioButton radio_retry
The radio button to retry at most 9 times.

radio_skip_matching

protected javax.swing.JRadioButton radio_skip_matching
The radio button to skip matching process.

radio_search

protected javax.swing.JRadioButton radio_search
The radio button to search the position.

text_rotation

protected javax.swing.JTextField text_rotation
The text field to input the position angle of up.

text_search_radius

protected javax.swing.JTextField text_search_radius
The text field to input the search radius.

checkbox_loose

protected javax.swing.JCheckBox checkbox_loose
The check box which represents the loose judgement.

MODE_DEFAULT

public static final int MODE_DEFAULT
The mode number which indicates the default matching process.

MODE_RETRY

public static final int MODE_RETRY
The mode number which indicates to retry at most 9 times.

MODE_SKIP_MATCHING

public static final int MODE_SKIP_MATCHING
The mode number which indicates to skip matching process.

MODE_SEARCH

public static final int MODE_SEARCH
The mode number which indicates to search the position.
Constructor Detail

MatchingSettingDialog

public MatchingSettingDialog()
Constructs a MatchingSettingDialog.
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.

setDefaultValues

protected void setDefaultValues()
Sets the default values.

saveDefaultValues

protected void saveDefaultValues()
Saves the default values.
Overrides:
saveDefaultValues in class Dialog

getMode

public int getMode()
Gets the matching operation mode.
Returns:
the matching operation mode.

getPositionAngleOfUp

public double getPositionAngleOfUp()
Gets the position angle of up.
Returns:
the position angle of up.

getSearchRadius

public double getSearchRadius()
Gets the search radius.
Returns:
the search radius.

isLooseJudgementSelected

public boolean isLooseJudgementSelected()
Returns true when loose judgement is selected.
Returns:
true when loose judgement is selected.