|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
jview.JExitFrame
jview.JConfirmExitFrame
jview.JBorderFrame
jview.JOpenFrame
jview.JClientFrame
stella.jview.JMasterDisplay
stella.jview.JDatabaseDisplay
stella.jview.JObjectDisplay
public class JObjectDisplay
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.
| 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.JConfirmExitFrame |
|---|
disposeAndExit |
| Methods inherited from class jview.JExitFrame |
|---|
setVisible |
| 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.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 |
|---|
public static final String PLOTIT
public static final String SUCCESS
public static final String SCIENCE
public static final String GOODSET
public static final String BADSET
public static final String FITSET
public static final String KEY_HOSTS
public static final String KEY_SUBNAME
public static final String KEY_SUBBIND
public static final String KEY_TARGETLIST
public static final String KEY_ALPHABETICAL
public static final String KEY_VALUEFIELDS
public static final String KEY_VALUEMETHODS
public static final String KEY_JOINWHERE
public static final String KEY_SUCCESSWHERE
public static final String KEY_IMAGEWHERE
public static final String KEY_ALLTABLES
public static final String KEY_DONESUCCESS
public static final String KEY_DONEUNIQUE
public static final String KEY_DONEOBJECT
public static final String KEY_OBJECTFIELD
public static final String KEY_SHOWPLOTS
public static final String KEY_PLOTPREFS
public static final String KEY_SHOWXVSY
public static final String KEY_ONLYSUCCESS
public static final String KEY_ONLYSCIENCE
public static final String KEY_UNIQUEFIELD
public static final String KEY_UNIQUENAME
public static final String KEY_DATEFIELD
public static final String KEY_DURATIONFIELD
public static final String KEY_SUCCESSFIELD
public static final String KEY_MERITFIELD
public static final String KEY_PERIODFIELD
public static final String KEY_OBJNAMEFIELD
public static final String KEY_FITPOINTS
private static final int DEFFITPOINTS
private static final String DEFRESOURCEBUNDLES
private static final String DEFSUBNAME
private static final boolean DEFSUBBIND
private static final String DEFVALUEFIELDS
private static final String DEFVALUEMETHODS
private static final String DEFJOINWHERE
private static final String DEFSUCCESSWHERE
private static final String DEFIMAGEWHERE
private static final String DEFALLTABLES
private static final String DEFDONESUCCESS
private static final String DEFDONEUNIQUE
private static final String DEFDONEOBJECT
private static final String DEFOBJECTFIELD
private static final String DEFSHOWPLOTS
private static final String DEFSHOWXVSY
private static final boolean DEFONLYSUCCESS
private static final boolean DEFONLYSCIENCE
private static final String DEFUNIQUEFIELD
private static final String DEFUNIQUENAME
private static final String DEFDATEFIELD
private static final String DEFDURATIONFIELD
private static final String DEFSUCCESSFIELD
private static final String DEFMERITFIELD
private static final String DEFPERIODFIELD
private static final String DEFOBJNAMEFIELD
private static final String NOOBJECT
private Map<String,Method> request
private Map<String,Boolean> dateconvert
private Map<String,ModelFitting> fitting
private Map<String,Boolean> collapsed
private Map<String,List<Variable>> plotfit
private String lastquery
private Double lastperiod
private List<Registry> registries
private Map<String,String> staruser
private Map<String,StarDescription> starra
private JTabbedPane tabs
private JLabel target
private JComboBox users
private JToggleButton toggle
private JList select
private JTextField period
private JTextField sqlwhere
private JObjectDisplay.SubComponentHandler handle
| Constructor Detail |
|---|
public JObjectDisplay(PropertyBearing prop)
throws RemoteException
RemoteException
public JObjectDisplay(Map<String,String> prop)
throws RemoteException
RemoteException| Method Detail |
|---|
public void setComposedProperties(PropertyBearing info)
setComposedProperties in interface PropertyAwaresetComposedProperties in class JDatabaseDisplaypublic void init()
init in interface Initializableinit in class JMasterDisplayprivate boolean register(String propname)
public void propertyChange(PropertyChangeEvent pce)
propertyChange in interface PropertyChangeListener
private boolean residuals(List<DataCard> y,
int sx,
int sy,
int se,
VectorG modpar,
DataModel fit,
JDataCanvas rms,
String setname)
public Component getRepresentation()
getRepresentation in interface DisplayablegetRepresentation in class JBorderFrameprotected boolean saveFile(File saveas)
JMasterDisplay.openFile(java.io.File) we have a default implementation, where
we save to central component in the file.
saveFile in class JOpenFrameprotected void printCenter()
printCenter in class JOpenFrameprotected String getTableName()
getTableName in class JDatabaseDisplayprotected Map<String,Method> getRequestedFields()
getRequestedFields in class JDatabaseDisplayprotected List<Action> getHelpActions()
getHelpActions in class JOpenFrameprotected List<Object> getRightItems()
getRightItems in class JBorderFrame
protected void displayData(Map<String,List<Object>> fits,
Double days)
private void doDisplay(int i1,
List<List<String>> vars,
Map<String,List<Object>> fits,
Double days)
protected boolean processLocally(HistoryAware.Pick pick)
processLocally in class JMasterDisplayprivate JTabbedPane getTabbedPane()
private void treatPick(HistoryAware.Pick click)
private String retrieveMainStarName(String targetname)
private void retrievePeriod(String objname)
void retrieveFor(List<String> object,
String sql,
String period)
private double[] evaluateAll(String expression,
Map<String,List<Object>> data,
Double days)
private static Collection<String> sortTargets(Map<String,StarDescription> targets,
Map<String,String> users,
String uid,
boolean alp)
public static void main(String[] arg)
throws RemoteException
RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||