stella.jview
Class JOffsetDisplay

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by jview.JExitFrame
                          extended by jview.JConfirmExitFrame
                              extended by jview.JBorderFrame
                                  extended by jview.JOpenFrame
                                      extended by jview.JClientFrame
                                          extended by stella.jview.JMasterDisplay
                                              extended by stella.jview.JOffsetDisplay
All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, Remote, EventListener, Accessible, RootPaneContainer, WindowConstants, BorderLabels, ClientLabels, Displayable, PickListener, ClientObject, ExitCleaning, Initializable, PropertyAware, PropertyComposed, Refreshing

public class JOffsetDisplay
extends JMasterDisplay

An offset display acts on the offsets recorded during guiding, thus it requires the guider*.serial file to be accessible. Locally it tries to fetch that from the resources path, remotely it tries to scp from the remote host. It displays the fft of the offset data, the az/alt offset and a alt/az vs t offset.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class stella.jview.JMasterDisplay
JMasterDisplay.Show
 
Nested classes/interfaces inherited from class jview.JClientFrame
JClientFrame.ClientListener
 
Nested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
static String ALTITUDE
          Name of azimuth axis.
private  JGuiderOffsets azalt1
          This is the az/alt offset display.
private  JGuiderOffsets azalt2
          This is the az/alt offset display.
static String AZIMUTH
          Name of azimuth axis.
private static String DEFGUIDERHEAD
          The part of the file name before unique.
private static String DEFGUIDERTAIL
          The part of the file name after unique.
private static String DEFLOCALDIR
          The name of the local directory.
private static String DEFPIDTAIL
          The part of the file name after unique.
private static String DEFSCPCOMMAND
          The scp command to copy to local directory.
private static boolean DEFSEEINGFFT
          Default ono seeing info in fft .
private static DateFormat DEFSUBDIRFORMAT
          The name of the local directory.
private static String DEFTELESCOPECHAR
          Default telescope we work on.
private  JTrackingFrequencies fft1
          This is the fft canvas.
private  JTrackingFrequencies fft2
          This is the fft canvas.
static String KEY_AZALTCANVAS
          The properties of the alt/az offset canvas.
static String KEY_FFTCANVAS
          The properties of the fft canvas.
static String KEY_GUIDERHEAD
          The part of the file name before unique.
static String KEY_GUIDERTAIL
          The part of the file name after unique.
static String KEY_LOCALDIR
          The name of the local directory.
static String KEY_OFFSETCANVAS
          The properties of the offset vs time canvas.
static String KEY_PIDTAIL
          The part of the file name after unique.
static String KEY_SCPCOMMAND
          The scp command to copy to local directory.
static String KEY_SEEINGFFT
          If true, we include the seeing data.
static String KEY_SUBDIRFORMAT
          The name of the local directory.
private  JDataCanvas offset1
          The offset vs.
private  JDataCanvas offset2
          The offset vs.
static String PIDTAB
          Tab id for pid.
static String PIDTIP
          Tool tip for pid.
static String SERIALTAB
          Tab id for serial.
static String SERIALTIP
          Tool tip for serial.
 
Fields inherited from class stella.jview.JMasterDisplay
KEY_BINDNAME, KEY_REFRESH, KEY_ROBOTPROPS, KEY_ROBOTSEQUENCE, KEY_SWITCHMONITOR, KEY_TELESCOPECHAR
 
Fields inherited from class jview.JClientFrame
CONNECTACTION, DISCONNECTACTION, KEY_CONNECTONINIT, KEY_ICONCONNECT, KEY_ICONDISCONNECT
 
Fields inherited from class jview.JOpenFrame
EMPTYACTION, EXITACTION, EXPORTACTION, KEY_FILEACTIONS, KEY_FILEHOME, OPENACTION, PRINTACTION, SAVEACTION
 
Fields inherited from class jview.JBorderFrame
DATACLEANSE, KEY_ABOUTURL, KEY_ACTIONCLASS, KEY_AIPLOGO, KEY_BIGGERSTRUT, KEY_DATAANALYSER, KEY_EASTALIGNMENT, KEY_FITTERS, KEY_FITTERTIPS, KEY_HELPSIZE, KEY_LESSERSTRUT, KEY_NOLOGO, KEY_NORTHALIGNMENT, KEY_SOUTHALIGNMENT, KEY_WESTALIGNMENT, MODELFITTER
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface jview.ClientLabels
KEY_CONNECTERROR, KEY_CONNECTTITLE, KEY_DISCONNECTERROR
 
Fields inherited from interface jview.BorderLabels
KEY_ABOUT, KEY_ABOUTACC, KEY_FILEACCS, KEY_FILEITEMS, KEY_FILEMENU, KEY_FILEMNEMONIC, KEY_HELPMENU, KEY_HELPMNEMONIC, KEY_HELPTITLE, KEY_NOHELP, KEY_NOURLACCESS, KEY_TITLE
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
JOffsetDisplay(Map<String,String> prop)
          A simple info display that retrieves the fits header data for a specified pick.
JOffsetDisplay(PropertyBearing prop)
          A simple display showing guiding data.
 
Method Summary
 Component getRepresentation()
          We return our representation.
 void init()
          We set up our formatters.
static void main(String[] arg)
          Launches a the allsky display
protected  boolean processExternally(HistoryAware.Pick pick)
          This method is only called if we have not found the file locally.
private  void processFile(File serial, File pid, long s0)
          This method is called if the guider offset file are available locally.
protected  boolean processLocally(HistoryAware.Pick pick)
          We grab the unique id of the pick, and see if the guider serial file is available locally.
 void setComposedProperties(PropertyBearing info)
          Defaults the display.
 
Methods inherited from class stella.jview.JMasterDisplay
connect, disconnect, execute, execute, getIcon, getRefreshInterval, isFixedRate, openFile, processPick, refresh, scanDir
 
Methods inherited from class jview.JClientFrame
abolishConnection, actionPerformed, createConnect, establishConnection, exit, getBottomItems
 
Methods inherited from class jview.JOpenFrame
createCheckBoxMenuItem, createLocalizedCheckBoxMenuItem, exportCenter, getExportRepresentation, getHelpActions, getMenus, getOpenFilter, getPrintRepresentation, getSaveFilter, getSaveRepresentation, populateMenu, printCenter, saveFile
 
Methods inherited from class jview.JBorderFrame
analyserListenTo, createButton, createCheckBox, createDataAnalysers, createFitters, createHelp, createLabel, createLocalizedButton, createLocalizedCheckBox, createLocalizedHelp, createLocalizedLabel, createStatus, getAboutAction, getActiveFit, getBiggerStrut, getComposedProperties, getDataAnalysers, getFitterButtonGroup, getFitterComboBox, getLeftItems, getLesserStrut, getModelFittings, getRightItems, getStatusField, getTopItems, hasFired, printAlignment, setAlignment, setFired
 
Methods inherited from class jview.JConfirmExitFrame
disposeAndExit
 
Methods inherited from class jview.JExitFrame
setVisible
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
 
Methods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface util.PropertyComposed
getComposedProperties
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

SERIALTAB

public static final String SERIALTAB
Tab id for serial.

See Also:
Constant Field Values

SERIALTIP

public static final String SERIALTIP
Tool tip for serial.

See Also:
Constant Field Values

PIDTAB

public static final String PIDTAB
Tab id for pid.

See Also:
Constant Field Values

PIDTIP

public static final String PIDTIP
Tool tip for pid.

See Also:
Constant Field Values

AZIMUTH

public static final String AZIMUTH
Name of azimuth axis.

See Also:
Constant Field Values

ALTITUDE

public static final String ALTITUDE
Name of azimuth axis.

See Also:
Constant Field Values

KEY_FFTCANVAS

public static final String KEY_FFTCANVAS
The properties of the fft canvas.

See Also:
Constant Field Values

KEY_AZALTCANVAS

public static final String KEY_AZALTCANVAS
The properties of the alt/az offset canvas.

See Also:
Constant Field Values

KEY_OFFSETCANVAS

public static final String KEY_OFFSETCANVAS
The properties of the offset vs time canvas.

See Also:
Constant Field Values

KEY_SEEINGFFT

public static final String KEY_SEEINGFFT
If true, we include the seeing data.

See Also:
Constant Field Values

KEY_GUIDERHEAD

public static final String KEY_GUIDERHEAD
The part of the file name before unique.

See Also:
Constant Field Values

KEY_GUIDERTAIL

public static final String KEY_GUIDERTAIL
The part of the file name after unique.

See Also:
Constant Field Values

KEY_PIDTAIL

public static final String KEY_PIDTAIL
The part of the file name after unique.

See Also:
Constant Field Values

KEY_LOCALDIR

public static final String KEY_LOCALDIR
The name of the local directory.

See Also:
Constant Field Values

KEY_SUBDIRFORMAT

public static final String KEY_SUBDIRFORMAT
The name of the local directory.

See Also:
Constant Field Values

KEY_SCPCOMMAND

public static final String KEY_SCPCOMMAND
The scp command to copy to local directory.

See Also:
Constant Field Values

DEFTELESCOPECHAR

private static final String DEFTELESCOPECHAR
Default telescope we work on.

See Also:
Constant Field Values

DEFSEEINGFFT

private static final boolean DEFSEEINGFFT
Default ono seeing info in fft .

See Also:
Constant Field Values

DEFGUIDERHEAD

private static final String DEFGUIDERHEAD
The part of the file name before unique.

See Also:
Constant Field Values

DEFGUIDERTAIL

private static final String DEFGUIDERTAIL
The part of the file name after unique.

See Also:
Constant Field Values

DEFPIDTAIL

private static final String DEFPIDTAIL
The part of the file name after unique.

See Also:
Constant Field Values

DEFLOCALDIR

private static final String DEFLOCALDIR
The name of the local directory.

See Also:
Constant Field Values

DEFSUBDIRFORMAT

private static final DateFormat DEFSUBDIRFORMAT
The name of the local directory.


DEFSCPCOMMAND

private static final String DEFSCPCOMMAND
The scp command to copy to local directory.

See Also:
Constant Field Values

fft1

private JTrackingFrequencies fft1
This is the fft canvas.


fft2

private JTrackingFrequencies fft2
This is the fft canvas.


azalt1

private JGuiderOffsets azalt1
This is the az/alt offset display.


azalt2

private JGuiderOffsets azalt2
This is the az/alt offset display.


offset1

private JDataCanvas offset1
The offset vs. time is a simple data canvas .


offset2

private JDataCanvas offset2
The offset vs. time is a simple data canvas .

Constructor Detail

JOffsetDisplay

public JOffsetDisplay(Map<String,String> prop)
               throws RemoteException
A simple info display that retrieves the fits header data for a specified pick.

Throws:
RemoteException

JOffsetDisplay

public JOffsetDisplay(PropertyBearing prop)
               throws RemoteException
A simple display showing guiding data.

Throws:
RemoteException
Method Detail

setComposedProperties

public void setComposedProperties(PropertyBearing info)
Defaults the display.

Specified by:
setComposedProperties in interface PropertyAware
Overrides:
setComposedProperties in class JMasterDisplay

init

public void init()
We set up our formatters.

Specified by:
init in interface Initializable
Overrides:
init in class JMasterDisplay

getRepresentation

public Component getRepresentation()
We return our representation.

Specified by:
getRepresentation in interface Displayable
Overrides:
getRepresentation in class JBorderFrame

processLocally

protected boolean processLocally(HistoryAware.Pick pick)
We grab the unique id of the pick, and see if the guider serial file is available locally.

Specified by:
processLocally in class JMasterDisplay

processExternally

protected boolean processExternally(HistoryAware.Pick pick)
This method is only called if we have not found the file locally. We try to download from the remote server and then process locally again.

Specified by:
processExternally in class JMasterDisplay

processFile

private void processFile(File serial,
                         File pid,
                         long s0)
This method is called if the guider offset file are available locally. At least the first file must be available, otherwise nothing happens.

Parameters:
s0 - Time stamp of pick, starting time of guiding,

main

public static void main(String[] arg)
                 throws Exception
Launches a the allsky display

Throws:
Exception