stsci.sky
Class ShowSky

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--javax.swing.JApplet
                                |
                                +--stsci.sky.ShowSky
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.event.ItemListener, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, java.awt.event.TextListener

public class ShowSky
extends javax.swing.JApplet
implements java.awt.event.ActionListener, java.awt.event.TextListener, java.awt.event.ItemListener

Show area of the sky and allow animation and interaction

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JApplet
javax.swing.JApplet.AccessibleJApplet
 
Inner classes inherited from class java.applet.Applet
java.applet.Applet.AccessibleApplet
 
Inner classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock
 
Field Summary
protected  AnimationWindow animWindow
           
protected  java.util.List catList
           
protected  CatalogPanel catPan
           
protected  javax.swing.JComboBox choice
           
protected  java.awt.GridBagConstraints cons
           
protected  Criteria crit
           
protected  java.lang.String dataDir
           
protected  javax.swing.JTextField decField
           
protected  boolean doHTM
           
protected  boolean doPlate
           
protected  java.lang.String entry
           
protected  int factor
           
protected  FilterDialog filterDlg
           
protected  java.awt.GridBagLayout gridbag
           
protected  boolean htmNumAdded
           
protected  HTMPanel htmPan
           
protected  javax.swing.JFrame htmWin
           
protected  javax.swing.JPanel info
           
protected  javax.swing.JLabel info2
           
protected  javax.swing.JLabel info3
           
protected  boolean inited
           
protected  Magnifier magnifier
           
protected  javax.swing.JFrame magWin
           
protected static java.lang.String[][] menus
           
protected  MagScale ms
           
protected  javax.swing.JComboBox pchoice
           
protected  java.lang.String plateSize
           
protected  boolean queryAroundBox
           
protected  javax.swing.JTextField raField
           
protected  javax.swing.JPanel rp
           
protected  SkyArea sky
           
protected  StarList starList
           
protected  boolean started
           
protected  boolean stoped
           
static ShowSky theShow
           
protected  Compare threscrit
           
protected  javax.swing.JTextField thresField
           
protected  javax.swing.JLabel threshold
           
protected  int tol
           
protected  javax.swing.JLabel width
           
 
Fields inherited from class javax.swing.JApplet
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Container
component, containerListener, layoutMgr, listeningBoundsChildren, listeningChildren, ncomponents
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListener, componentListenerK, componentOrientation, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, windowClosingException, windowListenerK, x, y
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ShowSky()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          This is required to implement ActionListener - this gets called when someone hits a button
 void catsOff(java.util.List catList)
           
 void catsOn(java.util.List l)
           
 void createHTMwindow()
           
 Criteria getCrit()
           
 java.lang.String getInfo()
           
 java.awt.Dimension getPreferredSize()
          Window manager sets the size of the window officially but we can suggest which size we would like
static ShowSky getTheShow()
          if allow link up to other apps by providing a handle to this app
 void init()
          This does all the setup and layout
protected  void initAppletProps()
           
 void itemStateChanged(java.awt.event.ItemEvent evt)
          Item listener imp - for check boxes
static void main(java.lang.String[] argv)
           
 void populate(double ra, double dec, double tol)
           
 void populate(java.lang.String ras, java.lang.String decs, java.lang.String tols)
           
 void reCenter(double alpha, double delta)
          Recenceter the field based on the last selected source Like view but coordinates taken from the source not from the boxes.
 void textValueChanged(java.awt.event.TextEvent evt)
          This must be imlpmented to satify the TextListener interface it gets called when the text in the box changes
 
Methods inherited from class javax.swing.JApplet
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.applet.Applet
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
 
Methods inherited from class java.awt.Panel
, addNotify, constructComponentName
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, adjustListeningChildren, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, doLayout, eventEnabled, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMouseEventTarget, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, nextFocus, numListening, paint, paintComponents, paintHeavyweightComponents, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, print, printComponents, printHeavyweightComponents, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, remove, removeAll, removeContainerListener, removeNotify, setFocusOwner, setFont, transferFocus, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, resetGC, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

menus

protected static final java.lang.String[][] menus

stoped

protected boolean stoped

started

protected boolean started

factor

protected int factor

tol

protected int tol

sky

protected SkyArea sky

animWindow

protected AnimationWindow animWindow

info

protected javax.swing.JPanel info

info2

protected javax.swing.JLabel info2

width

protected javax.swing.JLabel width

threshold

protected javax.swing.JLabel threshold

raField

protected javax.swing.JTextField raField

decField

protected javax.swing.JTextField decField

thresField

protected javax.swing.JTextField thresField

choice

protected javax.swing.JComboBox choice

pchoice

protected javax.swing.JComboBox pchoice

entry

protected java.lang.String entry

ms

protected MagScale ms

catPan

protected CatalogPanel catPan

info3

protected javax.swing.JLabel info3

dataDir

protected java.lang.String dataDir

crit

protected Criteria crit

threscrit

protected Compare threscrit

filterDlg

protected FilterDialog filterDlg

starList

protected StarList starList

theShow

public static ShowSky theShow

rp

protected javax.swing.JPanel rp

htmWin

protected javax.swing.JFrame htmWin

htmPan

protected HTMPanel htmPan

cons

protected java.awt.GridBagConstraints cons

gridbag

protected java.awt.GridBagLayout gridbag

htmNumAdded

protected boolean htmNumAdded

magnifier

protected Magnifier magnifier

magWin

protected javax.swing.JFrame magWin

doHTM

protected boolean doHTM

doPlate

protected boolean doPlate

queryAroundBox

protected boolean queryAroundBox

catList

protected java.util.List catList

plateSize

protected java.lang.String plateSize

inited

protected boolean inited
Constructor Detail

ShowSky

public ShowSky()
Method Detail

main

public static void main(java.lang.String[] argv)

getPreferredSize

public java.awt.Dimension getPreferredSize()
Window manager sets the size of the window officially but we can suggest which size we would like
Overrides:
getPreferredSize in class java.awt.Container

getCrit

public Criteria getCrit()

initAppletProps

protected void initAppletProps()

init

public void init()
This does all the setup and layout
Overrides:
init in class java.applet.Applet

populate

public void populate(java.lang.String ras,
                     java.lang.String decs,
                     java.lang.String tols)

getInfo

public java.lang.String getInfo()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
This is required to implement ActionListener - this gets called when someone hits a button
Specified by:
actionPerformed in interface java.awt.event.ActionListener

populate

public void populate(double ra,
                     double dec,
                     double tol)

textValueChanged

public void textValueChanged(java.awt.event.TextEvent evt)
This must be imlpmented to satify the TextListener interface it gets called when the text in the box changes
Specified by:
textValueChanged in interface java.awt.event.TextListener

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent evt)
Item listener imp - for check boxes
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

reCenter

public void reCenter(double alpha,
                     double delta)
Recenceter the field based on the last selected source Like view but coordinates taken from the source not from the boxes.

createHTMwindow

public void createHTMwindow()

catsOff

public void catsOff(java.util.List catList)

catsOn

public void catsOn(java.util.List l)

getTheShow

public static ShowSky getTheShow()
if allow link up to other apps by providing a handle to this app