utility
Class CandPrior.PriorField

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.TextComponent
          extended by java.awt.TextField
              extended by utility.CandPrior.PriorField
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
Enclosing class:
CandPrior

public class CandPrior.PriorField
extends java.awt.TextField

Displays and color codes the priority for a candidate. Clickable interface allows user to checkout/in an observation.

See Also:
Serialized Form

Field Summary
 java.lang.String cand
           
 CandSort candSort
           
 CandPrior.CheckBackIn check
           
 Sixty dec
           
 double exp
           
 java.lang.String filt
           
 double mag
           
 java.util.Hashtable masterHash
           
 boolean moonFlag
           
 Sixty ra
           
 double sky
           
 java.lang.String text
           
 java.lang.String type
           
 int value
           
 WhatData wd
           
 double zeropoint
           
 
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
CandPrior.PriorField(java.lang.String cand2, java.lang.String type2, java.lang.String filt2, int value2, double mag2, double zeropoint2, Sixty ra2, Sixty dec2, boolean moonFlag)
           
 
Method Summary
 double getExp()
           
 double getMag()
           
 int getValue()
           
 boolean objUpAt(double time, double rise, double set)
          returns true if object is up at time
 void refresh()
          writes the prior/mag/exp value using the current color scheme
 void setExp()
          sets the exposture time using mag.
 void setMag()
          reads the current magnitude from the db and sets mag and exp accordingly
 void setMag(double mag)
          sets the magnitude to the give value
 void setValue()
          Reads the current priority from the database and changes the text and color accordingly
 void setValue(int value)
          changes the text and color to a new value
 boolean youGotIt(java.lang.String cand, java.lang.String type, java.lang.String filt)
          Returns true if the cand, type, and filt are checked out by the user.
 
Methods inherited from class java.awt.TextField
addActionListener, addNotify, echoCharIsSet, getAccessibleContext, getActionListeners, getColumns, getEchoChar, getListeners, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, minimumSize, minimumSize, preferredSize, preferredSize, removeActionListener, setColumns, setEchoChar, setEchoCharacter, setText
 
Methods inherited from class java.awt.TextComponent
addTextListener, enableInputMethods, getBackground, getCaretPosition, getInputMethodRequests, getSelectedText, getSelectionEnd, getSelectionStart, getText, getTextListeners, isEditable, removeNotify, removeTextListener, select, selectAll, setBackground, setCaretPosition, setEditable, setSelectionEnd, setSelectionStart
 
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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, 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, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, postEvent, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, 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

cand

public java.lang.String cand

type

public java.lang.String type

filt

public java.lang.String filt

value

public int value

mag

public double mag

exp

public double exp

wd

public WhatData wd

check

public CandPrior.CheckBackIn check

moonFlag

public boolean moonFlag

text

public java.lang.String text

zeropoint

public double zeropoint

ra

public Sixty ra

dec

public Sixty dec

masterHash

public java.util.Hashtable masterHash

candSort

public CandSort candSort

sky

public double sky
Constructor Detail

CandPrior.PriorField

public CandPrior.PriorField(java.lang.String cand2,
                            java.lang.String type2,
                            java.lang.String filt2,
                            int value2,
                            double mag2,
                            double zeropoint2,
                            Sixty ra2,
                            Sixty dec2,
                            boolean moonFlag)
Method Detail

getValue

public int getValue()

getMag

public double getMag()

getExp

public double getExp()

setValue

public void setValue()
Reads the current priority from the database and changes the text and color accordingly


setValue

public void setValue(int value)
changes the text and color to a new value


setMag

public void setMag()
reads the current magnitude from the db and sets mag and exp accordingly


setMag

public void setMag(double mag)
sets the magnitude to the give value


setExp

public void setExp()
sets the exposture time using mag. Calculated at lst=ra. or 2 hours after/before the sun is up. Assume object is up during some time in the night.


objUpAt

public boolean objUpAt(double time,
                       double rise,
                       double set)
returns true if object is up at time


refresh

public void refresh()
writes the prior/mag/exp value using the current color scheme


youGotIt

public boolean youGotIt(java.lang.String cand,
                        java.lang.String type,
                        java.lang.String filt)
Returns true if the cand, type, and filt are checked out by the user.