Class JDialogMipavOptions

  • All Implemented Interfaces:
    DialogDefaultsInterface, java.awt.event.ActionListener, java.awt.event.FocusListener, java.awt.event.ItemListener, java.awt.event.KeyListener, java.awt.event.WindowListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

    public class JDialogMipavOptions
    extends JDialogBase
    implements java.awt.event.KeyListener
    This dialog contains access to MIPAV preferences.
    Author:
    parsonsd
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) class  JDialogMipavOptions.ComboBoxRenderer
      DOCUMENT ME!
      (package private) class  JDialogMipavOptions.ComboBoxRenderer2
      DOCUMENT ME!
      (package private) class  JDialogMipavOptions.FontBoxRenderer
      DOCUMENT ME!
      • Nested classes/interfaces inherited from class javax.swing.JDialog

        javax.swing.JDialog.AccessibleJDialog
      • Nested classes/interfaces inherited from class java.awt.Dialog

        java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
      • Nested classes/interfaces inherited from class java.awt.Window

        java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
      • Nested classes/interfaces inherited from class java.awt.Container

        java.awt.Container.AccessibleAWTContainer
      • Nested classes/interfaces inherited from class java.awt.Component

        java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
    • Constructor Summary

      Constructors 
      Constructor Description
      JDialogMipavOptions()
      creates a dialog, builds in the options: splash page option Swing file-dialog option Active image color high-light option Debugging options
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent event)
      Calls various methods based on the user's actions.
      protected javax.swing.JButton buildResetDefaultsButton()
      Builds the reset to defaults button.
      void fillChooser()
      no information available.
      void itemStateChanged​(java.awt.event.ItemEvent e)
      DOCUMENT ME!
      void keyPressed​(java.awt.event.KeyEvent e)
      DOCUMENT ME!
      void keyReleased​(java.awt.event.KeyEvent e)
      DOCUMENT ME!
      void keyTyped​(java.awt.event.KeyEvent e)
      DOCUMENT ME!
      protected void makeActiveColorBorderSizeOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)  
      protected void makeActiveColorOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      makes the active-colour option line in the globalChangesPanel, to allow user to select the colour used to denote the active image.
      protected javax.swing.JPanel makeApplyClosePanel()
      makes the Apply/Close button panel, with the Apply button on the left and the Close button on the right.
      protected void makeCheckOnCloseFrameOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      Makes the "Check on frame close" option line in the globalChangesPanel If checked the user is required to reply to a dialog to close the frame.
      protected void makeComplexImageOptions​(java.awt.GridBagConstraints gbc2, java.awt.GridBagLayout gbl)
      Makes the options for displaying complex image information
      protected void makeCrosshairOptions​(java.awt.GridBagConstraints gbc2, java.awt.GridBagLayout gbl)
      Makes the options for crosshair display.
      protected void makeDebugOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      makes the debug option line in the globalChangesPanel.
      private void makeDebugOptionsHelper​(javax.swing.JPanel panel, java.lang.String label, javax.swing.JComboBox comboBox, Preferences.LogLevel currentLevel)  
      protected void makeDefaultLoadImageOptions​(java.awt.GridBagConstraints gbc2, java.awt.GridBagLayout gbl)
      Makes the options for displaying how images should be displayed on default.
      protected void makeDicomReceiverOnStartOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)  
      protected void makeFileFilterOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      Makes the file filter option line in the globalChangesPanel.
      protected void makeFileTemporaryDirectory​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      Makes the temporary file directory fields in fileMiscPanel.
      protected void makeFlipNIFTIReadOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      Makes the "Flip Y axis on NIFTI read of IS and PA" option line in the globalChangesPanel.
      protected void makeFontOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      DOCUMENT ME!
      protected void makeFrameRateOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      Makes options for default frame rate for saving AVIs.
      protected void makeGpuCompEnabledOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)  
      protected void makeHeapMaxCheckOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      Makes the "VM Heap Max/Preferences memory check" option line in the globalChangesPanel If checked, the initial heap size and maximum heap size in the VM startup file is checked against what is in the preferences for this option.
      protected void makeHistogramImageOptions​(java.awt.GridBagConstraints gbc2, java.awt.GridBagLayout gbl)
      Makes checkbox for whether to update image in real-time as histogram luts are changed
      protected void makeIntensityLabelColorOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      Makes the drop down list for color options for the intensity label text color
      protected void makeInterpolateImageOptions​(java.awt.GridBagConstraints gbc2, java.awt.GridBagLayout gbl)
      Makes checkbox for whether to display the image with interpolation on user's screen
      protected void makeLFOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      Makes option for look and feel
      protected void makeLoggingOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      Makes the Logging option line with checkbox/button in the globalChangesPanel.
      protected void makeLogMagImageOptions​(java.awt.GridBagConstraints gbc2, java.awt.GridBagLayout gbl)
      Makes checkbox for whether to display the log of image magnitude on user's screen
      protected void makeLUTImageOptions​(java.awt.GridBagConstraints gbc2, java.awt.GridBagLayout gbl)
      Makes checkbox for whether to display image using lut that is modality or image specific.
      protected void makeMaxDebugLineOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      Makes options for max number of lines in debug panel
      protected void makeMouseClickOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      Makes options for how user interface will react when the left or right mouse buttons are clicked.
      protected void makeMultiThreadingEnabledOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)  
      protected void makeNumericsOnly​(javax.swing.JTextField txt)
      takes a txt field, and forces the textfield to accept numbers, backspace, period and delete-key entries.
      protected void makeOutputWindowOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      Makes the checkbox where the user can decide whether the output window should appear on startup.
      protected void makeProvenanceOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      Makes the Data provenance option line in the globalChangesPanel.
      protected void makeQuickListOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      Makes the quicklist option line in the otherPanel.
      protected void makeSaveAllOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      Makes the "Save All on Save" option line in the otherPanel.
      protected void makeSaveDefaultsOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      makes the "Save dialog defaults" option line in the otherPanel.
      protected void makeSaveHdrImgOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      Makes the "Always save .hdr/.img files from dialog/ in Analyze format/ in Interfile format/ in Nifti format" combo box in the otherPanel.
      protected void makeSaveMncOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      Makes the "Always save .mnc files from dialog/ in Minc-1.0 CDF format/ in Minc-2.0 HDF5 format" combo box in the otherPanel.
      protected void makeSaveOverwriteOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      Makes the option to prompt on overwrite for saving.
      protected void makeSaveXMLThumbnailOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      Makes the "Save Thumbnail for XML Files" option line in the globalChangesPanel.
      protected void makeSplashOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      makes the splash-screen option line in the otherPanel.
      protected void makeUbyteHistoOptions​(java.awt.GridBagConstraints gbc2, java.awt.GridBagLayout gbl)  
      protected void makeVOIColorOptions​(java.awt.GridBagConstraints gbc2, java.awt.GridBagLayout gbl)
      DOCUMENT ME!
      protected void makeVOIContinuousOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      Makes the options for displaying the angle for active line VOIs.
      protected void makeVOIDrawColorOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      DOCUMENT ME!
      protected void makeVOILineAngleOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      Makes the options for displaying the angle for active line VOIs.
      protected void makeVOIPointDrawTypeOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)
      Sets the graphic type for VOI points (4 types, each with a corresponding gif).
      protected void makeVOISaveLPSOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)  
      protected void makeWindowLevelOptions​(java.awt.GridBagConstraints gbc, java.awt.GridBagLayout gbl)  
      private void reloadComplexImages​(java.lang.String beforeComplexDisplayChoice, boolean beforeDoLogMagChoice)
      Evaluates whether the user preferences which control complex image loading have changed in a way that requires reloading of all complex images
      void showPane​(java.lang.String name)
      Displays the panel with the given name.
      • Methods inherited from class javax.swing.JDialog

        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
      • Methods inherited from class java.awt.Dialog

        addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBack
      • Methods inherited from class java.awt.Window

        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
      • Methods inherited from class java.awt.Container

        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
      • Methods inherited from class java.awt.Component

        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, 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, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Use serialVersionUID for interoperability.
        See Also:
        Constant Field Values
      • labels

        javax.swing.JLabel[] labels
        DOCUMENT ME!
      • activeColor

        private javax.swing.JButton activeColor
        DOCUMENT ME!
      • checkOnFrameClose

        private javax.swing.JCheckBox checkOnFrameClose
        DOCUMENT ME!
      • colorChooser

        private javax.swing.JColorChooser colorChooser
        DOCUMENT ME!
      • crosshairChoices

        private javax.swing.JComboBox crosshairChoices
        DOCUMENT ME!
      • crosshairNames

        private java.lang.String[] crosshairNames
        DOCUMENT ME!
      • multiThreadingEnabledCheckBox

        private javax.swing.JCheckBox multiThreadingEnabledCheckBox
        Multi-Threading Enabled Check Box
      • gpuCompEnabledCheckBox

        private javax.swing.JCheckBox gpuCompEnabledCheckBox
        GPU computing enabled check box
      • gpuInfoButton

        private javax.swing.JButton gpuInfoButton
        DOCUMENT ME!
      • dicomReceiverOnStart

        private javax.swing.JCheckBox dicomReceiverOnStart
        Dicom Receiver check box
      • debugMinorBox

        private javax.swing.JComboBox debugMinorBox
        Box to select logging level for Minor category
      • debugAlgorithmBox

        private javax.swing.JComboBox debugAlgorithmBox
        Box to select logging level for Algorithm category
      • debugFileIOBox

        private javax.swing.JComboBox debugFileIOBox
        Box to select logging level for FileIO category
      • debugCommsBox

        private javax.swing.JComboBox debugCommsBox
        Box to select logging level for Comms category
      • debugScriptingBox

        private javax.swing.JComboBox debugScriptingBox
        Box to select logging level for Scripting category
      • dicomCatcher

        private javax.swing.JCheckBox dicomCatcher
        DOCUMENT ME!
      • displayColorPanel

        private final javax.swing.JPanel displayColorPanel
        DOCUMENT ME!
      • displayPanel

        private final javax.swing.JPanel displayPanel
        MIPAV global options private JPanel globalChangesPanel;.
      • displaySplash

        private javax.swing.JCheckBox displaySplash
        DOCUMENT ME!
      • displayUserInterfacePanel

        private final javax.swing.JPanel displayUserInterfacePanel
        DOCUMENT ME!
      • enableLoggingBox

        private javax.swing.JCheckBox enableLoggingBox
        DOCUMENT ME!
      • fileFilter

        private int fileFilter
        DOCUMENT ME!
      • fileMiscPanel

        private final javax.swing.JPanel fileMiscPanel
        DOCUMENT ME!
      • filePanel

        private final javax.swing.JPanel filePanel
        DOCUMENT ME!
      • fileSavePanel

        private final javax.swing.JPanel fileSavePanel
        DOCUMENT ME!
      • filterButton

        private javax.swing.JButton filterButton
        DOCUMENT ME!
      • editUserDefButton

        private javax.swing.JButton editUserDefButton
        Button to lasunch the Edit User Defined File Types Dialog
      • fontChooser

        private javax.swing.JComboBox fontChooser
        DOCUMENT ME!
      • fontNames

        private java.lang.String[] fontNames
        DOCUMENT ME!
      • fontSizeField

        private javax.swing.JTextField fontSizeField
        DOCUMENT ME!
      • frameRateField

        private javax.swing.JTextField frameRateField
        DOCUMENT ME!
      • histoForceUBYTE

        private javax.swing.JCheckBox histoForceUBYTE
      • imageChooser

        private javax.swing.JComboBox imageChooser
        DOCUMENT ME!
      • logFileButton

        private javax.swing.JButton logFileButton
        DOCUMENT ME!
      • logFilename

        private java.lang.String logFilename
        DOCUMENT ME!
      • provenanceCheckBox

        private javax.swing.JCheckBox provenanceCheckBox
        DOCUMENT ME!
      • provenanceFilename

        private java.lang.String provenanceFilename
      • provenanceFileButton

        private javax.swing.JButton provenanceFileButton
      • provenanceImageCheckBox

        private javax.swing.JCheckBox provenanceImageCheckBox
      • otherPanel

        private final javax.swing.JPanel otherPanel
        DOCUMENT ME!
      • performHeapMaxCheck

        private javax.swing.JCheckBox performHeapMaxCheck
        DOCUMENT ME!
      • pointVOIChoices

        private javax.swing.JComboBox pointVOIChoices
        DOCUMENT ME!
      • preferredActiveColor

        private java.awt.Color preferredActiveColor
        DOCUMENT ME!
      • preferredCrosshair

        private java.lang.String preferredCrosshair
        DOCUMENT ME!
      • quickListLevel

        private javax.swing.JComboBox quickListLevel
        DOCUMENT ME!
      • saveAllCheckBox

        private javax.swing.JCheckBox saveAllCheckBox
        DOCUMENT ME!
      • saveDefaultsCheckBox

        private javax.swing.JCheckBox saveDefaultsCheckBox
        DOCUMENT ME!
      • saveLabel

        private javax.swing.JLabel saveLabel
        Label before comboBoxSaveMethod
      • comboBoxSaveImgMethod

        private javax.swing.JComboBox comboBoxSaveImgMethod
        Whether to save .img files as selected by dialog or always as analyze, interfile, or nifti.
      • comboBoxSaveMncMethod

        private javax.swing.JComboBox comboBoxSaveMncMethod
        Whether to save .mnc files as selected by dialog or always as minc1 or minc2.
      • savePromptOverwriteBox

        private javax.swing.JCheckBox savePromptOverwriteBox
        DOCUMENT ME!
      • saveThumbnailCheckBox

        private javax.swing.JCheckBox saveThumbnailCheckBox
        DOCUMENT ME!
      • flipNIFTIReadCheckBox

        private javax.swing.JCheckBox flipNIFTIReadCheckBox
      • fileTempDirField

        private javax.swing.JTextField fileTempDirField
      • fileTempDirBrowseButton

        private javax.swing.JButton fileTempDirBrowseButton
      • showLineVOIAngleBox

        private javax.swing.JCheckBox showLineVOIAngleBox
        DOCUMENT ME!
      • continuousVOIBox

        private javax.swing.JCheckBox continuousVOIBox
      • VOIGroup

        private javax.swing.ButtonGroup VOIGroup
      • saveVOILPSButton

        private javax.swing.JRadioButton saveVOILPSButton
      • saveVOIVoxelButton

        private javax.swing.JRadioButton saveVOIVoxelButton
      • showOutputWindow

        private javax.swing.JCheckBox showOutputWindow
        DOCUMENT ME!
      • tabbedPane

        private final javax.swing.JTabbedPane tabbedPane
        DOCUMENT ME!
      • userInterface

        private final ViewUserInterface userInterface
        ui must be set to access the list of images to set image-specfic options (ie,. log mode)
      • voiColorChoices

        private javax.swing.JComboBox voiColorChoices
        DOCUMENT ME!
      • voiColorNames

        private java.lang.String[] voiColorNames
        DOCUMENT ME!
      • voiColors

        private java.awt.Color[] voiColors
        DOCUMENT ME!
      • voiDrawButton

        private javax.swing.JButton voiDrawButton
        DOCUMENT ME!
      • intensityLabelColorButton

        private javax.swing.JButton intensityLabelColorButton
        DOCUMENT ME!
      • intensityLabelBackgroundButton

        private javax.swing.JButton intensityLabelBackgroundButton
        DOCUMENT ME!
      • voiDrawColor

        private java.awt.Color voiDrawColor
        DOCUMENT ME!
      • intensityLabelColor

        private java.awt.Color intensityLabelColor
        DOCUMENT ME!
      • intensityLabelBackgroundColor

        private java.awt.Color intensityLabelBackgroundColor
        DOCUMENT ME!
      • doIntensityOnLeftBox

        private javax.swing.JCheckBox doIntensityOnLeftBox
        Check boxes for whether right and left mouse clicks produce default actions.
      • doWinLevOnRightBox

        private javax.swing.JCheckBox doWinLevOnRightBox
        Check boxes for whether right and left mouse clicks produce default actions.
      • WindowLevelGroup

        private javax.swing.ButtonGroup WindowLevelGroup
      • relativeWindowLevelButton

        private javax.swing.JRadioButton relativeWindowLevelButton
      • absoluteWindowLevelButton

        private javax.swing.JRadioButton absoluteWindowLevelButton
      • openImagesInTiledFormatBox

        private javax.swing.JCheckBox openImagesInTiledFormatBox
        opens images in tiled format
      • displayImagePanel

        private final javax.swing.JPanel displayImagePanel
        Gives user choices for displaying complex images.
      • complexDisplayChoices

        private javax.swing.JComboBox complexDisplayChoices
        The available choices for displaying the numerical values of complex data
      • defaultDisplayChoices

        private javax.swing.JComboBox defaultDisplayChoices
        Available choices for displaying brightness/color display correlations for pixel values.
      • displayLogMag

        private javax.swing.JCheckBox displayLogMag
        The check box to indicate whether images are displayed using the log of their magnitude
      • activeImageColorBorderSize

        private javax.swing.JComboBox activeImageColorBorderSize
        border size for active image color
      • displayHistogram

        private javax.swing.JCheckBox displayHistogram
        Whether images are updated in real-time based on histogram changes.
      • interpolateDisplayChoices

        private javax.swing.JComboBox interpolateDisplayChoices
        Available options for image interpolation
      • resetButton

        private javax.swing.JButton resetButton
        Button used to reset all preferences to default state.
      • displayLUT

        private javax.swing.JCheckBox displayLUT
        Whether to auto-display lut associated with file.
      • lfDisplayChoices

        private javax.swing.JComboBox lfDisplayChoices
        Look and feel choices.
      • maxDebugLineField

        private javax.swing.JTextField maxDebugLineField
    • Constructor Detail

      • JDialogMipavOptions

        public JDialogMipavOptions()
        creates a dialog, builds in the options:
        1. splash page option
        2. Swing file-dialog option
        3. Active image color high-light option
        4. Debugging options

        It then builds in the Apply and Close (window) buttons and makes the dialog visible.

    • Method Detail

      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent event)
        Calls various methods based on the user's actions.
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
        Overrides:
        actionPerformed in class JDialogBase
        Parameters:
        event - Event that triggered this function.
      • reloadComplexImages

        private void reloadComplexImages​(java.lang.String beforeComplexDisplayChoice,
                                         boolean beforeDoLogMagChoice)
        Evaluates whether the user preferences which control complex image loading have changed in a way that requires reloading of all complex images
      • fillChooser

        public void fillChooser()
        no information available.
      • itemStateChanged

        public void itemStateChanged​(java.awt.event.ItemEvent e)
        DOCUMENT ME!
        Specified by:
        itemStateChanged in interface java.awt.event.ItemListener
        Overrides:
        itemStateChanged in class JDialogBase
        Parameters:
        e - DOCUMENT ME!
      • keyPressed

        public void keyPressed​(java.awt.event.KeyEvent e)
        DOCUMENT ME!
        Specified by:
        keyPressed in interface java.awt.event.KeyListener
        Parameters:
        e - DOCUMENT ME!
      • keyReleased

        public void keyReleased​(java.awt.event.KeyEvent e)
        DOCUMENT ME!
        Specified by:
        keyReleased in interface java.awt.event.KeyListener
        Parameters:
        e - DOCUMENT ME!
      • keyTyped

        public void keyTyped​(java.awt.event.KeyEvent e)
        DOCUMENT ME!
        Specified by:
        keyTyped in interface java.awt.event.KeyListener
        Parameters:
        e - DOCUMENT ME!
      • showPane

        public void showPane​(java.lang.String name)
        Displays the panel with the given name.
      • makeActiveColorOptions

        protected void makeActiveColorOptions​(java.awt.GridBagConstraints gbc,
                                              java.awt.GridBagLayout gbl)
        makes the active-colour option line in the globalChangesPanel, to allow user to select the colour used to denote the active image. Sets the colour to either the colour in the preferences file or to the MIPAV default.
        Parameters:
        gbc - the constraints used in the globalChangesPanel
        gbl - the layout used in the globablChangesPanel
      • makeActiveColorBorderSizeOptions

        protected void makeActiveColorBorderSizeOptions​(java.awt.GridBagConstraints gbc,
                                                        java.awt.GridBagLayout gbl)
      • makeApplyClosePanel

        protected javax.swing.JPanel makeApplyClosePanel()
        makes the Apply/Close button panel, with the Apply button on the left and the Close button on the right.

        The panel is created and organised, but not applied anywhere.

        Returns:
        the Panel made.
      • makeCheckOnCloseFrameOptions

        protected void makeCheckOnCloseFrameOptions​(java.awt.GridBagConstraints gbc,
                                                    java.awt.GridBagLayout gbl)
        Makes the "Check on frame close" option line in the globalChangesPanel If checked the user is required to reply to a dialog to close the frame. If unchecked the frame is closed and data my be lost.
        Parameters:
        gbc - the constraints used in the globalChangesPanel
        gbl - the layout used in the globablChangesPanel
      • makeLFOptions

        protected void makeLFOptions​(java.awt.GridBagConstraints gbc,
                                     java.awt.GridBagLayout gbl)
        Makes option for look and feel
      • makeDefaultLoadImageOptions

        protected void makeDefaultLoadImageOptions​(java.awt.GridBagConstraints gbc2,
                                                   java.awt.GridBagLayout gbl)
        Makes the options for displaying how images should be displayed on default.
      • makeComplexImageOptions

        protected void makeComplexImageOptions​(java.awt.GridBagConstraints gbc2,
                                               java.awt.GridBagLayout gbl)
        Makes the options for displaying complex image information
        Parameters:
        gbc2 - GridBagConstraints
        gbl - GridBagLayout
      • makeLUTImageOptions

        protected void makeLUTImageOptions​(java.awt.GridBagConstraints gbc2,
                                           java.awt.GridBagLayout gbl)
        Makes checkbox for whether to display image using lut that is modality or image specific.
      • makeLogMagImageOptions

        protected void makeLogMagImageOptions​(java.awt.GridBagConstraints gbc2,
                                              java.awt.GridBagLayout gbl)
        Makes checkbox for whether to display the log of image magnitude on user's screen
      • makeInterpolateImageOptions

        protected void makeInterpolateImageOptions​(java.awt.GridBagConstraints gbc2,
                                                   java.awt.GridBagLayout gbl)
        Makes checkbox for whether to display the image with interpolation on user's screen
      • makeHistogramImageOptions

        protected void makeHistogramImageOptions​(java.awt.GridBagConstraints gbc2,
                                                 java.awt.GridBagLayout gbl)
        Makes checkbox for whether to update image in real-time as histogram luts are changed
      • makeUbyteHistoOptions

        protected void makeUbyteHistoOptions​(java.awt.GridBagConstraints gbc2,
                                             java.awt.GridBagLayout gbl)
      • makeCrosshairOptions

        protected void makeCrosshairOptions​(java.awt.GridBagConstraints gbc2,
                                            java.awt.GridBagLayout gbl)
        Makes the options for crosshair display.
        Parameters:
        gbc2 - GridBagConstraints
        gbl - GridBagLayout
      • makeDebugOptions

        protected void makeDebugOptions​(java.awt.GridBagConstraints gbc,
                                        java.awt.GridBagLayout gbl)
        makes the debug option line in the globalChangesPanel.
        Parameters:
        gbc - the constraints used in the globalChangesPanel
        gbl - the layout used in the globablChangesPanel
      • makeDebugOptionsHelper

        private void makeDebugOptionsHelper​(javax.swing.JPanel panel,
                                            java.lang.String label,
                                            javax.swing.JComboBox comboBox,
                                            Preferences.LogLevel currentLevel)
      • makeMaxDebugLineOptions

        protected void makeMaxDebugLineOptions​(java.awt.GridBagConstraints gbc,
                                               java.awt.GridBagLayout gbl)
        Makes options for max number of lines in debug panel
        Parameters:
        gbc - GridBagConstraints
        gbl - GridBagLayout
      • makeFileFilterOptions

        protected void makeFileFilterOptions​(java.awt.GridBagConstraints gbc,
                                             java.awt.GridBagLayout gbl)
        Makes the file filter option line in the globalChangesPanel.
        Parameters:
        gbc - the constraints used in the globalChangesPanel
        gbl - the layout used in the globablChangesPanel
      • makeFileTemporaryDirectory

        protected void makeFileTemporaryDirectory​(java.awt.GridBagConstraints gbc,
                                                  java.awt.GridBagLayout gbl)
        Makes the temporary file directory fields in fileMiscPanel.
        Parameters:
        gbc - the constraints used in the globalChangesPanel
        gbl - the layout used in the globablChangesPanel
      • makeFontOptions

        protected void makeFontOptions​(java.awt.GridBagConstraints gbc,
                                       java.awt.GridBagLayout gbl)
        DOCUMENT ME!
        Parameters:
        gbc - DOCUMENT ME!
        gbl - DOCUMENT ME!
      • makeMouseClickOptions

        protected void makeMouseClickOptions​(java.awt.GridBagConstraints gbc,
                                             java.awt.GridBagLayout gbl)
        Makes options for how user interface will react when the left or right mouse buttons are clicked.
        Parameters:
        gbc - DOCUMENT ME!
        gbl - DOCUMENT ME!
      • makeWindowLevelOptions

        protected void makeWindowLevelOptions​(java.awt.GridBagConstraints gbc,
                                              java.awt.GridBagLayout gbl)
      • makeFrameRateOptions

        protected void makeFrameRateOptions​(java.awt.GridBagConstraints gbc,
                                            java.awt.GridBagLayout gbl)
        Makes options for default frame rate for saving AVIs.
        Parameters:
        gbc - GridBagConstraints
        gbl - GridBagLayout
      • makeHeapMaxCheckOptions

        protected void makeHeapMaxCheckOptions​(java.awt.GridBagConstraints gbc,
                                               java.awt.GridBagLayout gbl)
        Makes the "VM Heap Max/Preferences memory check" option line in the globalChangesPanel If checked, the initial heap size and maximum heap size in the VM startup file is checked against what is in the preferences for this option. If unchecked, it signifies that no check should be made.
        Parameters:
        gbc - the constraints used in the globalChangesPanel
        gbl - the layout used in the globablChangesPanel
      • makeLoggingOptions

        protected void makeLoggingOptions​(java.awt.GridBagConstraints gbc,
                                          java.awt.GridBagLayout gbl)
        Makes the Logging option line with checkbox/button in the globalChangesPanel.
        Parameters:
        gbc - the constraints used in the globalChangesPanel
        gbl - the layout used in the globablChangesPanel
      • makeProvenanceOptions

        protected void makeProvenanceOptions​(java.awt.GridBagConstraints gbc,
                                             java.awt.GridBagLayout gbl)
        Makes the Data provenance option line in the globalChangesPanel.
        Parameters:
        gbc - the constraints used in the globalChangesPanel
        gbl - the layout used in the globablChangesPanel
      • makeNumericsOnly

        protected void makeNumericsOnly​(javax.swing.JTextField txt)
        takes a txt field, and forces the textfield to accept numbers, backspace, period and delete-key entries.
        Parameters:
        txt - DOCUMENT ME!
      • makeOutputWindowOptions

        protected void makeOutputWindowOptions​(java.awt.GridBagConstraints gbc,
                                               java.awt.GridBagLayout gbl)
        Makes the checkbox where the user can decide whether the output window should appear on startup.
        Parameters:
        gbc - the constraints used in the globalChangesPanel
        gbl - the layout used in the globablChangesPanel
      • makeQuickListOptions

        protected void makeQuickListOptions​(java.awt.GridBagConstraints gbc,
                                            java.awt.GridBagLayout gbl)
        Makes the quicklist option line in the otherPanel.
        Parameters:
        gbc - the constraints used in the otherPanel
        gbl - the layout used in the globablChangesPanel
      • makeSaveAllOptions

        protected void makeSaveAllOptions​(java.awt.GridBagConstraints gbc,
                                          java.awt.GridBagLayout gbl)
        Makes the "Save All on Save" option line in the otherPanel.
        Parameters:
        gbc - the constraints used in the otherPanel
        gbl - the layout used in the globablChangesPanel
      • makeSaveDefaultsOptions

        protected void makeSaveDefaultsOptions​(java.awt.GridBagConstraints gbc,
                                               java.awt.GridBagLayout gbl)
        makes the "Save dialog defaults" option line in the otherPanel.
        Parameters:
        gbc - GridBagConstraints the contraints
        gbl - GridBagLayout the layout...
      • makeDicomReceiverOnStartOptions

        protected void makeDicomReceiverOnStartOptions​(java.awt.GridBagConstraints gbc,
                                                       java.awt.GridBagLayout gbl)
      • makeMultiThreadingEnabledOptions

        protected void makeMultiThreadingEnabledOptions​(java.awt.GridBagConstraints gbc,
                                                        java.awt.GridBagLayout gbl)
      • makeGpuCompEnabledOptions

        protected void makeGpuCompEnabledOptions​(java.awt.GridBagConstraints gbc,
                                                 java.awt.GridBagLayout gbl)
      • makeSaveHdrImgOptions

        protected void makeSaveHdrImgOptions​(java.awt.GridBagConstraints gbc,
                                             java.awt.GridBagLayout gbl)
        Makes the "Always save .hdr/.img files from dialog/ in Analyze format/ in Interfile format/ in Nifti format" combo box in the otherPanel.
        Parameters:
        gbc - the constraints used in the globalChangesPanel
        gbl - the layout used in the globbalChangesPanel
      • makeSaveMncOptions

        protected void makeSaveMncOptions​(java.awt.GridBagConstraints gbc,
                                          java.awt.GridBagLayout gbl)
        Makes the "Always save .mnc files from dialog/ in Minc-1.0 CDF format/ in Minc-2.0 HDF5 format" combo box in the otherPanel.
        Parameters:
        gbc - the constraints used in the globalChangesPanel
        gbl - the layout used in the globbalChangesPanel
      • makeSaveOverwriteOptions

        protected void makeSaveOverwriteOptions​(java.awt.GridBagConstraints gbc,
                                                java.awt.GridBagLayout gbl)
        Makes the option to prompt on overwrite for saving.
        Parameters:
        gbc - GridBagConstraints
        gbl - GridBagLayout
      • makeSaveXMLThumbnailOptions

        protected void makeSaveXMLThumbnailOptions​(java.awt.GridBagConstraints gbc,
                                                   java.awt.GridBagLayout gbl)
        Makes the "Save Thumbnail for XML Files" option line in the globalChangesPanel.
        Parameters:
        gbc - the constraints used in the globalChangesPanel
        gbl - the layout used in the globablChangesPanel
      • makeFlipNIFTIReadOptions

        protected void makeFlipNIFTIReadOptions​(java.awt.GridBagConstraints gbc,
                                                java.awt.GridBagLayout gbl)
        Makes the "Flip Y axis on NIFTI read of IS and PA" option line in the globalChangesPanel.
        Parameters:
        gbc - the constraints used in the globalChangesPanel
        gbl - the layout used in the globablChangesPanel
      • makeSplashOptions

        protected void makeSplashOptions​(java.awt.GridBagConstraints gbc,
                                         java.awt.GridBagLayout gbl)
        makes the splash-screen option line in the otherPanel.
        Parameters:
        gbc - the constraints used in the otherPanel
        gbl - the layout used in the globablChangesPanel
      • makeVOIColorOptions

        protected void makeVOIColorOptions​(java.awt.GridBagConstraints gbc2,
                                           java.awt.GridBagLayout gbl)
        DOCUMENT ME!
        Parameters:
        gbc2 - DOCUMENT ME!
        gbl - DOCUMENT ME!
      • makeIntensityLabelColorOptions

        protected void makeIntensityLabelColorOptions​(java.awt.GridBagConstraints gbc,
                                                      java.awt.GridBagLayout gbl)
        Makes the drop down list for color options for the intensity label text color
        Parameters:
        gbc2 -
        gbl -
      • makeVOIDrawColorOptions

        protected void makeVOIDrawColorOptions​(java.awt.GridBagConstraints gbc,
                                               java.awt.GridBagLayout gbl)
        DOCUMENT ME!
        Parameters:
        gbc - DOCUMENT ME!
        gbl - DOCUMENT ME!
      • makeVOILineAngleOptions

        protected void makeVOILineAngleOptions​(java.awt.GridBagConstraints gbc,
                                               java.awt.GridBagLayout gbl)
        Makes the options for displaying the angle for active line VOIs.
        Parameters:
        gbc - GridBagConstraints
        gbl - GridBagLayout
      • makeVOIContinuousOptions

        protected void makeVOIContinuousOptions​(java.awt.GridBagConstraints gbc,
                                                java.awt.GridBagLayout gbl)
        Makes the options for displaying the angle for active line VOIs.
        Parameters:
        gbc - GridBagConstraints
        gbl - GridBagLayout
      • makeVOISaveLPSOptions

        protected void makeVOISaveLPSOptions​(java.awt.GridBagConstraints gbc,
                                             java.awt.GridBagLayout gbl)
      • makeVOIPointDrawTypeOptions

        protected void makeVOIPointDrawTypeOptions​(java.awt.GridBagConstraints gbc,
                                                   java.awt.GridBagLayout gbl)
        Sets the graphic type for VOI points (4 types, each with a corresponding gif).
        Parameters:
        gbc - GridBagConstraints the constraints
        gbl - GridBagLayout the layout
      • buildResetDefaultsButton

        protected javax.swing.JButton buildResetDefaultsButton()
        Builds the reset to defaults button. Sets it internally as well return the just-built button.
        Returns:
        JButton reset defaults button