|
||||||||||
| 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
stella.jview.JStella
public class JStella
This class launches the main STELLA control console. It shows the target
history, which can be used to funnel HistoryAware.Picks to
device displays.
| Nested Class Summary | |
|---|---|
static class |
JStella.Show
Class to create the frame and display it. |
| 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 |
DEFDATEFORMAT
Default date format that is displayed on spinners. |
private static String |
DEFFITSDB
The default database properties. |
private static String |
DEFHISTORYDB
The default database properties. |
private static String |
DEFHISTORYPROP
The default database properties. |
private static String |
DEFHOSTS
The list of hosts that should be scanned to radiate pick events. |
private static int |
DEFMAXSPAN
Maximum span for history. |
private static String |
DEFPLOTPROP
The default database properties. |
private static long |
DEFREFRESH
|
private static String |
DEFRESOURCEBUNDLES
The resource bundles for localized labels and text. |
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 |
DEFSHOWVALUES
The allowed values to plot. |
private static String |
DEFSTELLA
The list of hosts that should be scanned to radiate pick events. |
private static String |
DEFTARGETLIST
The default target list properties. |
private static String |
DEFTIMEZONE
The default database properties. |
private static String |
DEFURLRESOURCES
The default resources. |
private static String |
DEFUSERLIST
The default users. |
private JTargetHistory |
history
My component. |
private HistorySql |
hsql
History db. |
private JComboBox |
inclined
The combo box of fits key to plot inclined. |
static String |
KEY_DATEFORMAT
The format how dates are displayed. |
static String |
KEY_FITSDB
The properties of the observational database. |
static String |
KEY_HISTORYDB
The properties of the history data base. |
static String |
KEY_HISTORYPROP
The properties of the target list. |
static String |
KEY_HOSTS
The list of hosts that should be scanned to radiate pick events. |
static String |
KEY_MAXSPAN
The maximum days that can be spanned. |
static String |
KEY_REFRESH
The properties of the fits list. |
static String |
KEY_RISETWILIGHT
The key to the good-weather toggle height of the sun. |
static String |
KEY_SETTWILIGHT
The key to the good-weather toggle height of the sun. |
static String |
KEY_SHOWCOMMENTS
The allowed fits-keys to plot. |
static String |
KEY_SHOWFORMATS
The allowed fits-keys to plot. |
static String |
KEY_SHOWVALUES
The allowed fits-keys to plot. |
static String |
KEY_STELLA
The telescope id we work on. |
static String |
KEY_TARGETLIST
The target-list parameter to initialize the target history. |
static String |
KEY_TIMEZONE
The timezone |
static String |
KEY_USERLIST
The user properties as a comma-separated file list.. |
private Date |
lastpress
If the update was pressed recently, we do not update. |
private Date |
oldfrom
If the date have not changed, we do not update. |
private Date |
oldto
If the date have not changed, we do not update. |
private ObserveSql |
osql
Observations sql. |
static String |
PLOTACTION
The action identifying plot events to plot fits-keys. |
private JComboBox |
plotx
The combo box of fits key to plot in x-axis. |
private JComboBox |
ploty
The combo box of fits key to plot in y-axis. |
private List<Registry> |
registries
A list of registries on hosts that might contain pick event listeners. |
private SolHeight |
sol
To know, when we have to update the display. |
private JSpinner |
span
The spinner that displays the span of the history in days. |
private JSpinner |
start
The spinner that displays the end date of the history. |
private SettableTime |
time
We need a time to calculate the solar height. |
static String |
UPDATEACTION
The action identifying update events to update the history. |
private Map<String,Format> |
valuemap
A mapping of inclined parameters to their formats. |
| 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.StellaLabels |
|---|
KEY_DATELABEL, KEY_DATETIP, KEY_PLOTBUTTON, KEY_PLOTTIP, KEY_SPANLABEL, KEY_SPANTIP, KEY_UPDATEBUTTON, KEY_UPDATETIP, KEY_VALUELABEL, KEY_VALUETIP, KEY_XLABEL, KEY_XTIP, KEY_YLABEL, KEY_YTIP |
| 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 | |
|---|---|
JStella(Map<String,String> prop)
Constructs a generic peripheral from a property container. |
|
JStella(PropertyBearing prop)
Constructs a the stella panel. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent ae)
Actions fired when a button is pressed. |
private HistoryAware.Pick |
getEntireNight(Date today,
int days)
Returns the length of the last night as a history aware pick. |
private Date |
getMidnight(Date later)
Returns a date that represents midnight at the given time zone. |
long |
getRefreshInterval()
The refresh interval. |
Component |
getRepresentation()
Retruns the JTargetHistory. |
protected List<Object> |
getTopItems()
Returns the list of items to add to the north box. |
void |
init()
Constructs my solar height parameter. |
boolean |
isFixedRate()
We return true here. |
protected boolean |
openFile(File f)
We cannot open a file. |
void |
refresh()
We update the history, if we are showing. |
protected static List<Registry> |
retrieveRegistries(List<String> hostnames)
From a list of host names, we scan for their registries. |
void |
setComposedProperties(PropertyBearing info)
Sets a PropertyBearing object as a composite of the canvas. |
private void |
treatPick(HistoryAware.Pick click)
This pick is selected. |
private void |
updateHistory()
Updates the history plot. |
| Methods inherited from class jview.JOpenFrame |
|---|
createCheckBoxMenuItem, createLocalizedCheckBoxMenuItem, exportCenter, getExportRepresentation, getHelpActions, getMenus, getOpenFilter, getPrintRepresentation, getSaveFilter, getSaveRepresentation, populateMenu, printCenter, saveFile |
| 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 jview.Displayable |
|---|
getIcon |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
public static final String UPDATEACTION
public static final String PLOTACTION
public static final String KEY_HOSTS
public static final String KEY_STELLA
public static final String KEY_FITSDB
public static final String KEY_DATEFORMAT
public static final String KEY_MAXSPAN
public static final String KEY_SHOWVALUES
public static final String KEY_SHOWFORMATS
public static final String KEY_SHOWCOMMENTS
public static final String KEY_TARGETLIST
public static final String KEY_USERLIST
public static final String KEY_SETTWILIGHT
public static final String KEY_RISETWILIGHT
public static final String KEY_HISTORYDB
public static final String KEY_HISTORYPROP
public static final String KEY_REFRESH
public static final String KEY_TIMEZONE
private static final String DEFURLRESOURCES
private static final String DEFRESOURCEBUNDLES
private static final String DEFHOSTS
private static final String DEFSTELLA
private static final String DEFDATEFORMAT
private static final int DEFMAXSPAN
private static final String DEFSHOWVALUES
private static final String DEFSHOWFORMATS
private static final String DEFSHOWCOMMENTS
private static final String DEFTARGETLIST
private static final String DEFHISTORYDB
private static final String DEFHISTORYPROP
private static final String DEFPLOTPROP
private static final String DEFFITSDB
private static final String DEFUSERLIST
private static final String DEFTIMEZONE
private static final long DEFREFRESH
private JSpinner start
private JSpinner span
private JComboBox inclined
private JComboBox plotx
private JComboBox ploty
private Map<String,Format> valuemap
private JTargetHistory history
private Date oldfrom
private Date oldto
private Date lastpress
private SettableTime time
private SolHeight sol
private List<Registry> registries
private HistorySql hsql
private ObserveSql osql
| Constructor Detail |
|---|
public JStella(PropertyBearing prop)
public JStella(Map<String,String> prop)
| Method Detail |
|---|
public void setComposedProperties(PropertyBearing info)
PropertyBearing object as a composite of the canvas.
Defaults the necessary parameter.
setComposedProperties in interface PropertyAwaresetComposedProperties in class JOpenFramepublic void init()
init in interface Initializableinit in class JOpenFramepublic Component getRepresentation()
JTargetHistory.
getRepresentation in interface DisplayablegetRepresentation in class JBorderFrameprotected List<Object> getTopItems()
getTopItems in class JBorderFrameprotected boolean openFile(File f)
openFile in class JOpenFramepublic void refresh()
refresh in interface Refreshingpublic boolean isFixedRate()
isFixedRate in interface RefreshingTimerpublic long getRefreshInterval()
getRefreshInterval in interface Refreshingpublic void actionPerformed(ActionEvent ae)
actionPerformed in interface ActionListeneractionPerformed in class JOpenFrameprivate void treatPick(HistoryAware.Pick click)
private Date getMidnight(Date later)
private HistoryAware.Pick getEntireNight(Date today,
int days)
private void updateHistory()
protected static List<Registry> retrieveRegistries(List<String> hostnames)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||