Class FitsDialog

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Dialog
                          |
                          +--javax.swing.JDialog
                                |
                                +--FitsDialog

class FitsDialog
extends javax.swing.JDialog

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AWTTreeLock
 
Field Summary
static int AIRMASS
           
private  VTextField airmass_txtfld
           
static int BITPIX
           
private  VTextField bitpix_txtfld
           
static int COMMENT1
           
private  VTextField comment1_txtfld
           
static int COMMENT2
           
private  VTextField comment2_txtfld
           
static int COMMENT3
           
private  VTextField comment3_txtfld
           
static int COMMENT4
           
private  VTextField comment4_txtfld
           
private  java.awt.Container content_pane
           
static int DATE
           
private  VTextField date_txtfld
           
static int DEC
           
private  VTextField dec_txtfld
           
static int EPOCH
           
private  VTextField epoch_txtfld
           
static int EXP_TIME
           
private  VTextField exptime_txtfld
           
static int FILTER
           
private  VTextField filter_txtfld
           
private  FitsDialogListener fits_dialog_listener
           
private  java.awt.Font font
           
private  VTextField image_type_txtfld
           
static int IMG_TYPE
           
static int INSTRMENT
           
private  VTextField instrument_txtfld
           
private  VTextField local_siderial_time_txtfld
           
static int LOCATION
           
private  VTextField location_txtfld
           
static int MAX_FITS_CARD_LENGTH
           
static int MAX_FITS_HEADER
           
static int NAXIS
           
private  VTextField naxis_txtfld
           
static int NAXIS1
           
private  VTextField naxis1_txtfld
           
static int NAXIS2
           
private  VTextField naxis2_txtfld
           
private  javax.swing.JPanel new_fits_panel
           
private  javax.swing.JMenuBar new_menu_bar
           
 int number_of_fits_windows
           
static int OBJECT
           
private  VTextField object_txtfld
           
static int OBSERVER
           
private  VTextField observer_txtfld
           
private  VoodooMainWindow parent
           
static int RA
           
private  VTextField ra_txtfld
           
static int SIDETIME
           
static int SIMPLE
           
private  VTextField simple_txtfld
           
static int TELESCOPE
           
private  VTextField telescope_txtfld
           
static int TIME
           
private  VTextField time_txtfld
           
 
Fields inherited from class javax.swing.JDialog
accessibleContext, defaultCloseOperation, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Dialog
base, keepBlocking, modal, nameCounter, resizable, serialVersionUID, title
 
Fields inherited from class java.awt.Window
active, base, focusMgr, inputContext, nameCounter, OPENED, ownedWindowList, serialVersionUID, state, warningString, weakThis, windowListener, windowSerializedDataVersion
 
Fields inherited from class java.awt.Container
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, maxSize, ncomponents, serialVersionUID
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, assert, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, hasFocus, height, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, serialVersionUID, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowListenerK, x, y
 
Constructor Summary
FitsDialog(VoodooMainWindow owner)
          Class Constructor.
 
Method Summary
private  void add_components(javax.swing.JPanel panel, javax.swing.JComponent compnt, java.awt.GridBagLayout gbl, java.awt.GridBagConstraints gbc, int insetTOP, int insetLEFT, int insetBOTTOM, int insetRIGHT, int cfill, int anchr, int col, int row, int gw, int gh)
          Adds the specified component to the specified panel.
 javax.swing.JPanel create_fits_panel()
          This method creates all the FITS interface components.
private  javax.swing.JMenuBar create_menu_bar()
          This method creates the menu bar for the FITS dialog box.
private  java.lang.String get_current_date()
          This method returns the current date.
private  java.lang.String get_current_time()
          This method returns the current time.
protected  java.lang.String[] get_header_info()
          This method gets the FITS header textfield values.
protected  void update_fits_info()
          This method updates the FITS header Bitpix, Row, Column, Date, and Time textfields.
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, createRootPaneException, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setLocationRelativeTo, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Dialog
, addNotify, conditionalShow, constructComponentName, dispose, getTitle, hide, hideAndDisposeHandler, initIDs, isModal, isResizable, setModal, setResizable, setTitle, show
 
Methods inherited from class java.awt.Window
addOwnedWindow, addWindowListener, applyResourceBundle, applyResourceBundle, connectOwnedWindow, dispatchEventImpl, eventEnabled, finalize, getFocusOwner, getInputContext, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, isActive, isShowing, nextFocus, ownedInit, pack, postEvent, postProcessKeyEvent, postWindowEvent, preProcessKeyEvent, processEvent, readObject, removeOwnedWindow, removeWindowListener, setCursor, setFocusOwner, setWarningString, toBack, toFront, transferFocus, writeObject
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyOrientation, countComponents, deliverEvent, dispatchEventToSelf, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getCursorTarget, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPrint, list, list, locate, minimumSize, paint, paintComponents, postsOldMouseEvents, preferredSize, print, printComponents, printHeavyweightComponents, printOneComponent, processContainerEvent, proxyEnableEvents, proxyRequestFocus, remove, removeAll, removeContainerListener, removeNotify, setFont, updateCursor, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getIntrinsicCursor, getLocation, getLocation, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

content_pane

private java.awt.Container content_pane

new_fits_panel

private javax.swing.JPanel new_fits_panel

new_menu_bar

private javax.swing.JMenuBar new_menu_bar

parent

private VoodooMainWindow parent

simple_txtfld

private VTextField simple_txtfld

bitpix_txtfld

private VTextField bitpix_txtfld

naxis_txtfld

private VTextField naxis_txtfld

naxis1_txtfld

private VTextField naxis1_txtfld

naxis2_txtfld

private VTextField naxis2_txtfld

date_txtfld

private VTextField date_txtfld

time_txtfld

private VTextField time_txtfld

location_txtfld

private VTextField location_txtfld

local_siderial_time_txtfld

private VTextField local_siderial_time_txtfld

epoch_txtfld

private VTextField epoch_txtfld

airmass_txtfld

private VTextField airmass_txtfld

exptime_txtfld

private VTextField exptime_txtfld

image_type_txtfld

private VTextField image_type_txtfld

telescope_txtfld

private VTextField telescope_txtfld

instrument_txtfld

private VTextField instrument_txtfld

filter_txtfld

private VTextField filter_txtfld

object_txtfld

private VTextField object_txtfld

ra_txtfld

private VTextField ra_txtfld

dec_txtfld

private VTextField dec_txtfld

observer_txtfld

private VTextField observer_txtfld

comment1_txtfld

private VTextField comment1_txtfld

comment2_txtfld

private VTextField comment2_txtfld

comment3_txtfld

private VTextField comment3_txtfld

comment4_txtfld

private VTextField comment4_txtfld

fits_dialog_listener

private FitsDialogListener fits_dialog_listener

font

private java.awt.Font font

number_of_fits_windows

public int number_of_fits_windows

SIMPLE

public static final int SIMPLE

BITPIX

public static final int BITPIX

NAXIS

public static final int NAXIS

NAXIS1

public static final int NAXIS1

NAXIS2

public static final int NAXIS2

DATE

public static final int DATE

TIME

public static final int TIME

LOCATION

public static final int LOCATION

SIDETIME

public static final int SIDETIME

EPOCH

public static final int EPOCH

AIRMASS

public static final int AIRMASS

EXP_TIME

public static final int EXP_TIME

IMG_TYPE

public static final int IMG_TYPE

TELESCOPE

public static final int TELESCOPE

INSTRMENT

public static final int INSTRMENT

FILTER

public static final int FILTER

OBJECT

public static final int OBJECT

RA

public static final int RA

DEC

public static final int DEC

OBSERVER

public static final int OBSERVER

COMMENT1

public static final int COMMENT1

COMMENT2

public static final int COMMENT2

COMMENT3

public static final int COMMENT3

COMMENT4

public static final int COMMENT4

MAX_FITS_HEADER

public static final int MAX_FITS_HEADER

MAX_FITS_CARD_LENGTH

public static final int MAX_FITS_CARD_LENGTH
Constructor Detail

FitsDialog

public FitsDialog(VoodooMainWindow owner)
Class Constructor.
Parameters:
owner - The parent window of this dialog box.
Method Detail

create_fits_panel

public javax.swing.JPanel create_fits_panel()
This method creates all the FITS interface components.
	Card		Default Value
	simple			"T"
	bitpix			"16"
	naxis			"2"
	naxis1			"0"
	naxis2			"0"
	date			"Date At Program Startup"
	time			"Time At Program Startup"
	location		"Observatory"
	Local Siderial Time	"hh:mm:ss.ss"
	Epoch			"2000"
	Airmass			"99.99"
	Exposure Time		"0.00"
	Image Type		"Image"
	Telescope		"Telescope"
	Instrument		"Instrument"
	Filter			"None"
	Object			"None"
	Right Ascension		"hh:mm:ss.ss"
	Declination		"hh:mm:ss.ss"
	Observer		"Observer"
	Comment1		"None"
 	Comment2		"None"
	Comment3		"None"
	Comment4		"None"
	
Returns:
Returns a JPanel that contains all the FITS input interface components.

create_menu_bar

private javax.swing.JMenuBar create_menu_bar()
This method creates the menu bar for the FITS dialog box.
Returns:
Returns a JMenuBar that contains all the FITS dialog box menu components.

add_components

private void add_components(javax.swing.JPanel panel,
                            javax.swing.JComponent compnt,
                            java.awt.GridBagLayout gbl,
                            java.awt.GridBagConstraints gbc,
                            int insetTOP,
                            int insetLEFT,
                            int insetBOTTOM,
                            int insetRIGHT,
                            int cfill,
                            int anchr,
                            int col,
                            int row,
                            int gw,
                            int gh)
Adds the specified component to the specified panel.
Parameters:
panel - The panel to which the component will be added.
compnt - The component to add.
gbl - The GridBagLayout of the panel.
gbl - The GridBagConstraints of the panel.
insetTOP - The distance in pixels between the top of this component and the one above it.
insetBOTTOM - The distance in pixels between the bottom of this component and the one below it.
insetLEFT - The distance in pixels between the left side of this component and the one left of it.
insetRIGHT - The distance in pixels between the right side of this component and the one right of it.
cfill - Determines how the component "fills" the space of of its "cell".
anchr - The justification of the component within its "cell".
col - The x position of the component.
row - The y position of the component.
gw - The number of "cells" that the component spans in the width direction.
gh - The number of "cells" that the component spans in the height direction.
See Also:
JPanel, JComponent, GridBagLayout, GridBagConstraints

get_current_date

private java.lang.String get_current_date()
This method returns the current date.
Returns:
Returns a string containing the current date in the format MM/DD/YY.

get_current_time

private java.lang.String get_current_time()
This method returns the current time.
Returns:
Returns a string containing the current time in the format HH:MM:SS.

get_header_info

protected java.lang.String[] get_header_info()
This method gets the FITS header textfield values.
Returns:
Returns the current FITS header strings. The current date and time are taken at this time.

update_fits_info

protected void update_fits_info()
This method updates the FITS header Bitpix, Row, Column, Date, and Time textfields.