public class CPMM_Parameters_Dialog
extends javax.swing.JDialog
implements java.awt.event.ActionListener, javax.swing.event.ChangeListener, java.beans.PropertyChangeListener
To use this, first instantiate it. Then use the showDialog methods to display it. Their return value will indicate how it was dismissed.
LUT_Plot_Dialog
,
Linear_LUT
,
Square_Root_LUT
,
Serialized Formjavax.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 |
DEFAULT_TITLE
The default title for the dialog window.
|
static java.lang.String |
ID
Class identification name with source code version and date.
|
static java.lang.String |
LINEAR_LUT
Text value in lookup table type combo box for a linear lookup table.
|
static java.lang.String |
NO_LUT
Text value in lookup table type combo box for no lookup table.
|
static java.lang.String |
SQUARE_ROOT_LUT
Text value in lookup table type combo box for a square root lookup table.
|
static java.lang.String |
STORED_LUT
Text value in lookup table type combo box for a stored lookup table.
|
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
CPMM_Parameters_Dialog()
Creates a modal CPMM_Parameters_Dialog.
|
CPMM_Parameters_Dialog(java.awt.Component component)
Creates a modal CPMM_Parameters_Dialog with an owner frame
derived from the indicated component.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Recieves
ActionEvent s. |
static void |
main(java.lang.String[] args)
Invokes a standalone test stub of the CPMM parameters dialog in its own
thread.
|
void |
propertyChange(java.beans.PropertyChangeEvent event)
Receives
PropertyChangeEvent s. |
java.util.Vector |
showDialog(java.awt.Component location_component,
java.lang.String title,
java.util.Vector cpmm_parameters)
Displays the CPMM_Parameters_Dialog with the specified location
component, title, and initial CPMM/CCD settings.
|
java.util.Vector |
showDialog(java.awt.Component location_component,
java.util.Vector cpmm_parameters)
Displays the CPMM_Parameters_Dialog with the specified location
component and initial CPMM/CCD settings.
|
java.util.Vector |
showDialog(java.lang.String title,
java.util.Vector cpmm_parameters)
Displays the CPMM_Parameters_Dialog with the specified title
and initial CPMM/CCD settings.
|
java.util.Vector |
showDialog(java.util.Vector cpmm_parameters)
Displays the CPMM_Parameters_Dialog with the specified initial
CPMM/CCD settings.
|
void |
stateChanged(javax.swing.event.ChangeEvent event)
Receives
ChangeEvent s. |
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 NO_LUT
public static final java.lang.String SQUARE_ROOT_LUT
public static final java.lang.String LINEAR_LUT
public static final java.lang.String STORED_LUT
public CPMM_Parameters_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
CPMM_Parameters_Dialog.public CPMM_Parameters_Dialog()
public void actionPerformed(java.awt.event.ActionEvent event)
ActionEvent
s. This method is invoked when
an action occurs within this CPMM_Parameters_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)
ChangeEvent
s. This method is invoked when
an interface component's state is changed. If the component whose state
changed is the scan lines slider, the scan lines text field is updated with
the new value and the data volume is recalculated.stateChanged
in interface javax.swing.event.ChangeListener
event
- the change event that invoked this method.public void propertyChange(java.beans.PropertyChangeEvent event)
PropertyChangeEvent
s. This method is invoked
when the value of the scan lines text field is changed. It updates the
scan lines slider.propertyChange
in interface java.beans.PropertyChangeListener
public java.util.Vector showDialog(java.awt.Component location_component, java.lang.String title, java.util.Vector cpmm_parameters)
If location_component is null, the dialog is centered on
the screen. If title is null, DEFAULT_TITLE
is
used. If cpmm_parameters is null, default initial values
are used.
location_component
- the component in relation to which the dialog's
location is determined.title
- the dialog's title.cpmm_parameters
- the initial CPMM/CCD parameters.public java.util.Vector showDialog(java.awt.Component location_component, java.util.Vector cpmm_parameters)
DEFAULT_TITLE
is used for
the dialog's title.
If location_component is null, the dialog is centered on the screen. If cpmm_parameters is null, default initial values are used.
location_component
- the component in relation to which the dialog's
location is determined.cpmm_parameters
- the initial CPMM/CCD parameters.public java.util.Vector showDialog(java.lang.String title, java.util.Vector cpmm_parameters)
If title is null, DEFAULT_TITLE
is used. If
cpmm_parameters is null, default initial values are used.
title
- the dialog's title.cpmm_parameters
- the initial CPMM/CCD parameters.public java.util.Vector showDialog(java.util.Vector cpmm_parameters)
DEFAULT_TITLE
is used for the dialog's title.
If cpmm_parameters is null, default initial values are used.
cpmm_parameters
- the initial CPMM/CCD parameters.public static void main(java.lang.String[] args)
CPMM_Parameters_Dialog
args
- the command-line arguments, which are unused.Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona