public class LUT_Selector_Dialog
extends javax.swing.JDialog
implements java.awt.event.ActionListener, javax.swing.event.ChangeListener
To use this, first instantiate it. Then use the showDialog methods to display it. Their return value will indicate how it was dismissed.
NOTE: This version of LUT Selector is out-dated and unused; it remains a component of the HOGG for backwards compatability.
Modifier and Type | Class and Description |
---|---|
protected static class |
LUT_Selector_Dialog.CCD_Brief |
protected static class |
LUT_Selector_Dialog.CCD_Brief_Set |
static class |
LUT_Selector_Dialog.Manual_Inputs |
javax.swing.JDialog.AccessibleJDialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ABOUT_IMAGE_FILENAME
The name of the image file containing the About box image.
|
static java.lang.String |
CCD_INVERSE_GAIN
The name of the PVL parameter for the CCD's inverse gain.
|
static java.lang.String |
CCD_OFFSET
The name of the PVL parameter for the CCD's offset.
|
static java.lang.String |
DEFAULT_CONFIGURATION_TITLE
The default title for the configuration dialog window.
|
static java.lang.String |
DEFAULT_TITLE
The default title for the dialog window.
|
static java.lang.String |
FORCE_WIDE_DIALOG_PROPERTY
The boolean system property that determines whether LUT Selector should be
forced into wide mode.
|
static java.lang.String |
HIST_14BIT_MAXIMUM
The name of the PVL parameter for the CCD's 14-bit maximum.
|
static java.lang.String |
HIST_14BIT_MEAN
The name of the PVL parameter for the CCD's 14-bit mean.
|
static java.lang.String |
HIST_14BIT_MINIMUM
The name of the PVL parameter for the CCD's 14-bit minimum.
|
static java.lang.String |
HIST_14BIT_STANDARD_DEVIATION
The name of the PVL parameter for the CCD's 14-bit standard deviation.
|
static java.lang.String |
HIST_8BIT_MAXIMUM
The name of the PVL parameter for the CCD's 8-bit maximum.
|
static java.lang.String |
HIST_8BIT_MEAN
The name of the PVL parameter for the CCD's 8-bit mean.
|
static java.lang.String |
HIST_8BIT_MINIMUM
The name of the PVL parameter for the CCD's 8-bit minimum.
|
static java.lang.String |
HIST_8BIT_STANDARD_DEVIATION
The name of the PVL parameter for the CCD's 8-bit standard deviation.
|
static java.lang.String |
ID
Class identification name with source code version and date.
|
static java.lang.String |
PARAMETER_NAME
The name of the PVL parameter returned.
|
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
LUT_Selector_Dialog()
Creates a modal LUT_Selector_Dialog.
|
LUT_Selector_Dialog(java.awt.Component component)
Creates a modal LUT_Selector_Dialog with an owner frame derived
from the indicated component.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Receives
ActionEvent s. |
static void |
main(java.lang.String[] args)
Invokes a standalone test stub of the LUT selector in its own thread.
|
PIRL.PVL.Parameter |
showDialog(java.awt.Component location_component,
LUT_Selector_Dialog.CCD_Brief_Set ccd_brief_set,
boolean[] red_high_map) |
PIRL.PVL.Parameter |
showDialog(java.awt.Component location_component,
PIRL.PVL.Parameter hiphop_data,
boolean[] red_high_map)
Displays the LUT_Selector_Dialog with the specified location
component.
|
PIRL.PVL.Parameter |
showDialog(java.awt.Component location_component,
java.lang.String title,
LUT_Selector_Dialog.CCD_Brief_Set ccd_brief_set,
boolean[] red_high_map) |
PIRL.PVL.Parameter |
showDialog(java.awt.Component location_component,
java.lang.String title,
PIRL.PVL.Parameter hiphop_data,
boolean[] red_high_map)
Displays the LUT_Selector_Dialog with the specified location
component, dialog title, HIPHOP data, and red CCD data map.
|
PIRL.PVL.Parameter |
showDialog(LUT_Selector_Dialog.CCD_Brief_Set ccd_brief_set,
boolean[] red_high_map) |
PIRL.PVL.Parameter |
showDialog(PIRL.PVL.Parameter hiphop_data,
boolean[] red_high_map)
Displays the LUT_Selector_Dialog.
|
PIRL.PVL.Parameter |
showDialog(java.lang.String title,
LUT_Selector_Dialog.CCD_Brief_Set ccd_brief_set,
boolean[] red_high_map) |
PIRL.PVL.Parameter |
showDialog(java.lang.String title,
PIRL.PVL.Parameter hiphop_data,
boolean[] red_high_map)
Displays the LUT_Selector_Dialog with the specified title.
|
void |
stateChanged(javax.swing.event.ChangeEvent event) |
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
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, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, 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, remove, 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
public static final java.lang.String ID
public static final java.lang.String DEFAULT_TITLE
public static final java.lang.String DEFAULT_CONFIGURATION_TITLE
public static final java.lang.String ABOUT_IMAGE_FILENAME
Constants.RESOURCES_DIRECTORY
.public static final java.lang.String PARAMETER_NAME
public static final java.lang.String CCD_OFFSET
public static final java.lang.String CCD_INVERSE_GAIN
public static final java.lang.String HIST_14BIT_MINIMUM
public static final java.lang.String HIST_14BIT_MAXIMUM
public static final java.lang.String HIST_14BIT_MEAN
public static final java.lang.String HIST_14BIT_STANDARD_DEVIATION
public static final java.lang.String HIST_8BIT_MINIMUM
public static final java.lang.String HIST_8BIT_MAXIMUM
public static final java.lang.String HIST_8BIT_MEAN
public static final java.lang.String HIST_8BIT_STANDARD_DEVIATION
public static final java.lang.String FORCE_WIDE_DIALOG_PROPERTY
public LUT_Selector_Dialog(java.awt.Component component)
If component is null, a shared, hidden frame is set as the owner of the dialog.
component
- the component that identifies the owner frame of this
LUT_Selector_Dialog.public LUT_Selector_Dialog()
public void actionPerformed(java.awt.event.ActionEvent event)
ActionEvent
s. This method is invoked when an action occurs
within this LUT_Selector_Dialog object. This method invokes
additional methods appropriate to the source of the action event.actionPerformed
in interface java.awt.event.ActionListener
event
- the action event that invoked this method.public void stateChanged(javax.swing.event.ChangeEvent event)
stateChanged
in interface javax.swing.event.ChangeListener
public PIRL.PVL.Parameter showDialog(java.awt.Component location_component, java.lang.String title, PIRL.PVL.Parameter hiphop_data, boolean[] red_high_map)
If location_component is null, the dialog is centered on
the screen. If title is null, DEFAULT_TITLE
is
used. If the hiphop_data parameter is null, demo histogram
data will be generated and used instead.
The red CCD map, red_high_map, maps a red CCD to either the high-binning histogram data or the low-binning histogram data. The map, a simple array of booleans, is indexed by CCD, such that RED0 is the 0th index element of the array, RED1 is the 1st index element, RED2 is the 2nd index element, and so on. If a value is true, the corresponding red CCD is mapped to the high-binning histogram; otherwise it is mapped to the low-binning histogram.
location_component
- the component in relation to which the dialog's
location is determined.title
- the dialog's title.hiphop_data
- the PVL Parameter containing histogram data
from HIPHOP.red_high_map
- the red CCD data map.public PIRL.PVL.Parameter showDialog(java.awt.Component location_component, PIRL.PVL.Parameter hiphop_data, boolean[] red_high_map)
DEFAULT_TITLE
is used for the dialog's title.
If location_component is null, the dialog is centered on the screen. If the hiphop_data parameter is null, demo histogram data will be generated and used instead.
The red CCD map, red_high_map, maps a red CCD to either the high-binning histogram data or the low-binning histogram data. The map, a simple array of booleans, is indexed by CCD, such that RED0 is the 0th index element of the array, RED1 is the 1st index element, RED2 is the 2nd index element, and so on. If a value is true, the corresponding red CCD is mapped to the high-binning histogram; otherwise it is mapped to the low-binning histogram.
location_component
- the component in relation to which the dialog's
location is determined.hiphop_data
- the PVL Parameter containing histogram data
from HIPHOP.red_high_map
- the red CCD data map.public PIRL.PVL.Parameter showDialog(java.lang.String title, PIRL.PVL.Parameter hiphop_data, boolean[] red_high_map)
If title is null, DEFAULT_TITLE
is used. If the
hiphop_data parameter is null, demo histogram data will be
generated and used instead.
The red CCD map, red_high_map, maps a red CCD to either the high-binning histogram data or the low-binning histogram data. The map, a simple array of booleans, is indexed by CCD, such that RED0 is the 0th index element of the array, RED1 is the 1st index element, RED2 is the 2nd index element, and so on. If a value is true, the corresponding red CCD is mapped to the high-binning histogram; otherwise it is mapped to the low-binning histogram.
title
- the dialog's title.hiphop_data
- the PVL Parameter containing histogram data
from HIPHOP.red_high_map
- the red CCD data map.public PIRL.PVL.Parameter showDialog(PIRL.PVL.Parameter hiphop_data, boolean[] red_high_map)
DEFAULT_TITLE
is used for the dialog's title.
If the hiphop_data parameter is null, demo histogram data will be generated and used instead.
The red CCD map, red_high_map, maps a red CCD to either the high-binning histogram data or the low-binning histogram data. The map, a simple array of booleans, is indexed by CCD, such that RED0 is the 0th index element of the array, RED1 is the 1st index element, RED2 is the 2nd index element, and so on. If a value is true, the corresponding red CCD is mapped to the high-binning histogram; otherwise it is mapped to the low-binning histogram.
hiphop_data
- the PVL Parameter containing histogram data
from HIPHOP.red_high_map
- the red CCD data map.public PIRL.PVL.Parameter showDialog(java.awt.Component location_component, java.lang.String title, LUT_Selector_Dialog.CCD_Brief_Set ccd_brief_set, boolean[] red_high_map)
public PIRL.PVL.Parameter showDialog(java.awt.Component location_component, LUT_Selector_Dialog.CCD_Brief_Set ccd_brief_set, boolean[] red_high_map)
public PIRL.PVL.Parameter showDialog(java.lang.String title, LUT_Selector_Dialog.CCD_Brief_Set ccd_brief_set, boolean[] red_high_map)
public PIRL.PVL.Parameter showDialog(LUT_Selector_Dialog.CCD_Brief_Set ccd_brief_set, boolean[] red_high_map)
public static void main(java.lang.String[] args)
LUT_Selector_Dialog [-wide] [-lut_set lut_set_name] [-data hiphop_transfer_data]
Options are not case-sensitive and may be reduced to their shortest unique form. Only one dash may be used.
Stored_LUT
for details.
args
- the command-line arguments.Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona