main
Class TheSky.Sky

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Canvas
          extended by main.TheSky.Sky
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
Enclosing class:
TheSky

public class TheSky.Sky
extends java.awt.Canvas

the actual canvas that draws the sky

See Also:
Serialized Form

Field Summary
 java.util.Hashtable allPhotsInfo
           
 java.util.Vector allPhotsRaDec
           
 java.util.Vector amString
           
 java.util.Vector amX
           
 java.util.Vector amY
           
 int boxHeight
           
 int boxWidth
           
 java.util.Vector candInfos
           
 java.util.Vector candPos
           
 java.util.Vector candRaDec
           
 CandInfo ci
           
 Sixty dec
           
 boolean doRA
           
 boolean drawBox
           
 double eqnxOld
           
 java.util.Vector fieldRaDec
           
 java.awt.FontMetrics fm
           
 Sixty ha
           
 double hvalue
           
 boolean isFirstDraw
           
 int len
           
 int lenDEC
           
 int lenHA
           
 double lst
           
 double maxDEC
           
 double maxHA
           
 double minDEC
           
 double minHA
           
 NameRaDec nrd
           
 int numDEC
           
 int numHA
           
 int numLines
           
 TheSky.NameXY nxy
           
 java.util.Vector objList
           
 double oldMaxDEC
           
 double oldMaxHA
           
 double oldMinDEC
           
 double oldMinHA
           
 java.awt.Dimension osD
           
 java.awt.Graphics osG
           
 java.awt.Image osImg
           
 java.util.Vector polyColors
           
 java.util.Vector polys
           
 Sixty ra
           
 int smargin
           
 int spacing
           
 int spacingDEC
           
 int spacingHA
           
 java.util.Vector standPos
           
 java.util.Vector standRaDec
           
 double stepDEC
           
 double stepHA
           
 int textheight
           
 int textwidth
           
 JulianDate time
           
 int tmargin
           
 int x
           
 int xbox
           
 int xstartBox
           
 int y
           
 int ybox
           
 int ystartBox
           
 boolean zoomMode
           
 
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
TheSky.Sky()
           
 
Method Summary
 int decToY(double d)
          converts a DEC to a y-coordinate
 int decToY(Sixty dec)
          converts a DEC to a y-coordinate
 void getAirMassLines(java.util.Hashtable hash)
           
 int getBoxHeight()
          get the height (DEC) of the scope field in pixels
 int getBoxWidth()
          get the width (RA) of the scope field in pixels
 java.util.Vector getCandPos(double eqx, double minOAP)
          gets the x-y locations of all the candidates
 java.util.Hashtable getObjInfo(java.util.Vector objList)
          gets the info about a list of objecst
 java.util.Vector getPhotStandsIn(java.util.Vector list, double minRA, double maxRA, double minDEC, double maxDEC)
          finds the stands in the allPhotsRaDec vector that are with in the range
 double getRoundNum(double value, double step)
          returns closest integer multiple of step to value
 java.util.Vector getStandPos(double eqx)
          gets the x-y locations of all the standards
 double getStep(double min, double max)
          determine how many lines to draw
 int haToX(double d)
          converts an HA to a x-coordinate
 int haToX(Sixty ha)
          converts an HA to a x-coordinate
 void paint(java.awt.Graphics g)
          puts up the HA-DEC grid and plots the candidates
 void processMouseEvent(java.awt.event.MouseEvent e)
          handles mouse clicks - mouseDown
 void processMouseMotionEvent(java.awt.event.MouseEvent e)
          handles mouse clicks - mouseDrag
 Sixty raToHA(Sixty ra, double lst)
          converts RA to HA(-12 to 12)
 void update(java.awt.Graphics g)
           
 Sixty xToHA(double x)
          converts an x-coordinate to HA
 Sixty xToRA(double x, double lst)
          converts an x-coordinate to RA
 Sixty yToDEC(double y)
          converts a y-coordinate to dec
 
Methods inherited from class java.awt.Canvas
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy
 
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, 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, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public int x

y

public int y

len

public int len

numLines

public int numLines

spacing

public int spacing

maxHA

public double maxHA

minHA

public double minHA

maxDEC

public double maxDEC

minDEC

public double minDEC

stepHA

public double stepHA

stepDEC

public double stepDEC

oldMaxHA

public double oldMaxHA

oldMinHA

public double oldMinHA

oldMaxDEC

public double oldMaxDEC

oldMinDEC

public double oldMinDEC

lenHA

public int lenHA

lenDEC

public int lenDEC

spacingHA

public int spacingHA

spacingDEC

public int spacingDEC

numHA

public int numHA

numDEC

public int numDEC

textheight

public int textheight

textwidth

public int textwidth

fm

public java.awt.FontMetrics fm

tmargin

public int tmargin

smargin

public int smargin

ra

public Sixty ra

ha

public Sixty ha

dec

public Sixty dec

lst

public double lst

hvalue

public double hvalue

time

public JulianDate time

objList

public java.util.Vector objList

drawBox

public boolean drawBox

xbox

public int xbox

ybox

public int ybox

xstartBox

public int xstartBox

ystartBox

public int ystartBox

osImg

public java.awt.Image osImg

osG

public java.awt.Graphics osG

isFirstDraw

public boolean isFirstDraw

osD

public java.awt.Dimension osD

nrd

public NameRaDec nrd

fieldRaDec

public java.util.Vector fieldRaDec

standRaDec

public java.util.Vector standRaDec

candRaDec

public java.util.Vector candRaDec

allPhotsRaDec

public java.util.Vector allPhotsRaDec

candInfos

public java.util.Vector candInfos

doRA

public boolean doRA

boxWidth

public int boxWidth

boxHeight

public int boxHeight

zoomMode

public boolean zoomMode

polys

public java.util.Vector polys

polyColors

public java.util.Vector polyColors

amString

public java.util.Vector amString

amX

public java.util.Vector amX

amY

public java.util.Vector amY

allPhotsInfo

public java.util.Hashtable allPhotsInfo

ci

public CandInfo ci

candPos

public java.util.Vector candPos

standPos

public java.util.Vector standPos

nxy

public TheSky.NameXY nxy

eqnxOld

public double eqnxOld
Constructor Detail

TheSky.Sky

public TheSky.Sky()
Method Detail

getPhotStandsIn

public java.util.Vector getPhotStandsIn(java.util.Vector list,
                                        double minRA,
                                        double maxRA,
                                        double minDEC,
                                        double maxDEC)
finds the stands in the allPhotsRaDec vector that are with in the range


getObjInfo

public java.util.Hashtable getObjInfo(java.util.Vector objList)
gets the info about a list of objecst


processMouseEvent

public void processMouseEvent(java.awt.event.MouseEvent e)
handles mouse clicks - mouseDown

Overrides:
processMouseEvent in class java.awt.Component

processMouseMotionEvent

public void processMouseMotionEvent(java.awt.event.MouseEvent e)
handles mouse clicks - mouseDrag

Overrides:
processMouseMotionEvent in class java.awt.Component

getRoundNum

public double getRoundNum(double value,
                          double step)
returns closest integer multiple of step to value


getStep

public double getStep(double min,
                      double max)
determine how many lines to draw


getBoxWidth

public int getBoxWidth()
get the width (RA) of the scope field in pixels


getBoxHeight

public int getBoxHeight()
get the height (DEC) of the scope field in pixels


paint

public void paint(java.awt.Graphics g)
puts up the HA-DEC grid and plots the candidates

Overrides:
paint in class java.awt.Canvas

getStandPos

public java.util.Vector getStandPos(double eqx)
gets the x-y locations of all the standards


getCandPos

public java.util.Vector getCandPos(double eqx,
                                   double minOAP)
gets the x-y locations of all the candidates


update

public void update(java.awt.Graphics g)
Overrides:
update in class java.awt.Canvas

getAirMassLines

public void getAirMassLines(java.util.Hashtable hash)

haToX

public int haToX(double d)
converts an HA to a x-coordinate


haToX

public int haToX(Sixty ha)
converts an HA to a x-coordinate


decToY

public int decToY(double d)
converts a DEC to a y-coordinate


decToY

public int decToY(Sixty dec)
converts a DEC to a y-coordinate


raToHA

public Sixty raToHA(Sixty ra,
                    double lst)
converts RA to HA(-12 to 12)


xToHA

public Sixty xToHA(double x)
converts an x-coordinate to HA


xToRA

public Sixty xToRA(double x,
                   double lst)
converts an x-coordinate to RA


yToDEC

public Sixty yToDEC(double y)
converts a y-coordinate to dec