stella.jview
Class JParameterDisplay

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.JDatabaseDisplay
                                                  extended by stella.jview.JParameterDisplay
All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, Remote, EventListener, Accessible, RootPaneContainer, WindowConstants, BorderLabels, ClientLabels, Displayable, PickListener, ClientObject, ExitCleaning, Initializable, PropertyAware, PropertyComposed, Refreshing

public class JParameterDisplay
extends JDatabaseDisplay

A class that retrieves data from parameter cluster that is treated with the starting time and end time of a pick.

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
private static String DEFDEDB
          Default name of the de database field.
private static String DEFDETARGET
          Default name of the de-paramter.
private static String DEFMAGDB
          Default name of the mag database field.
private static String DEFOBJECT
          The select field that has the unique object name.
private static String DEFOBJNAME
          The select field that has the unique object name.
private static String DEFRADB
          Default name of the ra-database field.
private static String DEFRATARGET
          Default name of the ra-paramter.
private static String DEFSHOWCOMMENTS
          The comments to the values to plot.
private static String DEFSHOWFORMATS
          The formats to the values to plot.
private static String DEFSHOWMULTIPLY
          The mulipliers to the values to plot.
private static String DEFSHOWVALUES
          The allowed values to plot.
private static String DEFTARGETDB
          Default name of the ta-paramter.
private  Map endlabels
          Mapping of key names to display labels.
private  JLabel header
          Header label.
static String KEY_DEDB
          The name of the de-target parameter in the database.
static String KEY_DETARGET
          The name of the de-target parameter in the parameter set.
static String KEY_MAGDB
          The name of the mag-target parameter in the database.
static String KEY_OBJECT
          The select field that has the unique object name.
static String KEY_OBJNAME
          The select field that has the unique object name.
static String KEY_RADB
          The name of the ra-target parameter in the database.
static String KEY_RATARGET
          The name of the ra-target parameter in the parameter set.
static String KEY_SET
          The properties of the parameter cluster.
static String KEY_SHOWCOMMENTS
          The allowed fits-keys to plot.
static String KEY_SHOWFORMATS
          The decimal formats to use on the values above.
static String KEY_SHOWMULTIPLY
          The multipliers to the values.
static String KEY_SHOWVALUES
          The values to retreive and the order to display them.
static String KEY_TARGETDB
          The name of the field in the db with the object name.
static String KEY_TIME
          The name of the fake-time parameter in the parameter set.
private  Map multimap
          Mapping of key names to multipliers.
private static String NAN
          For non-present values.
private  ParameterClustering set
          My parameter cluster.
private  Map startlabels
          Mapping of key names to display labels.
private  Map valuemap
          Mapping of key names to formats.
 
Fields inherited from class stella.jview.JDatabaseDisplay
ISODATE, KEY_DONETABLE, KEY_ENVTABLE, KEY_OBJID, KEY_OBSTABLE, KEY_PERMISSIONTABLE, KEY_PROPOSALTABLE, KEY_REDUCEDTABLE, KEY_TARGETTABLE, KEY_TASKTABLE, KEY_USERNAME, KEY_USERTABLE
 
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
JParameterDisplay(Map<String,String> prop)
          Constructs a generic peripheral from a property container.
JParameterDisplay(PropertyBearing prop)
          A simple info display that retrieves the fits header data for a specified pick.
 
Method Summary
private  void fillLabels(Map key2label)
          Fills parameter values into a field.
 Component getRepresentation()
          We return our representation.
protected  Map getRequestedFields()
          Returns the data that should be retrieved.
protected  List getRightItems()
          Returns the list of actions where buttons below the AIP logo should be created.
protected  JPanel getTable()
          We return a table-like representation of a panel, structured as a simple gridbag layout panel.
protected  String getTableName()
          Returns the table name.
 void init()
          We set up our formatters.
static void main(String[] arg)
          Launches a the allsky display
protected  boolean processLocally(HistoryAware.Pick pick)
          We use the unique ID for the databse query.
 void setComposedProperties(PropertyBearing info)
          Defaults the display.
 
Methods inherited from class stella.jview.JDatabaseDisplay
getRequestedNames, getResultSetMethod, getUserName, lookUp, processExternally, queryDatabase, queryDatabase, queryDatabase, querySingle
 
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, 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

KEY_SET

public static final String KEY_SET
The properties of the parameter cluster.

See Also:
Constant Field Values

KEY_TIME

public static final String KEY_TIME
The name of the fake-time parameter in the parameter set.

See Also:
Constant Field Values

KEY_TARGETDB

public static final String KEY_TARGETDB
The name of the field in the db with the object name.

See Also:
Constant Field Values

KEY_RATARGET

public static final String KEY_RATARGET
The name of the ra-target parameter in the parameter set.

See Also:
Constant Field Values

KEY_OBJECT

public static final String KEY_OBJECT
The select field that has the unique object name.

See Also:
Constant Field Values

KEY_OBJNAME

public static final String KEY_OBJNAME
The select field that has the unique object name.

See Also:
Constant Field Values

KEY_MAGDB

public static final String KEY_MAGDB
The name of the mag-target parameter in the database.

See Also:
Constant Field Values

KEY_RADB

public static final String KEY_RADB
The name of the ra-target parameter in the database.

See Also:
Constant Field Values

KEY_DEDB

public static final String KEY_DEDB
The name of the de-target parameter in the database.

See Also:
Constant Field Values

KEY_DETARGET

public static final String KEY_DETARGET
The name of the de-target parameter in the parameter set.

See Also:
Constant Field Values

KEY_SHOWVALUES

public static final String KEY_SHOWVALUES
The values to retreive and the order to display them.

See Also:
Constant Field Values

KEY_SHOWFORMATS

public static final String KEY_SHOWFORMATS
The decimal formats to use on the values above.

See Also:
Constant Field Values

KEY_SHOWMULTIPLY

public static final String KEY_SHOWMULTIPLY
The multipliers to the values.

See Also:
Constant Field Values

KEY_SHOWCOMMENTS

public static final String KEY_SHOWCOMMENTS
The allowed fits-keys to plot.

See Also:
Constant Field Values

NAN

private static final String NAN
For non-present values.

See Also:
Constant Field Values

DEFTARGETDB

private static final String DEFTARGETDB
Default name of the ta-paramter.

See Also:
Constant Field Values

DEFRATARGET

private static final String DEFRATARGET
Default name of the ra-paramter.

See Also:
Constant Field Values

DEFRADB

private static final String DEFRADB
Default name of the ra-database field.

See Also:
Constant Field Values

DEFDETARGET

private static final String DEFDETARGET
Default name of the de-paramter.

See Also:
Constant Field Values

DEFDEDB

private static final String DEFDEDB
Default name of the de database field.

See Also:
Constant Field Values

DEFMAGDB

private static final String DEFMAGDB
Default name of the mag database field.

See Also:
Constant Field Values

DEFOBJECT

private static final String DEFOBJECT
The select field that has the unique object name.

See Also:
Constant Field Values

DEFOBJNAME

private static final String DEFOBJNAME
The select field that has the unique object name.

See Also:
Constant Field Values

DEFSHOWVALUES

private static final String DEFSHOWVALUES
The allowed values to plot.

See Also:
Constant Field Values

DEFSHOWFORMATS

private static final String DEFSHOWFORMATS
The formats to the values to plot.

See Also:
Constant Field Values

DEFSHOWMULTIPLY

private static final String DEFSHOWMULTIPLY
The mulipliers to the values to plot.

See Also:
Constant Field Values

DEFSHOWCOMMENTS

private static final String DEFSHOWCOMMENTS
The comments to the values to plot.

See Also:
Constant Field Values

header

private JLabel header
Header label.


valuemap

private Map valuemap
Mapping of key names to formats.


multimap

private Map multimap
Mapping of key names to multipliers.


startlabels

private Map startlabels
Mapping of key names to display labels.


endlabels

private Map endlabels
Mapping of key names to display labels.


set

private ParameterClustering set
My parameter cluster.

Constructor Detail

JParameterDisplay

public JParameterDisplay(PropertyBearing prop)
                  throws RemoteException
A simple info display that retrieves the fits header data for a specified pick.

Throws:
RemoteException

JParameterDisplay

public JParameterDisplay(Map<String,String> prop)
                  throws RemoteException
Constructs a generic peripheral from a property container.

Throws:
RemoteException
Method Detail

setComposedProperties

public void setComposedProperties(PropertyBearing info)
Defaults the display.

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

init

public void init()
We set up our formatters.

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

getTableName

protected String getTableName()
Returns the table name.

Specified by:
getTableName in class JDatabaseDisplay

getRequestedFields

protected Map getRequestedFields()
Returns the data that should be retrieved.

Specified by:
getRequestedFields in class JDatabaseDisplay

getRepresentation

public Component getRepresentation()
We return our representation.

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

getTable

protected JPanel getTable()
We return a table-like representation of a panel, structured as a simple gridbag layout panel. We do not use a table because we want more control.


processLocally

protected boolean processLocally(HistoryAware.Pick pick)
We use the unique ID for the databse query.

Specified by:
processLocally in class JMasterDisplay

fillLabels

private void fillLabels(Map key2label)
Fills parameter values into a field.


getRightItems

protected List getRightItems()
Description copied from class: JBorderFrame
Returns the list of actions where buttons below the AIP logo should be created. Per default we return null, if we have no model fitting instances. Otherwise, the model fitters are packed into a combo box and returned here.

Overrides:
getRightItems in class JBorderFrame

main

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

Throws:
RemoteException