utility
Class RunDate

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Label
          extended by utility.RunDate
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class RunDate
extends java.awt.Label
implements java.awt.event.ActionListener

See Also:
Serialized Form

Nested Class Summary
 class RunDate.RunDateInfo
           
 
Field Summary
 java.awt.event.ActionListener actionListener
           
static java.awt.Font bfont
           
 java.sql.Connection connect
           
 JulianDate date
           
static java.text.DateFormat df
           
 double dlat
           
static java.awt.Font font
           
static int height
           
 double hlongit
           
 RunDate.RunDateInfo info
           
 java.lang.String sdate
           
 java.sql.Statement select
           
 java.sql.ResultSet set1
           
 java.sql.ResultSet set2
           
 java.sql.ResultSet set3
           
static int width
           
 
Fields inherited from class java.awt.Label
CENTER, LEFT, RIGHT
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
RunDate(java.sql.Connection connect, JulianDate date, java.lang.String sdate)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addActionListener(java.awt.event.ActionListener l)
           
 java.lang.String getSunBlah(double jd, java.lang.String telescope, boolean doRise)
          get sun epherimis
 java.lang.String getSunRise(double jd, java.lang.String telescope)
          get the telescope lat, long, and elev and calculate the sun rise time for a given jd
 java.lang.String getSunSet(double jd, java.lang.String telescope)
          get the telescope lat, long, and elev and calculate the sun set time for a given jd
 void processEvent(java.awt.AWTEvent e)
           
 
Methods inherited from class java.awt.Label
addNotify, getAccessibleContext, getAlignment, getText, setAlignment, setText
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

font

public static java.awt.Font font

bfont

public static java.awt.Font bfont

width

public static int width

height

public static int height

actionListener

public java.awt.event.ActionListener actionListener

info

public RunDate.RunDateInfo info

date

public JulianDate date

sdate

public java.lang.String sdate

connect

public java.sql.Connection connect

select

public java.sql.Statement select

set1

public java.sql.ResultSet set1

set2

public java.sql.ResultSet set2

set3

public java.sql.ResultSet set3

df

public static java.text.DateFormat df

dlat

public double dlat

hlongit

public double hlongit
Constructor Detail

RunDate

public RunDate(java.sql.Connection connect,
               JulianDate date,
               java.lang.String sdate)
Method Detail

processEvent

public void processEvent(java.awt.AWTEvent e)
Overrides:
processEvent in class java.awt.Component

getSunBlah

public java.lang.String getSunBlah(double jd,
                                   java.lang.String telescope,
                                   boolean doRise)
get sun epherimis


getSunRise

public java.lang.String getSunRise(double jd,
                                   java.lang.String telescope)
get the telescope lat, long, and elev and calculate the sun rise time for a given jd


getSunSet

public java.lang.String getSunSet(double jd,
                                  java.lang.String telescope)
get the telescope lat, long, and elev and calculate the sun set time for a given jd


addActionListener

public void addActionListener(java.awt.event.ActionListener l)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener