stella.jview
Class JObjectDisplay

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.JObjectDisplay
All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, Remote, EventListener, Accessible, RootPaneContainer, WindowConstants, BorderLabels, ClientLabels, Displayable, ObjectLabels, PickListener, ClientObject, ExitCleaning, Initializable, PropertyAware, PropertyComposed, Refreshing

public class JObjectDisplay
extends JDatabaseDisplay
implements ObjectLabels, PropertyChangeListener

A class that retrieves data depending on the unique target name. The list of values displayed is converted into plots that are stapled in tabbed panes.

See Also:
Serialized Form

Nested Class Summary
private  class JObjectDisplay.SubComponentHandler
          The helper class for access via rmi.
private static class JObjectDisplay.TargetComparator
          A helper class that can compare either the names of the targets or the ra of its main star.
 
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 BADSET
          Name of bad set.
private  Map<String,Boolean> collapsed
          The mapping of plot names to split pane collapses.
private  Map<String,Boolean> dateconvert
          If any of the key names is linked to a date, we mark it.
private static String DEFALLTABLES
          The from clause listing all tables .
private static String DEFDATEFIELD
          The default target name field in the database
private static String DEFDONEOBJECT
          The target name field in the done table .
private static String DEFDONESUCCESS
          The success field name in the done table.
private static String DEFDONEUNIQUE
          The unique field name in the done table.
private static String DEFDURATIONFIELD
          The default target name field in the database
private static int DEFFITPOINTS
          Default property value.
private static String DEFIMAGEWHERE
          The default necessarity for only science frames.
private static String DEFJOINWHERE
          The default join clause.
private static String DEFMERITFIELD
          The default target name field in the database
private static String DEFOBJECTFIELD
          The target name field in the main table queried.
private static String DEFOBJNAMEFIELD
          The key to the objname field in the target database.
private static boolean DEFONLYSCIENCE
          Default only successful observations.
private static boolean DEFONLYSUCCESS
          Default only successful observations.
private static String DEFPERIODFIELD
          The key to the period field in the target database.
private static String DEFRESOURCEBUNDLES
          The resource bundles for localized labels and text.
private static String DEFSHOWPLOTS
          The formats to the values to plot.
private static String DEFSHOWXVSY
          The comments to the values to plot.
private static boolean DEFSUBBIND
          If sub component should be accessible as a caster.
private static String DEFSUBNAME
          The binding name of the sub component caster linked to the display.
private static String DEFSUCCESSFIELD
          The default target name field in the database
private static String DEFSUCCESSWHERE
          The default necessarity for only successes.
private static String DEFUNIQUEFIELD
          The default target name field in the database
private static String DEFUNIQUENAME
          The default target name field in the database
private static String DEFVALUEFIELDS
          The allowed values to plot.
private static String DEFVALUEMETHODS
          The default retrieval methods.
static String FITSET
          Name of fit set.
private  Map<String,ModelFitting> fitting
          The mapping of plot names to model fittings.
static String GOODSET
          Name of good set.
private  JObjectDisplay.SubComponentHandler handle
          The class that handles rmi-access.
static String KEY_ALLTABLES
          The from clause listing all tables .
static String KEY_ALPHABETICAL
          List is ordered alphabetically for target names.
static String KEY_DATEFIELD
          The key to the target name in the database.
static String KEY_DONEOBJECT
          The target name field in the done table .
static String KEY_DONESUCCESS
          The unique field name in the done table.
static String KEY_DONEUNIQUE
          The unique field name in the done table.
static String KEY_DURATIONFIELD
          The key to the target name in the database.
static String KEY_FITPOINTS
          Number of points in the fit.
static String KEY_HOSTS
          The list of hosts that should be scanned to radiate pick events.
static String KEY_IMAGEWHERE
          The joins clause to be added to the normal where.
static String KEY_JOINWHERE
          The joins clause to be added to the normal where.
static String KEY_MERITFIELD
          The key to the target name in the database.
static String KEY_OBJECTFIELD
          The target name field in the main table queried.
static String KEY_OBJNAMEFIELD
          The key to the objname field in the target database.
static String KEY_ONLYSCIENCE
          If true, we select only science frames.
static String KEY_ONLYSUCCESS
          If true, we select only successful frames.
static String KEY_PERIODFIELD
          The key to the period field in the target database.
static String KEY_PLOTPREFS
          The properties of the plot canvi.
static String KEY_SHOWPLOTS
          The names of the plots to display, goes into the tabs.
static String KEY_SHOWXVSY
          According to the names a pair of values to plot against
static String KEY_SUBBIND
          If sub component should be accessible as a caster.
static String KEY_SUBNAME
          The binding name of the sub component caster linked to the display.
static String KEY_SUCCESSFIELD
          The key to the target name in the database.
static String KEY_SUCCESSWHERE
          The joins clause to be added to the normal where.
static String KEY_TARGETLIST
          The target list parameter for individual target selection.
static String KEY_UNIQUEFIELD
          The key to the target name in the database.
static String KEY_UNIQUENAME
          The key to the target name in the database.
static String KEY_VALUEFIELDS
          The values to retreive.
static String KEY_VALUEMETHODS
          The values to retreive.
private  Double lastperiod
          The last period entered or retrieved.
private  String lastquery
          The last sql query.
private static String NOOBJECT
          Text to display if no object was selected.
private  JTextField period
          The user can enter a period here.
private  Map<String,List<Variable>> plotfit
          The mapping of plot names to fitting parameters.
static String PLOTIT
          Action command for the plot action.
private  List<Registry> registries
          A list of registries on hosts that might contain pick event listeners.
private  Map<String,Method> request
          Mapping of key names to methods in result set.
static String SCIENCE
          Action command for the success action.
private  JList select
          List of targets.
private  JTextField sqlwhere
          If the sofisticated user wants to add special SQL queries.
private  Map<String,StarDescription> starra
          A mapping of all targets to ra/de stars.
private  Map<String,String> staruser
          A mapping of all targets to user names.
static String SUCCESS
          Action command for the success action.
private  JTabbedPane tabs
          The container for the plot canvi.
private  JLabel target
          The head-label holding the name of the current object.
private  JToggleButton toggle
          Button for selection order changes.
private  JComboBox users
          Combo box for selecting users.
 
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 stella.jview.ObjectLabels
KEY_NAMEORDER, KEY_ORDERTIP, KEY_PERIODLABEL, KEY_PERIODTIP, KEY_PLOTIT, KEY_PLOTITTIP, KEY_RAORDER, KEY_SCIENCEBOX, KEY_SCIENCETIP, KEY_SQLLABEL, KEY_SQLTIP, KEY_SUCCESSBOX, KEY_SUCCESSTIP, KEY_USERTIP
 
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
JObjectDisplay(Map<String,String> prop)
          Constructs a generic peripheral from a property container.
JObjectDisplay(PropertyBearing prop)
          A simple info display that retrieves the fits header data for a specified pick.
 
Method Summary
protected  void displayData(Map<String,List<Object>> fits, Double days)
          Puts the data into the display labels.
private  void doDisplay(int i1, List<List<String>> vars, Map<String,List<Object>> fits, Double days)
           
private  double[] evaluateAll(String expression, Map<String,List<Object>> data, Double days)
          For a set of retrieved values from the database, we parse them to yield our x and y data.
protected  List<Action> getHelpActions()
          Returns the list of actions where the help menu items should be created from.
 Component getRepresentation()
          We return our representation.
protected  Map<String,Method> getRequestedFields()
          Returns the data that should be retrieved.
protected  List<Object> getRightItems()
          On the right-hand side we add checkboxes for the success and science include and a textfield where SQL wheres can be entered.
private  JTabbedPane getTabbedPane()
          We return a table-like representation of a panel, structured as a simple gridbag layout panel.
protected  String getTableName()
          Subclasses may override here and suplly multiple table names for joins.
 void init()
          We set up our formatters.
static void main(String[] arg)
          Launches a the allsky display
protected  void printCenter()
          Prints the central component.
protected  boolean processLocally(HistoryAware.Pick pick)
          We grab the unique id of the pick, lookUp the target name and select everything of this target.
 void propertyChange(PropertyChangeEvent pce)
          See if we have a new model.
private  boolean register(String propname)
          Registers myself to known property change casters of the given property name.
private  boolean residuals(List<DataCard> y, int sx, int sy, int se, VectorG modpar, DataModel fit, JDataCanvas rms, String setname)
           
(package private)  void retrieveFor(List<String> object, String sql, String period)
          This method reads the database and issues canvas updates.
private  String retrieveMainStarName(String targetname)
          Returns the name of the main star in the target definition with the given target name.
private  void retrievePeriod(String objname)
          This method is called when a new star has been selected and we want to find its period.
protected  boolean saveFile(File saveas)
          Different to JMasterDisplay.openFile(java.io.File) we have a default implementation, where we save to central component in the file.
 void setComposedProperties(PropertyBearing info)
          Defaults the display.
private static Collection<String> sortTargets(Map<String,StarDescription> targets, Map<String,String> users, String uid, boolean alp)
          Sorts a collection of targets.
private  void treatPick(HistoryAware.Pick click)
          This pick is selected.
 
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, getMenus, getOpenFilter, getPrintRepresentation, getSaveFilter, getSaveRepresentation, populateMenu
 
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

PLOTIT

public static final String PLOTIT
Action command for the plot action.

See Also:
Constant Field Values

SUCCESS

public static final String SUCCESS
Action command for the success action.

See Also:
Constant Field Values

SCIENCE

public static final String SCIENCE
Action command for the success action.

See Also:
Constant Field Values

GOODSET

public static final String GOODSET
Name of good set.

See Also:
Constant Field Values

BADSET

public static final String BADSET
Name of bad set.

See Also:
Constant Field Values

FITSET

public static final String FITSET
Name of fit set.

See Also:
Constant Field Values

KEY_HOSTS

public static final String KEY_HOSTS
The list of hosts that should be scanned to radiate pick events.

See Also:
Constant Field Values

KEY_SUBNAME

public static final String KEY_SUBNAME
The binding name of the sub component caster linked to the display.

See Also:
Constant Field Values

KEY_SUBBIND

public static final String KEY_SUBBIND
If sub component should be accessible as a caster.

See Also:
Constant Field Values

KEY_TARGETLIST

public static final String KEY_TARGETLIST
The target list parameter for individual target selection.

See Also:
Constant Field Values

KEY_ALPHABETICAL

public static final String KEY_ALPHABETICAL
List is ordered alphabetically for target names.

See Also:
Constant Field Values

KEY_VALUEFIELDS

public static final String KEY_VALUEFIELDS
The values to retreive.

See Also:
Constant Field Values

KEY_VALUEMETHODS

public static final String KEY_VALUEMETHODS
The values to retreive.

See Also:
Constant Field Values

KEY_JOINWHERE

public static final String KEY_JOINWHERE
The joins clause to be added to the normal where.

See Also:
Constant Field Values

KEY_SUCCESSWHERE

public static final String KEY_SUCCESSWHERE
The joins clause to be added to the normal where.

See Also:
Constant Field Values

KEY_IMAGEWHERE

public static final String KEY_IMAGEWHERE
The joins clause to be added to the normal where.

See Also:
Constant Field Values

KEY_ALLTABLES

public static final String KEY_ALLTABLES
The from clause listing all tables .

See Also:
Constant Field Values

KEY_DONESUCCESS

public static final String KEY_DONESUCCESS
The unique field name in the done table.

See Also:
Constant Field Values

KEY_DONEUNIQUE

public static final String KEY_DONEUNIQUE
The unique field name in the done table.

See Also:
Constant Field Values

KEY_DONEOBJECT

public static final String KEY_DONEOBJECT
The target name field in the done table .

See Also:
Constant Field Values

KEY_OBJECTFIELD

public static final String KEY_OBJECTFIELD
The target name field in the main table queried.

See Also:
Constant Field Values

KEY_SHOWPLOTS

public static final String KEY_SHOWPLOTS
The names of the plots to display, goes into the tabs.

See Also:
Constant Field Values

KEY_PLOTPREFS

public static final String KEY_PLOTPREFS
The properties of the plot canvi.

See Also:
Constant Field Values

KEY_SHOWXVSY

public static final String KEY_SHOWXVSY
According to the names a pair of values to plot against

See Also:
Constant Field Values

KEY_ONLYSUCCESS

public static final String KEY_ONLYSUCCESS
If true, we select only successful frames.

See Also:
Constant Field Values

KEY_ONLYSCIENCE

public static final String KEY_ONLYSCIENCE
If true, we select only science frames.

See Also:
Constant Field Values

KEY_UNIQUEFIELD

public static final String KEY_UNIQUEFIELD
The key to the target name in the database.

See Also:
Constant Field Values

KEY_UNIQUENAME

public static final String KEY_UNIQUENAME
The key to the target name in the database.

See Also:
Constant Field Values

KEY_DATEFIELD

public static final String KEY_DATEFIELD
The key to the target name in the database.

See Also:
Constant Field Values

KEY_DURATIONFIELD

public static final String KEY_DURATIONFIELD
The key to the target name in the database.

See Also:
Constant Field Values

KEY_SUCCESSFIELD

public static final String KEY_SUCCESSFIELD
The key to the target name in the database.

See Also:
Constant Field Values

KEY_MERITFIELD

public static final String KEY_MERITFIELD
The key to the target name in the database.

See Also:
Constant Field Values

KEY_PERIODFIELD

public static final String KEY_PERIODFIELD
The key to the period field in the target database.

See Also:
Constant Field Values

KEY_OBJNAMEFIELD

public static final String KEY_OBJNAMEFIELD
The key to the objname field in the target database.

See Also:
Constant Field Values

KEY_FITPOINTS

public static final String KEY_FITPOINTS
Number of points in the fit.

See Also:
Constant Field Values

DEFFITPOINTS

private static final int DEFFITPOINTS
Default property value.

See Also:
Constant Field Values

DEFRESOURCEBUNDLES

private static final String DEFRESOURCEBUNDLES
The resource bundles for localized labels and text.

See Also:
Constant Field Values

DEFSUBNAME

private static final String DEFSUBNAME
The binding name of the sub component caster linked to the display.

See Also:
Constant Field Values

DEFSUBBIND

private static final boolean DEFSUBBIND
If sub component should be accessible as a caster.

See Also:
Constant Field Values

DEFVALUEFIELDS

private static final String DEFVALUEFIELDS
The allowed values to plot.

See Also:
Constant Field Values

DEFVALUEMETHODS

private static final String DEFVALUEMETHODS
The default retrieval methods.

See Also:
Constant Field Values

DEFJOINWHERE

private static final String DEFJOINWHERE
The default join clause.

See Also:
Constant Field Values

DEFSUCCESSWHERE

private static final String DEFSUCCESSWHERE
The default necessarity for only successes.

See Also:
Constant Field Values

DEFIMAGEWHERE

private static final String DEFIMAGEWHERE
The default necessarity for only science frames.

See Also:
Constant Field Values

DEFALLTABLES

private static final String DEFALLTABLES
The from clause listing all tables .

See Also:
Constant Field Values

DEFDONESUCCESS

private static final String DEFDONESUCCESS
The success field name in the done table.

See Also:
Constant Field Values

DEFDONEUNIQUE

private static final String DEFDONEUNIQUE
The unique field name in the done table.

See Also:
Constant Field Values

DEFDONEOBJECT

private static final String DEFDONEOBJECT
The target name field in the done table .

See Also:
Constant Field Values

DEFOBJECTFIELD

private static final String DEFOBJECTFIELD
The target name field in the main table queried.

See Also:
Constant Field Values

DEFSHOWPLOTS

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

See Also:
Constant Field Values

DEFSHOWXVSY

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

See Also:
Constant Field Values

DEFONLYSUCCESS

private static final boolean DEFONLYSUCCESS
Default only successful observations.

See Also:
Constant Field Values

DEFONLYSCIENCE

private static final boolean DEFONLYSCIENCE
Default only successful observations.

See Also:
Constant Field Values

DEFUNIQUEFIELD

private static final String DEFUNIQUEFIELD
The default target name field in the database

See Also:
Constant Field Values

DEFUNIQUENAME

private static final String DEFUNIQUENAME
The default target name field in the database

See Also:
Constant Field Values

DEFDATEFIELD

private static final String DEFDATEFIELD
The default target name field in the database

See Also:
Constant Field Values

DEFDURATIONFIELD

private static final String DEFDURATIONFIELD
The default target name field in the database

See Also:
Constant Field Values

DEFSUCCESSFIELD

private static final String DEFSUCCESSFIELD
The default target name field in the database

See Also:
Constant Field Values

DEFMERITFIELD

private static final String DEFMERITFIELD
The default target name field in the database

See Also:
Constant Field Values

DEFPERIODFIELD

private static final String DEFPERIODFIELD
The key to the period field in the target database.

See Also:
Constant Field Values

DEFOBJNAMEFIELD

private static final String DEFOBJNAMEFIELD
The key to the objname field in the target database.

See Also:
Constant Field Values

NOOBJECT

private static final String NOOBJECT
Text to display if no object was selected.

See Also:
Constant Field Values

request

private Map<String,Method> request
Mapping of key names to methods in result set.


dateconvert

private Map<String,Boolean> dateconvert
If any of the key names is linked to a date, we mark it.


fitting

private Map<String,ModelFitting> fitting
The mapping of plot names to model fittings.


collapsed

private Map<String,Boolean> collapsed
The mapping of plot names to split pane collapses.


plotfit

private Map<String,List<Variable>> plotfit
The mapping of plot names to fitting parameters.


lastquery

private String lastquery
The last sql query.


lastperiod

private Double lastperiod
The last period entered or retrieved.


registries

private List<Registry> registries
A list of registries on hosts that might contain pick event listeners.


staruser

private Map<String,String> staruser
A mapping of all targets to user names.


starra

private Map<String,StarDescription> starra
A mapping of all targets to ra/de stars.


tabs

private JTabbedPane tabs
The container for the plot canvi.


target

private JLabel target
The head-label holding the name of the current object.


users

private JComboBox users
Combo box for selecting users.


toggle

private JToggleButton toggle
Button for selection order changes.


select

private JList select
List of targets.


period

private JTextField period
The user can enter a period here.


sqlwhere

private JTextField sqlwhere
If the sofisticated user wants to add special SQL queries.


handle

private JObjectDisplay.SubComponentHandler handle
The class that handles rmi-access.

Constructor Detail

JObjectDisplay

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

Throws:
RemoteException

JObjectDisplay

public JObjectDisplay(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

register

private boolean register(String propname)
Registers myself to known property change casters of the given property name.


propertyChange

public void propertyChange(PropertyChangeEvent pce)
See if we have a new model.

Specified by:
propertyChange in interface PropertyChangeListener

residuals

private boolean residuals(List<DataCard> y,
                          int sx,
                          int sy,
                          int se,
                          VectorG modpar,
                          DataModel fit,
                          JDataCanvas rms,
                          String setname)

getRepresentation

public Component getRepresentation()
We return our representation.

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

saveFile

protected boolean saveFile(File saveas)
Different to JMasterDisplay.openFile(java.io.File) we have a default implementation, where we save to central component in the file.

Overrides:
saveFile in class JOpenFrame

printCenter

protected void printCenter()
Prints the central component.

Overrides:
printCenter in class JOpenFrame

getTableName

protected String getTableName()
Subclasses may override here and suplly multiple table names for joins.

Specified by:
getTableName in class JDatabaseDisplay

getRequestedFields

protected Map<String,Method> getRequestedFields()
Returns the data that should be retrieved.

Specified by:
getRequestedFields in class JDatabaseDisplay

getHelpActions

protected List<Action> getHelpActions()
Returns the list of actions where the help menu items should be created from.

Overrides:
getHelpActions in class JOpenFrame

getRightItems

protected List<Object> getRightItems()
On the right-hand side we add checkboxes for the success and science include and a textfield where SQL wheres can be entered.

Overrides:
getRightItems in class JBorderFrame

displayData

protected void displayData(Map<String,List<Object>> fits,
                           Double days)
Puts the data into the display labels.


doDisplay

private void doDisplay(int i1,
                       List<List<String>> vars,
                       Map<String,List<Object>> fits,
                       Double days)

processLocally

protected boolean processLocally(HistoryAware.Pick pick)
We grab the unique id of the pick, lookUp the target name and select everything of this target. If the unique id is null (a pick not associated to an observation), we retrieve for all objects.

Specified by:
processLocally in class JMasterDisplay

getTabbedPane

private JTabbedPane getTabbedPane()
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.


treatPick

private void treatPick(HistoryAware.Pick click)
This pick is selected.


retrieveMainStarName

private String retrieveMainStarName(String targetname)
Returns the name of the main star in the target definition with the given target name.


retrievePeriod

private void retrievePeriod(String objname)
This method is called when a new star has been selected and we want to find its period. If it is found, the period field is updated, otherwise it is left untouched.


retrieveFor

void retrieveFor(List<String> object,
                 String sql,
                 String period)
This method reads the database and issues canvas updates.


evaluateAll

private double[] evaluateAll(String expression,
                             Map<String,List<Object>> data,
                             Double days)
For a set of retrieved values from the database, we parse them to yield our x and y data. We go through the entire data list here.


sortTargets

private static Collection<String> sortTargets(Map<String,StarDescription> targets,
                                              Map<String,String> users,
                                              String uid,
                                              boolean alp)
Sorts a collection of targets. If a user is specified, only targets belonging to that user are considered. If sorted alphabetically, the name of the target is used, otherwise the right ascension of the main object is used, if available.


main

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

Throws:
RemoteException