net.aerith.misao.gui.dialog
Class AstrometryCatalogSettingDialog

java.lang.Object
  |
  +--net.aerith.misao.gui.dialog.Dialog
        |
        +--net.aerith.misao.gui.dialog.AstrometryCatalogSettingDialog

public class AstrometryCatalogSettingDialog
extends Dialog

The AstrometryCatalogSettingDialog represents a dialog to select the method of astrometry and the reference catalog.

Note that the catalog for astrometry can be selected from the star classes identified in the specified XML report document.


Inner Class Summary
protected  class AstrometryCatalogSettingDialog.CatalogSelectionListener
          The CatalogSelectionListener is a listener class of item selection in combo box to select the catalog.
 
Field Summary
protected  javax.swing.JCheckBox checkbox_distortion
          The check box which represents to calculate the distortion field.
protected  javax.swing.JComboBox combo_catalog
          The combo box to select a catalog.
protected  javax.swing.JTextField text_description
          The text field to input the catalog description.
 
Fields inherited from class net.aerith.misao.gui.dialog.Dialog
components, default_values, parent_pane
 
Constructor Summary
AstrometryCatalogSettingDialog()
          Constructs an AstrometryCatalogSettingDialog.
AstrometryCatalogSettingDialog(XmlReport report)
          Constructs an AstrometryCatalogSettingDialog.
 
Method Summary
 boolean calculatesDistortionField()
          Returns true to calculate the distortion field.
protected  CatalogStar createStar(java.lang.String catalog_name)
          Gets a star object of the specified catalog name.
 AstrometrySetting getAstrometrySetting()
          Gets the setting.
protected  java.lang.String getTitle()
          Gets the title of the dialog.
protected  void initialize(java.util.Vector catalog_list)
          Initializes.
protected  void saveDefaultValues()
          Saves the default values.
 void setCalculateDistortionField(boolean flag)
          Sets the flag to calculate the distortion field.
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

combo_catalog

protected javax.swing.JComboBox combo_catalog
The combo box to select a catalog.

text_description

protected javax.swing.JTextField text_description
The text field to input the catalog description.

checkbox_distortion

protected javax.swing.JCheckBox checkbox_distortion
The check box which represents to calculate the distortion field.
Constructor Detail

AstrometryCatalogSettingDialog

public AstrometryCatalogSettingDialog()
Constructs an AstrometryCatalogSettingDialog.

AstrometryCatalogSettingDialog

public AstrometryCatalogSettingDialog(XmlReport report)
Constructs an AstrometryCatalogSettingDialog.
Parameters:
report - the XML report document
Method Detail

initialize

protected void initialize(java.util.Vector catalog_list)
Initializes.
Parameters:
catalog_list - the list of catalogs for astrometry.

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

getAstrometrySetting

public AstrometrySetting getAstrometrySetting()
Gets the setting.
Returns:
the setting.

calculatesDistortionField

public boolean calculatesDistortionField()
Returns true to calculate the distortion field.
Returns:
true to calculate the distortion field.

setCalculateDistortionField

public void setCalculateDistortionField(boolean flag)
Sets the flag to calculate the distortion field.
Parameters:
flag - true when to calculate the distortion field.

createStar

protected CatalogStar createStar(java.lang.String catalog_name)
Gets a star object of the specified catalog name.
Parameters:
catalog_name - the catalog name.
Returns:
a star object.