Class ViewJFrameHistoRGB

  • All Implemented Interfaces:
    HistoLUTParent, ViewImageUpdateInterface, java.awt.event.ActionListener, java.awt.event.ComponentListener, java.awt.event.ItemListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.WindowListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.event.ChangeListener, javax.swing.RootPaneContainer, javax.swing.WindowConstants

    public class ViewJFrameHistoRGB
    extends ViewJFrameBase
    implements java.awt.event.ItemListener, java.awt.event.ActionListener, java.awt.event.KeyListener, java.awt.event.WindowListener, javax.swing.event.ChangeListener, ViewImageUpdateInterface, java.awt.event.MouseMotionListener, java.awt.event.MouseListener, HistoLUTParent
    Deprecated.
    This class produces a frame where the histogram of the image data is displayed using the color mapping. All frames using the color map are dynamically updated with the new color map.
    Version:
    1.0
    Author:
    Matthew J. McAuliffe, Ph.D. (primary), Harman Singh
    See Also:
    ViewJComponentHistoRGB, JFrameHistogram, Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.JFrame

        javax.swing.JFrame.AccessibleJFrame
      • Nested classes/interfaces inherited from class java.awt.Frame

        java.awt.Frame.AccessibleAWTFrame
      • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent event)
      Deprecated.
      Calls various methods depending on the action.
      private void buildMenu()
      Deprecated.
      This method builds a menu which contains the options for opening/saving a LUT or set of transfer functions, closing the LUT, and utilities such as CT presets.
      private void buildPanelA​(ModelImage image, boolean entireFlag)
      Deprecated.
      Method that displays the histogram and LUT and other controls to manipulate the LUT.
      private void buildPanelB​(ModelImage image, boolean entireFlag)
      Deprecated.
      Method that displays the histogram and LUT and other controls to manipulate the LUT.
      private void calcHistogram​(int imageAorB, boolean entireFlag, boolean progressFlag)
      Deprecated.
      Calculates histogram for the image(s).
      private float calcThresholdVolume​(float lower, float upper)
      Deprecated.
      DOCUMENT ME!
      private void clearVoxelLabel()
      Deprecated.
      Clears (blanks out) the threshold voxel information (when RGB mode or not thresholding).
      void dispose()
      Deprecated.
      Disposes of components and frame.
      void dragPoint​(java.awt.event.MouseEvent mouseEvent)
      Deprecated.
      Placeholder.
      ViewControlsImage getControls()
      Deprecated.
      Gets the control widgets for the frame.
      ViewJComponentHistoRGB getHistoLUTComponentA()
      Deprecated.
      Get the histogram component for imageA.
      ViewJComponentHistoRGB getHistoLUTComponentB()
      Deprecated.
      Get the histogram component for imageB.
      ModelImage getImageA()
      Deprecated.
      Accessor that returns the imageA.
      ModelImage getImageB()
      Deprecated.
      Accessor that returns the imageB.
      boolean isImageASelected()
      Deprecated.
      Returns whether the imageA LUT panel is the one being worked on.
      boolean isImageBSelected()
      Deprecated.
      Returns whether the imageB LUT panel is the one being worked on.
      boolean isImageUpdate()
      Deprecated.
      Indicates if real-time update of the image should take place.
      void itemStateChanged​(java.awt.event.ItemEvent event)
      Deprecated.
      Sets the flags for the checkboxes.
      void keyPressed​(java.awt.event.KeyEvent e)
      Deprecated.
      Unchanged.
      void keyReleased​(java.awt.event.KeyEvent e)
      Deprecated.
      Unchanged.
      void keyTyped​(java.awt.event.KeyEvent e)
      Deprecated.
      If the ENTER key is hit while in threshold boxes, update the LUT's threshold (for dual threshold).
      void mouseClicked​(java.awt.event.MouseEvent mouseEvent)
      Deprecated.
      Unchanged.
      void mouseDragged​(java.awt.event.MouseEvent mouseEvent)
      Deprecated.
      Unchanged.
      void mouseEntered​(java.awt.event.MouseEvent mouseEvent)
      Deprecated.
      Unchanged.
      void mouseExited​(java.awt.event.MouseEvent mouseEvent)
      Deprecated.
      Unchanged.
      void mouseMoved​(java.awt.event.MouseEvent mouseEvent)
      Deprecated.
      Unchanged.
      void mousePressed​(java.awt.event.MouseEvent event)
      Deprecated.
      Unchanged.
      void mouseReleased​(java.awt.event.MouseEvent mouseEvent)
      Deprecated.
      Unchanged.
      void notifyOfUpdate​(ModelLUT LUT, int imageAorB)
      Deprecated.
      Enable button to indicate image has changed and the histogram should be recalculated.
      void removeControls()
      Deprecated.
      Removes the menu and controls of the main frame so that a new frame can load the main frame with the proper controls.Abstract and must be extended.
      void removeHistoRGBb()
      Deprecated.
      Removes the tabbed pane for the histogram of image B.
      private void resetThresholdChannels()
      Deprecated.
      resets boolean for threshold channels.
      void setActiveImage​(int active)
      Deprecated.
      Sets the active image for drawing VOIs.
      void setAllOff()
      Deprecated.
      Accessor to disable the all RGB color channels button if one of the lines has moved.
      void setAlphaBlend​(int value)
      Deprecated.
      Sets the alpha blending of parameter for two image displaying.
      void setControls()
      Deprecated.
      Sets the menu and controls (i.e. toolbars) of the main frame!
      void setEnabled​(boolean flag)
      Deprecated.
      Controls whether or not the images/VOIs of the frame can be modified.
      void setImageB​(ModelImage image)
      Deprecated.
      Accessor that sets the imageB.
      void setLUT​(ModelLUT newLUT)
      Deprecated.
      Placeholder.
      void setPaintBitmapSwitch​(boolean flag)
      Deprecated.
      DOCUMENT ME!
      void setRangeText​(float x, float y, int _index)
      Deprecated.
      Placeholder.
      void setRGBTA​(ModelRGB RGBT)
      Deprecated.
      The following 2 functions set the RGB tables for images A and B.
      void setRGBTB​(ModelRGB RGBT)
      Deprecated.
      DOCUMENT ME!
      void setSlice​(int slice)
      Deprecated.
      Does nothing in this class.
      void setTimeSlice​(int tSlice)
      Deprecated.
      Does nothing in this class.
      void setTitle()
      Deprecated.
      setTitle.
      void stateChanged​(javax.swing.event.ChangeEvent e)
      Deprecated.
      Resets the buttons depending on which tab was selected.
      protected boolean testParameter​(java.lang.String str, double minValue, double maxValue)
      Deprecated.
      Tests that the entered parameter is in range.
      void update()
      Deprecated.
      Redisplay histoLUT.
      void updateComponentLUT()
      Deprecated.
      Placeholder.
      void updateFrames​(boolean flag)
      Deprecated.
      Update all of the image frames that display the image this histo lut is for.
      void updateHistoRGB​(ModelImage _imageA, ModelImage _imageB, boolean progressFlag)
      Deprecated.
      This method is called to update the histogram(s) displayed in each tabbed pane of the frame.
      boolean updateImageExtents()
      Deprecated.
      This methods calls the componentImage's REPAINT method to redraw the screen.
      boolean updateImages()
      Deprecated.
      This methods calls the componentImage's REPAINT method to redraw the screen.
      boolean updateImages​(boolean flag)
      Deprecated.
      This methods calls the componentImage's update method to redraw the screen.
      boolean updateImages​(ModelLUT LUTa, ModelLUT LUTb, boolean flag, int interpMode)
      Deprecated.
      This methods calls the componentImage's update method to redraw the screen.
      void updateLUTPositionString​(java.lang.String str)
      Deprecated.
      Placeholder.
      void updateThresholdFields​(float lower, float upper)
      Deprecated.
      Method to update the threshold text fields when the lower or upper threshold changes.
      void windowActivated​(java.awt.event.WindowEvent event)
      Deprecated.
      Unchanged.
      void windowClosed​(java.awt.event.WindowEvent event)
      Deprecated.
      Unchanged.
      void windowClosing​(java.awt.event.WindowEvent event)
      Deprecated.
      Calls close.
      void windowDeactivated​(java.awt.event.WindowEvent event)
      Deprecated.
      Unchanged.
      void windowDeiconified​(java.awt.event.WindowEvent event)
      Deprecated.
      Unchanged.
      void windowIconified​(java.awt.event.WindowEvent event)
      Deprecated.
      Unchanged.
      void windowOpened​(java.awt.event.WindowEvent event)
      Deprecated.
      Unchanged.
      • Methods inherited from class javax.swing.JFrame

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

        addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
      • Methods inherited from class java.awt.Window

        addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, 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
      • 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, 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, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.awt.MenuContainer

        getFont, postEvent
    • Field Detail

      • serialVersionUID

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

        private javax.swing.JCheckBox blueCheckBoxA
        Deprecated.
        DOCUMENT ME!
      • blueCheckBoxB

        private javax.swing.JCheckBox blueCheckBoxB
        Deprecated.
        DOCUMENT ME!
      • calcThresholdVolume

        private boolean calcThresholdVolume
        Deprecated.
        DOCUMENT ME!
      • entireFlag

        private boolean entireFlag
        Deprecated.
        DOCUMENT ME!
      • fillValuesA

        private float[] fillValuesA
        Deprecated.
        DOCUMENT ME!
      • fillValuesB

        private float[] fillValuesB
        Deprecated.
        DOCUMENT ME!
      • greenCheckBoxA

        private javax.swing.JCheckBox greenCheckBoxA
        Deprecated.
        DOCUMENT ME!
      • greenCheckBoxB

        private javax.swing.JCheckBox greenCheckBoxB
        Deprecated.
        DOCUMENT ME!
      • histogramABlue

        private ModelHistogram histogramABlue
        Deprecated.
        DOCUMENT ME!
      • histogramAGreen

        private ModelHistogram histogramAGreen
        Deprecated.
        DOCUMENT ME!
      • histogramARed

        private ModelHistogram histogramARed
        Deprecated.
        DOCUMENT ME!
      • histogramBBlue

        private ModelHistogram histogramBBlue
        Deprecated.
        DOCUMENT ME!
      • histogramBGreen

        private ModelHistogram histogramBGreen
        Deprecated.
        DOCUMENT ME!
      • histogramBRed

        private ModelHistogram histogramBRed
        Deprecated.
        DOCUMENT ME!
      • logCheckBoxA

        private javax.swing.JCheckBox logCheckBoxA
        Deprecated.
        DOCUMENT ME!
      • logCheckBoxB

        private javax.swing.JCheckBox logCheckBoxB
        Deprecated.
        DOCUMENT ME!
      • panelA

        private javax.swing.JPanel panelA
        Deprecated.
        DOCUMENT ME!
      • panelB

        private javax.swing.JPanel panelB
        Deprecated.
        DOCUMENT ME!
      • redCheckBoxA

        private javax.swing.JCheckBox redCheckBoxA
        Deprecated.
        DOCUMENT ME!
      • redCheckBoxB

        private javax.swing.JCheckBox redCheckBoxB
        Deprecated.
        DOCUMENT ME!
      • redRGBButton

        private javax.swing.JToggleButton redRGBButton
        Deprecated.
        DOCUMENT ME!
      • blueRGBButton

        private javax.swing.JToggleButton blueRGBButton
        Deprecated.
        DOCUMENT ME!
      • greenRGBButton

        private javax.swing.JToggleButton greenRGBButton
        Deprecated.
        DOCUMENT ME!
      • allRGBButton

        private javax.swing.JToggleButton allRGBButton
        Deprecated.
        DOCUMENT ME!
      • RGBExtents

        private int[] RGBExtents
        Deprecated.
        DOCUMENT ME!
      • RGBTA

        private ModelRGB RGBTA
        Deprecated.
        DOCUMENT ME!
      • RGBTB

        private ModelRGB RGBTB
        Deprecated.
        DOCUMENT ME!
      • tabbedPane

        private javax.swing.JTabbedPane tabbedPane
        Deprecated.
        DOCUMENT ME!
      • threshLowerBF

        private javax.swing.JTextField threshLowerBF
        Deprecated.
        DOCUMENT ME!
      • threshUpperBF

        private javax.swing.JTextField threshUpperBF
        Deprecated.
        DOCUMENT ME!
      • threshFillBF

        private javax.swing.JTextField threshFillBF
        Deprecated.
        DOCUMENT ME!
      • threshLowerF

        private javax.swing.JTextField threshLowerF
        Deprecated.
        threshold related.
      • threshUpperF

        private javax.swing.JTextField threshUpperF
        Deprecated.
        threshold related.
      • threshFillF

        private javax.swing.JTextField threshFillF
        Deprecated.
        threshold related.
      • toolBar

        private javax.swing.JToolBar toolBar
        Deprecated.
        DOCUMENT ME!
      • toolBarObj

        private ViewToolBarBuilder toolBarObj
        Deprecated.
        Object which generates the toolbar.
      • updateCheckBoxA

        private javax.swing.JCheckBox updateCheckBoxA
        Deprecated.
        DOCUMENT ME!
      • updateCheckBoxB

        private javax.swing.JCheckBox updateCheckBoxB
        Deprecated.
        DOCUMENT ME!
      • useThresholdChannelA

        private boolean[] useThresholdChannelA
        Deprecated.
        DOCUMENT ME!
      • useThresholdChannelB

        private boolean[] useThresholdChannelB
        Deprecated.
        DOCUMENT ME!
      • voxelVolumeLabel

        private javax.swing.JLabel voxelVolumeLabel
        Deprecated.
        DOCUMENT ME!
      • voxelVolumeLabelB

        private javax.swing.JLabel voxelVolumeLabelB
        Deprecated.
        DOCUMENT ME!
      • lutAdjustCheckboxB

        private javax.swing.JCheckBox lutAdjustCheckboxB
        Deprecated.
        DOCUMENT ME
    • Constructor Detail

      • ViewJFrameHistoRGB

        public ViewJFrameHistoRGB​(ModelImage _imageA,
                                  ModelImage _imageB,
                                  ModelRGB _RGBTA,
                                  ModelRGB _RGBTB,
                                  boolean _entireFlag)
        Deprecated.
        Makes a frame of the histogram.
        Parameters:
        _imageA - Model of imageA
        _imageB - Model of imageB
        _RGBTA - Model RGB
        _RGBTB - Model RGB
        _entireFlag - Flag indicating if histogram should be done on all of image.
      • ViewJFrameHistoRGB

        public ViewJFrameHistoRGB​(ViewJComponentRegistration _regComponent,
                                  ModelImage _imageA,
                                  ModelImage _imageB,
                                  ModelRGB _RGBTA,
                                  ModelRGB _RGBTB,
                                  boolean _entireFlag)
        Deprecated.
        Makes a frame of the histogram.
        Parameters:
        _regComponent - component to pass parameters to in manual registration
        _imageA - Model of imageA
        _imageB - Model of imageB
        _RGBTA - Model RGB
        _RGBTB - Model RGB
        _entireFlag - DOCUMENT ME!
    • Method Detail

      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent event)
        Deprecated.
        Calls various methods depending on the action.
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
        Specified by:
        actionPerformed in class ViewJFrameBase
        Parameters:
        event - event that triggered function
      • dispose

        public void dispose()
        Deprecated.
        Disposes of components and frame.
        Overrides:
        dispose in class java.awt.Window
      • dragPoint

        public void dragPoint​(java.awt.event.MouseEvent mouseEvent)
        Deprecated.
        Placeholder.
        Specified by:
        dragPoint in interface HistoLUTParent
        Parameters:
        mouseEvent - drag event
      • getHistoLUTComponentA

        public final ViewJComponentHistoRGB getHistoLUTComponentA()
        Deprecated.
        Get the histogram component for imageA.
        Returns:
        the imageA histogram component
      • getHistoLUTComponentB

        public final ViewJComponentHistoRGB getHistoLUTComponentB()
        Deprecated.
        Get the histogram component for imageB.
        Returns:
        the imageB histogram component
      • isImageASelected

        public boolean isImageASelected()
        Deprecated.
        Returns whether the imageA LUT panel is the one being worked on.
        Returns:
        whether the imageA LUT panel is the one being worked on
      • isImageBSelected

        public boolean isImageBSelected()
        Deprecated.
        Returns whether the imageB LUT panel is the one being worked on.
        Returns:
        whether the imageB LUT panel is the one being worked on
      • isImageUpdate

        public boolean isImageUpdate()
        Deprecated.
        Indicates if real-time update of the image should take place.
        Specified by:
        isImageUpdate in interface HistoLUTParent
        Returns:
        true if real time update should take place
      • itemStateChanged

        public void itemStateChanged​(java.awt.event.ItemEvent event)
        Deprecated.
        Sets the flags for the checkboxes.
        Specified by:
        itemStateChanged in interface java.awt.event.ItemListener
        Parameters:
        event - event that triggered this function
      • keyPressed

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

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

        public void keyTyped​(java.awt.event.KeyEvent e)
        Deprecated.
        If the ENTER key is hit while in threshold boxes, update the LUT's threshold (for dual threshold).
        Specified by:
        keyTyped in interface java.awt.event.KeyListener
        Parameters:
        e - KeyEvent
      • mouseClicked

        public void mouseClicked​(java.awt.event.MouseEvent mouseEvent)
        Deprecated.
        Unchanged.
        Specified by:
        mouseClicked in interface java.awt.event.MouseListener
        Parameters:
        mouseEvent - DOCUMENT ME!
      • mouseDragged

        public void mouseDragged​(java.awt.event.MouseEvent mouseEvent)
        Deprecated.
        Unchanged.
        Specified by:
        mouseDragged in interface java.awt.event.MouseMotionListener
        Parameters:
        mouseEvent - DOCUMENT ME!
      • mouseEntered

        public void mouseEntered​(java.awt.event.MouseEvent mouseEvent)
        Deprecated.
        Unchanged.
        Specified by:
        mouseEntered in interface java.awt.event.MouseListener
        Parameters:
        mouseEvent - DOCUMENT ME!
      • mouseExited

        public void mouseExited​(java.awt.event.MouseEvent mouseEvent)
        Deprecated.
        Unchanged.
        Specified by:
        mouseExited in interface java.awt.event.MouseListener
        Parameters:
        mouseEvent - DOCUMENT ME!
      • mouseMoved

        public void mouseMoved​(java.awt.event.MouseEvent mouseEvent)
        Deprecated.
        Unchanged.
        Specified by:
        mouseMoved in interface java.awt.event.MouseMotionListener
        Parameters:
        mouseEvent - DOCUMENT ME!
      • mousePressed

        public void mousePressed​(java.awt.event.MouseEvent event)
        Deprecated.
        Unchanged.
        Specified by:
        mousePressed in interface java.awt.event.MouseListener
        Parameters:
        event - DOCUMENT ME!
      • mouseReleased

        public void mouseReleased​(java.awt.event.MouseEvent mouseEvent)
        Deprecated.
        Unchanged.
        Specified by:
        mouseReleased in interface java.awt.event.MouseListener
        Parameters:
        mouseEvent - DOCUMENT ME!
      • notifyOfUpdate

        public void notifyOfUpdate​(ModelLUT LUT,
                                   int imageAorB)
        Deprecated.
        Enable button to indicate image has changed and the histogram should be recalculated.
        Parameters:
        LUT - new Lookup table
        imageAorB - indicates which histogram needs to be recalculated
      • removeControls

        public void removeControls()
        Deprecated.
        Removes the menu and controls of the main frame so that a new frame can load the main frame with the proper controls.Abstract and must be extended.
        Specified by:
        removeControls in class ViewJFrameBase
      • removeHistoRGBb

        public void removeHistoRGBb()
        Deprecated.
        Removes the tabbed pane for the histogram of image B.
      • setActiveImage

        public void setActiveImage​(int active)
        Deprecated.
        Sets the active image for drawing VOIs. VOIs are only drawn in the active image. In addition, algorithms are executed on the active window.
        Specified by:
        setActiveImage in class ViewJFrameBase
        Parameters:
        active - IMAGE_A or IMAGE_B
      • setAllOff

        public void setAllOff()
        Deprecated.
        Accessor to disable the all RGB color channels button if one of the lines has moved.
        Specified by:
        setAllOff in interface HistoLUTParent
      • setAlphaBlend

        public void setAlphaBlend​(int value)
        Deprecated.
        Sets the alpha blending of parameter for two image displaying.
        Specified by:
        setAlphaBlend in class ViewJFrameBase
        Parameters:
        value - amount [0,100] that is the percentage of Image A to be displayed and (1-percentage) of Image B to be displayed
      • setControls

        public void setControls()
        Deprecated.
        Sets the menu and controls (i.e. toolbars) of the main frame! This puts only the menus and controls needed to controls the operations of this frame. Different image frames have different menu and controls.
        Specified by:
        setControls in class ViewJFrameBase
      • setEnabled

        public void setEnabled​(boolean flag)
        Deprecated.
        Controls whether or not the images/VOIs of the frame can be modified.
        Specified by:
        setEnabled in class ViewJFrameBase
        Parameters:
        flag - if true the image/VOIs can be modified; if false image/VOIs can NOT be modified
      • setImageB

        public void setImageB​(ModelImage image)
        Deprecated.
        Accessor that sets the imageB.
        Specified by:
        setImageB in class ViewJFrameBase
        Parameters:
        image - image to set frame to
      • setLUT

        public void setLUT​(ModelLUT newLUT)
        Deprecated.
        Placeholder.
        Specified by:
        setLUT in interface HistoLUTParent
        Parameters:
        newLUT - lut
      • setPaintBitmapSwitch

        public void setPaintBitmapSwitch​(boolean flag)
        Deprecated.
        DOCUMENT ME!
        Specified by:
        setPaintBitmapSwitch in class ViewJFrameBase
        Parameters:
        flag - DOCUMENT ME!
      • setRangeText

        public void setRangeText​(float x,
                                 float y,
                                 int _index)
        Deprecated.
        Placeholder.
        Specified by:
        setRangeText in interface HistoLUTParent
        Parameters:
        x - x
        y - y
        _index - index
      • setRGBTA

        public void setRGBTA​(ModelRGB RGBT)
        Deprecated.
        The following 2 functions set the RGB tables for images A and B.
        Specified by:
        setRGBTA in class ViewJFrameBase
        Parameters:
        RGBT - DOCUMENT ME!
      • setRGBTB

        public void setRGBTB​(ModelRGB RGBT)
        Deprecated.
        DOCUMENT ME!
        Specified by:
        setRGBTB in class ViewJFrameBase
        Parameters:
        RGBT - DOCUMENT ME!
      • setSlice

        public void setSlice​(int slice)
        Deprecated.
        Does nothing in this class.
        Specified by:
        setSlice in interface ViewImageUpdateInterface
        Parameters:
        slice - DOCUMENT ME!
      • setTimeSlice

        public void setTimeSlice​(int tSlice)
        Deprecated.
        Does nothing in this class.
        Specified by:
        setTimeSlice in interface ViewImageUpdateInterface
        Parameters:
        tSlice - DOCUMENT ME!
      • stateChanged

        public void stateChanged​(javax.swing.event.ChangeEvent e)
        Deprecated.
        Resets the buttons depending on which tab was selected.
        Specified by:
        stateChanged in interface javax.swing.event.ChangeListener
        Overrides:
        stateChanged in class ViewJFrameBase
        Parameters:
        e - Event that triggered this function.
      • update

        public void update()
        Deprecated.
        Redisplay histoLUT.
      • updateFrames

        public void updateFrames​(boolean flag)
        Deprecated.
        Update all of the image frames that display the image this histo lut is for.
        Specified by:
        updateFrames in interface HistoLUTParent
        Parameters:
        flag - this boolean indicates if the frame that displays the image should re-export the image and apply new LUT
        See Also:
        ModelImage.notifyImageDisplayListeners()
      • updateHistoRGB

        public void updateHistoRGB​(ModelImage _imageA,
                                   ModelImage _imageB,
                                   boolean progressFlag)
        Deprecated.
        This method is called to update the histogram(s) displayed in each tabbed pane of the frame.
        Parameters:
        _imageA - image A
        _imageB - image B
        progressFlag - passed to calculateHistogram algorithm. If false progress bar is not displayed.
      • updateImages

        public boolean updateImages()
        Deprecated.
        This methods calls the componentImage's REPAINT method to redraw the screen. Without LUT changes or image changes
        Specified by:
        updateImages in interface ViewImageUpdateInterface
        Returns:
        DOCUMENT ME!
      • updateImages

        public boolean updateImages​(boolean flag)
        Deprecated.
        This methods calls the componentImage's update method to redraw the screen. Without LUT changes. Does nothing in this class.
        Specified by:
        updateImages in interface ViewImageUpdateInterface
        Parameters:
        flag - forces show to re import image and calc. java image
        Returns:
        boolean confirming successful update
      • updateImages

        public boolean updateImages​(ModelLUT LUTa,
                                    ModelLUT LUTb,
                                    boolean flag,
                                    int interpMode)
        Deprecated.
        This methods calls the componentImage's update method to redraw the screen. Does nothing in this class.
        Specified by:
        updateImages in interface ViewImageUpdateInterface
        Parameters:
        LUTa - LUT used to update imageA
        LUTb - LUT used to update imageB
        flag - forces show to re import image and calc. java image
        interpMode - image interpolation method (Nearest or Smooth)
        Returns:
        boolean confirming a successful update
      • updateLUTPositionString

        public void updateLUTPositionString​(java.lang.String str)
        Deprecated.
        Placeholder.
        Specified by:
        updateLUTPositionString in interface HistoLUTParent
        Parameters:
        str - string
      • updateThresholdFields

        public void updateThresholdFields​(float lower,
                                          float upper)
        Deprecated.
        Method to update the threshold text fields when the lower or upper threshold changes.
        Specified by:
        updateThresholdFields in interface HistoLUTParent
        Parameters:
        lower - the lower threshold value
        upper - the upper threshold value
      • windowActivated

        public void windowActivated​(java.awt.event.WindowEvent event)
        Deprecated.
        Unchanged.
        Specified by:
        windowActivated in interface java.awt.event.WindowListener
        Overrides:
        windowActivated in class ViewJFrameBase
        Parameters:
        event - DOCUMENT ME!
      • windowClosed

        public void windowClosed​(java.awt.event.WindowEvent event)
        Deprecated.
        Unchanged.
        Specified by:
        windowClosed in interface java.awt.event.WindowListener
        Overrides:
        windowClosed in class ViewJFrameBase
        Parameters:
        event - DOCUMENT ME!
      • windowClosing

        public void windowClosing​(java.awt.event.WindowEvent event)
        Deprecated.
        Calls close.
        Specified by:
        windowClosing in interface java.awt.event.WindowListener
        Overrides:
        windowClosing in class ViewJFrameBase
        Parameters:
        event - event that triggered function
      • windowDeactivated

        public void windowDeactivated​(java.awt.event.WindowEvent event)
        Deprecated.
        Unchanged.
        Specified by:
        windowDeactivated in interface java.awt.event.WindowListener
        Overrides:
        windowDeactivated in class ViewJFrameBase
        Parameters:
        event - DOCUMENT ME!
      • windowDeiconified

        public void windowDeiconified​(java.awt.event.WindowEvent event)
        Deprecated.
        Unchanged.
        Specified by:
        windowDeiconified in interface java.awt.event.WindowListener
        Overrides:
        windowDeiconified in class ViewJFrameBase
        Parameters:
        event - DOCUMENT ME!
      • windowIconified

        public void windowIconified​(java.awt.event.WindowEvent event)
        Deprecated.
        Unchanged.
        Specified by:
        windowIconified in interface java.awt.event.WindowListener
        Overrides:
        windowIconified in class ViewJFrameBase
        Parameters:
        event - DOCUMENT ME!
      • windowOpened

        public void windowOpened​(java.awt.event.WindowEvent event)
        Deprecated.
        Unchanged.
        Specified by:
        windowOpened in interface java.awt.event.WindowListener
        Overrides:
        windowOpened in class ViewJFrameBase
        Parameters:
        event - DOCUMENT ME!
      • testParameter

        protected boolean testParameter​(java.lang.String str,
                                        double minValue,
                                        double maxValue)
        Deprecated.
        Tests that the entered parameter is in range.
        Parameters:
        str - the value entered by the user
        minValue - the minimum value this variable may be set to
        maxValue - the maximum value this variable may be set to
        Returns:
        boolean result of test
      • buildMenu

        private void buildMenu()
        Deprecated.
        This method builds a menu which contains the options for opening/saving a LUT or set of transfer functions, closing the LUT, and utilities such as CT presets.
      • buildPanelA

        private void buildPanelA​(ModelImage image,
                                 boolean entireFlag)
        Deprecated.
        Method that displays the histogram and LUT and other controls to manipulate the LUT. Panel for image A.
        Parameters:
        image - Model of image
        entireFlag - Flag indicating if histogram should be made of entire image.
      • buildPanelB

        private void buildPanelB​(ModelImage image,
                                 boolean entireFlag)
        Deprecated.
        Method that displays the histogram and LUT and other controls to manipulate the LUT. Panel for image B.
        Parameters:
        image - Model of image
        entireFlag - Flag indicating if histogram should be made of entire image.
      • calcHistogram

        private void calcHistogram​(int imageAorB,
                                   boolean entireFlag,
                                   boolean progressFlag)
        Deprecated.
        Calculates histogram for the image(s).
        Parameters:
        imageAorB - flag to indicate if histogram is to be calculated for imageA or imageB.
        entireFlag - if true calculate histogram for the entire image. if false uses areas defined by VOI regions.
        progressFlag - passed to calculateHistogram algorithm. If false progress bar is not displayed.
      • calcThresholdVolume

        private float calcThresholdVolume​(float lower,
                                          float upper)
        Deprecated.
        DOCUMENT ME!
        Parameters:
        lower - DOCUMENT ME!
        upper - DOCUMENT ME!
        Returns:
        DOCUMENT ME!
      • clearVoxelLabel

        private void clearVoxelLabel()
        Deprecated.
        Clears (blanks out) the threshold voxel information (when RGB mode or not thresholding).
      • resetThresholdChannels

        private void resetThresholdChannels()
        Deprecated.
        resets boolean for threshold channels.