public class DetSysController extends javax.swing.JFrame implements java.awt.event.ActionListener, DetOperHMI
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_CURSORBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT| Constructor and Description |
|---|
DetSysController()
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent arg0)
Captures the command to switch panels
|
void |
changeDetectionSettings()
Enables the adjustment of the set of settings.
|
void |
clearDetectionProcessPanel()
Deletes the components used once the processing is done.
|
void |
displayProcessingStageInfo(java.lang.String message)
Displays message about which processing stage is on, e.g.
|
void |
drawROIinI(int minX,
int maxX,
int minY,
int maxY)
Draws a rectangle on the I frame, to indicate a Region Of Interest (ROI)
|
void |
drawROIinR(int minX,
int maxX,
int minY,
int maxY)
Draws a rectangle on the R frame, to indicate a Region Of Interest (ROI)
|
void |
executeDetection()
Executes the whole detection process with the use of the existing set of settings.
|
void |
initializeDetectionProcessPanel(int width,
int height)
Initialises the panel and its components for the detection processing stage.
|
void |
initializeDetectionProgressComponents(int maxval)
Initializes the components that show the progress of the detection.
|
void |
notifyDetection()
Shows that the detection has been completed.
|
void |
restoreMain()
Returns to the main panel.
|
void |
selectMoonFramesDirectory()
Enables the selection of a directory that contains moon frames to loaded for detection.
|
void |
selectObservationPlanFile()
Enables the selection of an observation plan file to be loaded for executing the whole detection process at once.
|
void |
selectOutputDirectory()
Enables the selection of a directory where the output of the detection will be stored.
|
void |
selectStarFramesDirectory()
Enables the selection of a directory that contains star frames to be loaded for photometrical calibration.
|
void |
selectTechnicalFramesDirectory()
Enables the selection of a directory that contains technical frames (flat - bias) to be loaded for flat field correction.
|
void |
updateBar()
Updates the processing bar
|
void |
updateLogText(java.lang.String logMessage)
Displays a log message on the text area.
|
void |
updateLunarImage(double[] frameR,
double[] frameI)
Shows a couple of new images on the panel, by renewing the buffers used.
|
void |
updateLunarImage(int[] frameR,
int[] frameI)
Shows a couple of new images on the panel, by renewing the buffers used.
|
void |
updateLunarImage(short[] frameR,
short[] frameI)
Shows a couple of new images on the panel, by renewing the buffers used.
|
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, updateaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, 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, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFrontadd, 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, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, 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, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic void actionPerformed(java.awt.event.ActionEvent arg0)
actionPerformed in interface java.awt.event.ActionListenerpublic void initializeDetectionProcessPanel(int width,
int height)
maxVal - the number of pairs of chunks to be processedwidth - the width of each imageheight - the height of each imagepublic void initializeDetectionProgressComponents(int maxval)
maxval - public void updateBar()
public void updateLunarImage(int[] frameR,
int[] frameI)
frameR - the buffer of the frame in RframeI - the buffer of the frame in Ipublic void updateLunarImage(short[] frameR,
short[] frameI)
frameR - the buffer of the frame in RframeI - the buffer of the frame in Ipublic void updateLunarImage(double[] frameR,
double[] frameI)
frameR - the buffer of the frame in RframeI - the buffer of the frame in Ipublic void clearDetectionProcessPanel()
public void drawROIinR(int minX,
int maxX,
int minY,
int maxY)
minX - the minimum x coordinate - the top left corner of the ROImaxX - the maximum x coordinate - the top right corner of the ROIminY - the minimum y coordinate - the bottom left corner of the ROImaxY - the maximum y coordinate - the bottom right corner of the ROIpublic void drawROIinI(int minX,
int maxX,
int minY,
int maxY)
minX - the minimum x coordinate - the top left corner of the ROImaxX - the maximum x coordinate - the top right corner of the ROIminY - the minimum y coordinate - the bottom left corner of the ROImaxY - the maximum y coordinate - the bottom right corner of the ROIpublic void updateLogText(java.lang.String logMessage)
logMessage - the message to be displayedpublic void restoreMain()
public void notifyDetection()
public void displayProcessingStageInfo(java.lang.String message)
message - public void selectObservationPlanFile()
DetOperHMIselectObservationPlanFile in interface DetOperHMIpublic void selectMoonFramesDirectory()
DetOperHMIselectMoonFramesDirectory in interface DetOperHMIpublic void selectOutputDirectory()
DetOperHMIselectOutputDirectory in interface DetOperHMIpublic void selectStarFramesDirectory()
DetOperHMIselectStarFramesDirectory in interface DetOperHMIpublic void selectTechnicalFramesDirectory()
DetOperHMIselectTechnicalFramesDirectory in interface DetOperHMIpublic void executeDetection()
DetOperHMIexecuteDetection in interface DetOperHMIpublic void changeDetectionSettings()
DetOperHMIchangeDetectionSettings in interface DetOperHMI