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 void |
clearTextAreas()
Clears the text areas in the GUI and any currently
displayed star chart.
|
protected static java.lang.String |
getAboutCommand()
Gets the command that represents the About menu item.
|
protected static java.awt.Dimension |
getCanvasSize()
Determines the size of the drawing canvas for a star chart.
|
protected static java.lang.String |
getChapMenuCommand()
Gets the command that represents the Coord Sys, Star Catalogs, and Star Charts menu items.
|
protected static boolean |
getChartOnScreen()
Return the status of whether there is a chart currently being displayed.
|
protected static javax.swing.JMenu |
getCoordSystemsMenu()
Gets the Coord Systems menu.
|
protected static java.lang.String |
getCSTCommand()
Gets the command that represents the CST radio button.
|
protected static double |
getcurrentmVFilter()
Gets the current mV filter setting
|
protected static jll.celcalc.ASTUtils.ASTObserver |
getcurrentObserver()
Gets the current observer.
|
protected static boolean |
getDSTStatus()
Gets the current status of the DST check box
|
protected static boolean |
getEQChartStatus()
Gets the current status of the EQChart check box
|
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 boolean |
getLabelStars()
Gets the current status of the Label Stars check box
|
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 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 javax.swing.JMenu |
getStarCatalogsMenu()
Gets the Star Catalogs menu.
|
protected static jll.celcalc.ASTUtils.ASTCharts |
getStarChart()
Gets the current star chart instance.
|
protected static javax.swing.JMenu |
getStarChartsMenu()
Gets the Star Charts menu.
|
protected static javax.swing.JTextPane |
getTextPane()
Gets the scrollable text pane area for this GUI.
|
protected static boolean |
getWhiteChartStatus()
Gets the current status of the White Chart check box
|
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 |
setCatalogType(java.lang.String cat_type)
Sets the Catalog type in the GUI.
|
protected static void |
setChartOnScreen(boolean state)
Sets a flag indicating whether a chart is currently displayed.
|
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 |
setESTRadBtn()
Sets the EST radio button to true
|
protected static void |
setFilename(java.lang.String fname)
Sets the filename label to be displayed in the GUI.
|
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 |
setmVFilter(double mV)
Sets the mv Filter label to be displayed in the GUI.
|
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 |
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 java.awt.Dimension getCanvasSize()
protected static javax.swing.JMenu getCoordSystemsMenu()
protected static java.awt.event.ActionListener getMenuListener()
protected static javax.swing.JMenu getStarCatalogsMenu()
protected static javax.swing.JMenu getStarChartsMenu()
protected static jll.celcalc.ASTUtils.ASTPrt getPrtInstance()
protected static jll.celcalc.ASTUtils.ASTCharts getStarChart()
protected static javax.swing.JTextPane getTextPane()
protected static void clearTextAreas()
protected static boolean getChartOnScreen()
protected static double getcurrentmVFilter()
protected static jll.celcalc.ASTUtils.ASTObserver getcurrentObserver()
protected static boolean getDSTStatus()
protected static boolean getEQChartStatus()
protected static boolean getLabelStars()
protected static boolean getWhiteChartStatus()
protected static void setCatalogType(java.lang.String cat_type)
cat_type
- String representing the catalog type
which is read from the star catalog
data fileprotected static void setChartOnScreen(boolean state)
state
- true if a chart is displayed, false if notprotected static void setEpoch(double epoch)
epoch
- Epoch to displayprotected static void setFilename(java.lang.String fname)
fname
- star catalog filename, including pathnameprotected static void setmVFilter(double mV)
mV
- visual magnitude filter 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 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 validateGUIObsLoc()