class ChapGUI
extends javax.swing.JFrame
The GUI was created with, and is maintained by, the Eclipse WindowBuilder. All methods and data are declared static because it only makes sense to have one main GUI per application, and making them static avoids the problem of having to pass a reference to the GUI instance in other classes that need to reference the main GUI.
Copyright (c) 2018
Note that the Eclipse Window Builder has trouble with complex, dynamic GUIs so that
one should first build the GUI, then modify the code by hand to use
the definitions in ASTUtils.ASTStyle. The Window Builder start/stop hiding tags can be used to
surround code that the Window Builder parser has trouble handling.
The start hiding tag is //$hide>>$
while the stop
hiding tag is //$hide<<$
. For example,
//$hide>>$
code to be hidden
//$hide<<$
javax.swing.JFrame.AccessibleJFrame
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
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
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Modifier | Constructor and Description |
---|---|
protected |
ChapGUI()
Create the GUI frame.
|
Modifier and Type | Method and Description |
---|---|
protected static boolean |
checkOEDBLoaded()
Checks to see if an orbital elements database has been
successfully loaded, and display an error message if not.
|
protected static boolean |
checkOEDBLoaded(boolean showErrors)
Checks to see if an orbital elements database has been
successfully loaded, and display an error message if not.
|
protected static void |
clearTextAreas()
Clears the text areas in the GUI
|
protected static java.lang.String |
getAboutCommand()
Gets the command that represents the About menu item.
|
protected static java.lang.String |
getChapMenuCommand()
Gets the command that represents the Solar Info and Orbital Elements menu items.
|
protected static java.lang.String |
getCSTCommand()
Gets the command that represents the CST radio button.
|
protected static jll.celcalc.ASTUtils.ASTObserver |
getcurrentObserver()
Gets the current observer.
|
protected static jll.celcalc.ASTUtils.ASTOrbits |
getcurrentOrbitalElements()
Gets the currently loaded orbital elements
|
protected static boolean |
getDSTStatus()
Gets the current status of the DST check box
|
protected static java.lang.String |
getEQofCenterCommand()
Gets the command that represents the EQ of Center radio button.
|
protected static boolean |
getEQofCenterStatus()
Gets the current status of the EQ of Center radio button
|
protected static java.lang.String |
getESTCommand()
Gets the command that represents the EST radio button.
|
protected static java.lang.String |
getExitCommand()
Gets the command that represents the Exit menu item.
|
protected static java.lang.String |
getInstructionsCommand()
Gets the command that represents the Instructions menu item.
|
protected static java.lang.String |
getLongitudeCommand()
Gets the command that represents the Longitude radio button.
|
protected static java.awt.event.ActionListener |
getMenuListener()
Gets the listener for the menu items
|
protected static java.lang.String |
getMSTCommand()
Gets the command that represents the MST radio button.
|
protected static java.lang.String |
getNewtonMethodCommand()
Gets the command that represents the Newton's Method radio button.
|
protected static boolean |
getNewtonMethodStatus()
Gets the current status of the Newton's Method radio button
|
protected static javax.swing.JMenu |
getOrbitalElementsMenu()
Gets the Orbital Elements menu.
|
protected static jll.celcalc.ASTUtils.ASTPrt |
getPrtInstance()
Gets the ASTPrt instance for this application's scrollable text pane area.
|
protected static java.lang.String |
getPSTCommand()
Gets the command that represents the PST radio button.
|
protected static jll.celcalc.ASTUtils.ASTLatLon.TimeZoneType |
getSelectedRBStatus()
Determine what time zone radio button is selected
|
protected static boolean |
getShowInterimCalcsStatus()
Gets the status of the Show Interim Calculations checkbox
|
protected static java.lang.String |
getSimpleIterationCommand()
Gets the command that represents the Simple Iteration radio button.
|
protected static boolean |
getSimpleIterationStatus()
Gets the current status of the Simple Iteration radio button
|
protected static javax.swing.JMenu |
getSolarInfoMenu()
Gets the Solar Info menu.
|
protected static javax.swing.JTextPane |
getTextPane()
Gets the scrollable text pane area for this GUI.
|
protected static void |
printCond(java.lang.String txt)
Routines to handle sending output text to the scrollable
output area.
|
protected static void |
printlnCond()
Routines to handle sending output text to the scrollable
output area.
|
protected static void |
printlnCond(java.lang.String txt)
Routines to handle sending output text to the scrollable
output area.
|
protected static void |
printlnCond(java.lang.String txt,
boolean centerTxt)
Routines to handle sending output text to the scrollable
output area.
|
protected static void |
setCSTRadBtn()
Sets the CST radio button to true
|
protected static void |
setEpoch(double epoch)
Sets the Epoch label in the GUI.
|
protected static void |
setEQofCenterRadBtn()
Sets the EQ of Center radio button to true
|
protected static void |
setESTRadBtn()
Sets the EST radio button to true
|
protected static void |
setLonRadBtn()
Sets the Longitude radio button to true
|
protected static void |
setMSTRadBtn()
Sets the MST radio button to true
|
protected static void |
setNewtonMethodRadBtn()
Sets the Newton's Method radio button to true
|
protected static void |
setPSTRadBtn()
Sets the PST radio button to true
|
protected static void |
setResults(java.lang.String result)
Sets the results label in the GUI
|
protected static void |
setSimpleIterationRadBtn()
Sets the Simple Iteration radio button to true
|
protected static void |
showAboutBox()
Shows the About Box
|
protected static boolean |
validateGUIObsLoc()
See if the observer location, date, and time
currently in the GUI is valid.
|
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
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
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, transferFocusDownCycle, validate, validateTree
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, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, 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, 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, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected static void clearTextAreas()
protected static jll.celcalc.ASTUtils.ASTObserver getcurrentObserver()
protected static jll.celcalc.ASTUtils.ASTOrbits getcurrentOrbitalElements()
protected static boolean getDSTStatus()
protected static boolean getEQofCenterStatus()
protected static java.awt.event.ActionListener getMenuListener()
protected static boolean getNewtonMethodStatus()
protected static javax.swing.JMenu getOrbitalElementsMenu()
protected static boolean getShowInterimCalcsStatus()
protected static boolean getSimpleIterationStatus()
protected static javax.swing.JMenu getSolarInfoMenu()
protected static jll.celcalc.ASTUtils.ASTPrt getPrtInstance()
protected static javax.swing.JTextPane getTextPane()
protected static void setEpoch(double epoch)
epoch
- Epoch to displayprotected static void setResults(java.lang.String result)
result
- string for the results label in the GUIprotected static jll.celcalc.ASTUtils.ASTLatLon.TimeZoneType getSelectedRBStatus()
protected static java.lang.String getPSTCommand()
protected static java.lang.String getMSTCommand()
protected static java.lang.String getCSTCommand()
protected static java.lang.String getESTCommand()
protected static java.lang.String getLongitudeCommand()
protected static void setPSTRadBtn()
protected static void setMSTRadBtn()
protected static void setCSTRadBtn()
protected static void setESTRadBtn()
protected static void setLonRadBtn()
protected static java.lang.String getEQofCenterCommand()
protected static java.lang.String getNewtonMethodCommand()
protected static java.lang.String getSimpleIterationCommand()
protected static void setEQofCenterRadBtn()
protected static void setNewtonMethodRadBtn()
protected static void setSimpleIterationRadBtn()
protected static java.lang.String getChapMenuCommand()
protected static java.lang.String getExitCommand()
protected static java.lang.String getInstructionsCommand()
protected static java.lang.String getAboutCommand()
protected static void printCond(java.lang.String txt)
txt
- string to be printedprotected static void printlnCond()
protected static void printlnCond(java.lang.String txt)
txt
- string to be printedprotected static void printlnCond(java.lang.String txt, boolean centerTxt)
txt
- string to be printedcenterTxt
- true if the text is to be centeredprotected static void showAboutBox()
protected static boolean checkOEDBLoaded()
protected static boolean checkOEDBLoaded(boolean showErrors)
showErrors
- display error message if trueprotected static boolean validateGUIObsLoc()