net.aerith.misao.gui.dialog
Class ImageDateDialog

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

public class ImageDateDialog
extends Dialog

The ImageDateDialog represents a dialog to input the image exposure date and time.


Inner Class Summary
protected  class ImageDateDialog.DateAccuracyComboBoxModel
          The DateAccuracyComboBoxModel is a model of the combo box to select date accuracy.
 
Field Summary
protected  javax.swing.JComboBox combo_date_accuracy
          The combo box to select the accuracy of date and time.
protected  javax.swing.JComboBox combo_exposure_unit
          The combo box to select the unit of the exposure time.
protected  DateAndTimePanel date_panel
          The panel to input date and time;
protected  javax.swing.JTextField text_exposure
          The text field to input the exposure time.
 
Fields inherited from class net.aerith.misao.gui.dialog.Dialog
components, default_values, parent_pane
 
Constructor Summary
ImageDateDialog()
          Constructs a ImageDateDialog.
 
Method Summary
 int getAccuracy()
          Gets the accuracy of the date and time.
 JulianDay getDay()
          Gets the date and time.
 double getExposure()
          Gets the exposure time.
 java.lang.String getExposureUnit()
          Gets the exposure unit.
protected  java.lang.String getTitle()
          Gets the title of the dialog.
protected  void saveDefaultValues()
          Saves the default values.
 void setAccuracy(int date_accuracy)
          Sets the accuracy of the date and time.
 void setDay(JulianDay jd)
          Sets the date and time.
protected  void setDefaultValues()
          Sets the default values.
 void setExposure(double exposure, java.lang.String unit)
          Sets the exposure time and unit.
 
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

date_panel

protected DateAndTimePanel date_panel
The panel to input date and time;

combo_date_accuracy

protected javax.swing.JComboBox combo_date_accuracy
The combo box to select the accuracy of date and time.

text_exposure

protected javax.swing.JTextField text_exposure
The text field to input the exposure time.

combo_exposure_unit

protected javax.swing.JComboBox combo_exposure_unit
The combo box to select the unit of the exposure time.
Constructor Detail

ImageDateDialog

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

getDay

public JulianDay getDay()
Gets the date and time.
Returns:
the date and time.

setDay

public void setDay(JulianDay jd)
Sets the date and time.
Parameters:
jd - the date and time as Julian Day.

getAccuracy

public int getAccuracy()
Gets the accuracy of the date and time.
Returns:
the format number of the accuracy of the date and time.

setAccuracy

public void setAccuracy(int date_accuracy)
Sets the accuracy of the date and time.
Parameters:
date_accuracy - the format number of the accuracy of the date and time.

getExposure

public double getExposure()
Gets the exposure time.
Returns:
the exposure time.

getExposureUnit

public java.lang.String getExposureUnit()
Gets the exposure unit.
Returns:
the exposure unit.

setExposure

public void setExposure(double exposure,
                        java.lang.String unit)
Sets the exposure time and unit.
Parameters:
exposure - the exposure time.
unit - the unit of the exposure time.