|
||||||||||
| 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.JEnvironmentDisplay
public class JEnvironmentDisplay
The last class in the GUI-building control hierarchy. This GUI combines
the capabilities of sending commands to a RoofReceiver
(from JLaunchBox) with a display of the current roof position
from JRoofView and a display of current weather data (from
JSensorTable. Additionally it provides methods to put the
EnvironmentMaster into manual mode,
without the need for
direct registration to the roof receiver at startup.
The current web-cam image is 'http://webcam.tt.iac.es/fullsize.jpg?axislogo=off&clock=on'
| Nested Class Summary | |
|---|---|
static class |
JEnvironmentDisplay.Headless
Launches the environment as headless, i.e. |
| 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 WeatherDatabase |
db
A connection to the database. |
private static Color |
DEFBADBORDER
The default good-weather color. |
private static int |
DEFBORDER
The default border size. |
private static String |
DEFDATEFORMAT
Default date format that is displayed on spinners. |
private static String |
DEFFILEACTIONS
The action commands used for identfiying file menu actions. |
private static Color |
DEFGOODBORDER
The default good-weather color. |
private static int |
DEFMAXSPAN
Maximum span for history. |
private static String |
DEFRESOURCEBUNDLES
The resource bundles for localized labels and text. |
private static int |
DEFSENSORCOLUMNS
The default number of roofs. |
private JPanel |
jenv
My display panel for changing the border color. |
static String |
KEY_BADBORDER
The color of the bad-weather border. |
static String |
KEY_BORDER
The key to the size of the panel border. |
static String |
KEY_DATABASE
The key pointing to the properties file of the weather database. |
static String |
KEY_DATEFORMAT
The format how dates are displayed. |
static String |
KEY_GOODBORDER
The color of the good-weather border. |
static String |
KEY_MAXSPAN
The maximum days that can be spanned. |
static String |
KEY_SENSORCANVAS
The key pointing to the property files of the sensor tabels. |
static String |
KEY_SENSORCOLUMNS
The key pointing to the property files of the sensor tabels. |
private JSpinner |
span
The spinner with the hours span. |
private JSpinner |
start
The spinner with the date. |
static String |
UPDATEACTION
The action identifying update events to update the history. |
private List |
weathercanvi
The list of successfully initialized weather canvases. |
| 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.EnvironmentLabels |
|---|
KEY_DATELABEL, KEY_DATETIP, KEY_NODATABASE, KEY_NODATABASETITLE, KEY_SPANLABEL, KEY_SPANTIP, KEY_UPDATEBUTTON, KEY_UPDATETIP |
| 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 | |
|---|---|
JEnvironmentDisplay(Map<String,String> prop)
A simple info display that retrieves the fits header data for a specified pick. |
|
JEnvironmentDisplay(PropertyBearing env)
Constructs a new environment-GUI. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent ae)
Updates the display on user request. |
void |
exit()
On exit, we close the database. |
Component |
getRepresentation()
Returns the entire environment in a single panel. |
protected List<Object> |
getRightItems()
Returns the right items below the AIP-logo. |
void |
init()
Initializes the environment display. |
static void |
main(String[] arg)
Launches a roof control program. |
protected boolean |
processExternally(HistoryAware.Pick span)
We never process externally, if the weather data is not available locally, this is bad luck... |
protected boolean |
processLocally(HistoryAware.Pick span)
This method is called when a new pick-event is received. |
void |
setComposedProperties(PropertyBearing prop)
Sets a PropertyBearing object as a composite of the canvas. |
private void |
updateWeather()
Updates the weather display. |
| Methods inherited from class stella.jview.JMasterDisplay |
|---|
connect, disconnect, execute, execute, getIcon, getRefreshInterval, isFixedRate, openFile, processPick, refresh, scanDir |
| Methods inherited from class jview.JClientFrame |
|---|
abolishConnection, createConnect, establishConnection, 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.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 UPDATEACTION
public static final String KEY_DATABASE
public static final String KEY_SENSORCANVAS
public static final String KEY_SENSORCOLUMNS
public static final String KEY_BORDER
public static final String KEY_GOODBORDER
public static final String KEY_BADBORDER
public static final String KEY_DATEFORMAT
public static final String KEY_MAXSPAN
private static final int DEFSENSORCOLUMNS
private static final int DEFBORDER
private static final Color DEFGOODBORDER
private static final Color DEFBADBORDER
private static final String DEFRESOURCEBUNDLES
private static final String DEFDATEFORMAT
private static final int DEFMAXSPAN
private static final String DEFFILEACTIONS
private JPanel jenv
private List weathercanvi
private WeatherDatabase db
private JSpinner start
private JSpinner span
| Constructor Detail |
|---|
public JEnvironmentDisplay(Map<String,String> prop)
throws RemoteException
RemoteException
public JEnvironmentDisplay(PropertyBearing env)
throws RemoteException
#KEY_HOSTS host-list is searched for a registry-bound
environment master. This property may default to #DEFHOSTS.
RemoteException| Method Detail |
|---|
public void setComposedProperties(PropertyBearing prop)
PropertyBearing object as a composite of the canvas.
Defaults the necessary parameter.
setComposedProperties in interface PropertyAwaresetComposedProperties in class JMasterDisplaypublic void init()
stella.sensor.ShortAverageRepository. This class will in
almost all cases work with a late-comming data collecting to the
repository.
init in interface Initializableinit in class JMasterDisplayprotected List<Object> getRightItems()
getRightItems in class JBorderFramepublic void exit()
exit in interface ExitCleaningexit in class JClientFramepublic Component getRepresentation()
getRepresentation in interface DisplayablegetRepresentation in class JBorderFramepublic void actionPerformed(ActionEvent ae)
actionPerformed in interface ActionListeneractionPerformed in class JClientFrameprivate void updateWeather()
protected boolean processLocally(HistoryAware.Pick span)
processLocally in class JMasterDisplayprotected boolean processExternally(HistoryAware.Pick span)
processExternally in class JMasterDisplay
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 | |||||||||