Class ViewJFrameHistoLUT

  • All Implemented Interfaces:
    ViewImageUpdateInterface, java.awt.event.ActionListener, java.awt.event.ComponentListener, 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 ViewJFrameHistoLUT
    extends ViewJFrameBase
    implements java.awt.event.WindowListener, ViewImageUpdateInterface
    Deprecated.
    This class produces a frame where the user can specify a specific LUT, the number of colors of the LUT or dynamically edit the LUT. The frame with histogram of the image data is displayed using the color map. All frames using the color map are dynamically updated with the new color map.
    Version:
    1.0
    Author:
    Matthew J. McAuliffe, Ph.D., Harman Singh, Lynne M. Pusanik
    See Also:
    ViewJFrameBase, ViewJComponentHistoLUT, JFrameHistogram, Serialized Form
    • Field Detail

      • serialVersionUID

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

        private boolean calcThresholdVolume
        Deprecated.
        DOCUMENT ME!
      • parentFrame

        private java.awt.Frame parentFrame
        Deprecated.
        Parent frame
      • entireFlag

        private boolean entireFlag
        Deprecated.
        DOCUMENT ME!
      • lutPanel

        private ViewJPanelLUT lutPanel
        Deprecated.
        DOCUMENT ME!
    • Constructor Detail

      • ViewJFrameHistoLUT

        public ViewJFrameHistoLUT​(ModelImage _imageA,
                                  ModelImage _imageB,
                                  ModelLUT _LUTa,
                                  ModelLUT _LUTb,
                                  boolean _entireFlag)
        Deprecated.
        Makes a frame of the histogram and LUT.
        Parameters:
        _imageA - Model of imageA
        _imageB - Model of imageB
        _LUTa - Model of LUT for image A
        _LUTb - Model of LUT for image B
        _entireFlag - Flag indicating if histogram should be done on all of image.
      • ViewJFrameHistoLUT

        public ViewJFrameHistoLUT​(java.awt.Frame _parentFrame,
                                  ModelImage _imageA,
                                  ModelImage _imageB,
                                  ModelLUT _LUTa,
                                  ModelLUT _LUTb,
                                  boolean _entireFlag)
        Deprecated.
        Makes a frame of the histogram and LUT.
        Parameters:
        _parentFrame - parent frame to hold the image.
        _imageA - Model of imageA
        _imageB - Model of imageB
        _LUTa - Model of LUT for image A
        _LUTb - Model of LUT for image B
        _entireFlag - Flag indicating if histogram should be done on all of image.
      • ViewJFrameHistoLUT

        public ViewJFrameHistoLUT​(ModelImage _imageA,
                                  ModelImage _imageB,
                                  ModelLUT _LUTa,
                                  ModelLUT _LUTb,
                                  boolean _entireFlag,
                                  boolean visible)
        Deprecated.
        Makes a frame of the histogram and LUT.
        Parameters:
        _imageA - Model of imageA
        _imageB - Model of imageB
        _LUTa - Model of LUT for image A
        _LUTb - Model of LUT for image B
        _entireFlag - Flag indicating if histogram should be done on all of image.
        visible - Frame visible or not.
      • ViewJFrameHistoLUT

        public ViewJFrameHistoLUT​(ViewJFrameColocalizationRegression colRegFrame,
                                  ModelImage _imageA,
                                  ModelImage _imageB,
                                  ModelLUT _LUTa,
                                  ModelLUT _LUTb,
                                  boolean _entireFlag)
        Deprecated.
        Makes a frame of the histogram and LUT.
        Parameters:
        colRegFrame - DOCUMENT ME!
        _imageA - Model of imageA
        _imageB - Model of imageB
        _LUTa - Model of LUT for image A
        _LUTb - Model of LUT for image B
        _entireFlag - Flag indicating if histogram should be done on all of image.
      • ViewJFrameHistoLUT

        public ViewJFrameHistoLUT​(ViewJFrameColocalizationEM colEMFrame,
                                  ModelImage _imageA,
                                  ModelImage _imageB,
                                  ModelLUT _LUTa,
                                  ModelLUT _LUTb,
                                  boolean _entireFlag)
        Deprecated.
        Makes a frame of the histogram and LUT.
        Parameters:
        colEMFrame - DOCUMENT ME!
        _imageA - Model of imageA
        _imageB - Model of imageB
        _LUTa - Model of LUT for image A
        _LUTb - Model of LUT for image B
        _entireFlag - Flag indicating if histogram should be done on all of image.
      • ViewJFrameHistoLUT

        public ViewJFrameHistoLUT​(ViewJComponentRegistration _regComponent,
                                  ModelImage _imageA,
                                  ModelImage _imageB,
                                  ModelLUT _LUTa,
                                  ModelLUT _LUTb,
                                  boolean _entireFlag)
        Deprecated.
        Makes a frame of the histogram and LUT.
        Parameters:
        _regComponent - component to which information is passed in manual registration
        _imageA - Model of imageA
        _imageB - Model of imageB
        _LUTa - Model of LUT for image A
        _LUTb - Model of LUT for image B
        _entireFlag - DOCUMENT ME!
    • Method Detail

      • createSliderLabel

        public static final javax.swing.JLabel createSliderLabel​(java.lang.String title)
        Deprecated.
        Creates a label in the proper font and color.
        Parameters:
        title - The title of the label.
        Returns:
        The new label.
        See Also:
        MipavUtil
      • 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
      • doCalcThresholdVolume

        public boolean doCalcThresholdVolume()
        Deprecated.
        Whether or not to calculate the threshold volume.
        Returns:
        boolean do calc?
      • enableThresholdingItems

        public void enableThresholdingItems​(boolean flag)
        Deprecated.
        Enables the thresholding menu item(s).
        Parameters:
        flag - whether to enable the items
      • getComponentHistoLUT

        public ViewJComponentHLUTBase getComponentHistoLUT​(int imageAorB)
        Deprecated.
        DOCUMENT ME!
        Parameters:
        imageAorB - DOCUMENT ME!
        Returns:
        DOCUMENT ME!
      • getHistoLUTComponentA

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

        public ViewJComponentHLUTBase getHistoLUTComponentB()
        Deprecated.
        Get the histogram component for imageB.
        Returns:
        the imageB histogram component
      • getLowerThreshold

        public float getLowerThreshold()
        Deprecated.
        Returns the lower threshold value.
        Returns:
        float lower thresh
      • getLUT

        public ModelLUT getLUT()
        Deprecated.
        This method returns the current LUT.
        Returns:
        LUT for Image A if selected, otherwise for Image B
      • getLUTComponentA

        public final ViewJComponentLUT getLUTComponentA()
        Deprecated.
        Get the imageA LUT.
        Returns:
        the imageA LUT component
      • getLUTComponentB

        public final ViewJComponentLUT getLUTComponentB()
        Deprecated.
        Get the imageB LUT.
        Returns:
        the imageB LUT component
      • getLUTRecorder

        public JDialogRecordLUT getLUTRecorder()
        Deprecated.
        Get the JDialogRecordLUT reference from ViewJPanelLUT.
        Returns:
        JDialogRecordLUT
      • getTransferLine

        public TransferFunction getTransferLine()
        Deprecated.
        This method is used to obtain the VOIBase Single Transfer Line from ViewJFrameComponentHistoLut.
        Returns:
        LUTb.getTransferFunction() - VOIBase of Single Transfer Line for Image B
      • getUpperThreshold

        public float getUpperThreshold()
        Deprecated.
        Returns the upper threshold value.
        Returns:
        float upper thresh
      • getWholeImageFlag

        public boolean getWholeImageFlag()
        Deprecated.
        Returns whether the whole image is being examined or just the VOI region.
        Returns:
        whether the whole image is being examined or just the VOI region
      • isThresholding

        public boolean isThresholding()
        Deprecated.
        Returns true if comphist A or B is in dual threshold inverse mode (for JDialogConvertType input ranges).
        Returns:
        boolean is dual threshold inversing
      • 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
      • removeHistoLUTb

        public void removeHistoLUTb()
        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
      • 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
      • setCTMode

        public void setCTMode​(int st,
                              int end)
        Deprecated.
        This method is used to set Computed Tomography (CT) presets for CT images.
        Parameters:
        st - starting preset of the window
        end - ending preset of the window
        See Also:
        JDialogCT
      • setDisplayMode

        public void setDisplayMode​(int mode)
        Deprecated.
        Change the image display mode.
        Parameters:
        mode - IMAGE_A or IMAGE_B or IMAGE_A_B
      • 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
      • setLinearLUT

        public void setLinearLUT()
        Deprecated.
        This method sets the histogram to Linear Transfer Function Mode.
      • setLUT

        public void setLUT​(ModelLUT newLUT)
        Deprecated.
        Change the panel's LUT.
        Parameters:
        newLUT - the new LUT
      • setLUTA

        public void setLUTA​(ModelLUT LUT)
        Deprecated.
        Replaces the LUT A component.
        Parameters:
        LUT - new LUT
      • setLUTB

        public void setLUTB​(ModelLUT LUT)
        Deprecated.
        Replaces the LUT B component.
        Parameters:
        LUT - new LUT
      • setPaintBitmapSwitch

        public void setPaintBitmapSwitch​(boolean flag)
        Deprecated.
        DOCUMENT ME!
        Specified by:
        setPaintBitmapSwitch in class ViewJFrameBase
        Parameters:
        flag - DOCUMENT ME!
      • 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!
      • update

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

        public void updateFrames​(boolean flag)
        Deprecated.
        Update registration frames.
        Parameters:
        flag - whether to display a reloading of the image in the frames
      • updateHistoLUT

        public void updateHistoLUT​(ModelImage _imageA,
                                   ModelLUT _LUTa,
                                   ModelImage _imageB,
                                   ModelLUT _LUTb,
                                   boolean progressFlag)
        Deprecated.
        This method is called to update the histogram(s) displayed in each tabbed pane of the frame.
        Parameters:
        _imageA - image A
        _LUTa - lookup table for image A
        _imageB - image B
        _LUTb - lookup table for 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.
      • 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!
      • 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.