Class JDialogAnimate

All Implemented Interfaces:
DialogDefaultsInterface, ActionListener, FocusListener, ItemListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class JDialogAnimate extends JDialogBase
Dialog to get scale factor and interpolation method to create initial image forwarded to ViewJFrameAnimate. The interpolation is done on a slice by slice basis only. Bilinear or bspline may be chosen. For 4 dimensional images the user also enters the number of rows and columns for the different z slices, where z is the third dimension and animation is performed on the fourth time dimension. For 4D images the user can select whether or not to have a frame border around each z image and the color of the frame border.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • algoTrans

      private AlgorithmTransform algoTrans
      DOCUMENT ME!
    • algoTransB

      private AlgorithmTransform algoTransB
      DOCUMENT ME!
    • borderB

      private JButton borderB
      false if column radio button selected.
    • borderCol

      private Color borderCol
      DOCUMENT ME!
    • colorChooser

      private ViewJColorChooser colorChooser
      DOCUMENT ME!
    • comboBoxInterp

      private JComboBox comboBoxInterp
      DOCUMENT ME!
    • controlFrame

      private ViewJFrameBase controlFrame
      DOCUMENT ME!
    • DIM

      private int DIM
      DOCUMENT ME!
    • frameAnimate

      private ViewJFrameAnimate frameAnimate
      DOCUMENT ME!
    • frameBorderCheckBox

      private JCheckBox frameBorderCheckBox
      DOCUMENT ME!
    • imageA

      private ModelImage imageA
      DOCUMENT ME!
    • imageB

      private ModelImage imageB
      DOCUMENT ME!
    • isVisible

      private boolean isVisible
      Is dialog visible or not.
    • LUTa

      private ModelLUT LUTa
      DOCUMENT ME!
    • LUTb

      private ModelLUT LUTb
      DOCUMENT ME!
    • radioColumn

      private JRadioButton radioColumn
      DOCUMENT ME!
    • radioRow

      private JRadioButton radioRow
      DOCUMENT ME!
    • rcText

      private JTextField rcText
      DOCUMENT ME!
    • resultImageA

      private ModelImage resultImageA
      DOCUMENT ME!
    • resultImageB

      private ModelImage resultImageB
      DOCUMENT ME!
    • RGBTA

      private ModelRGB RGBTA
      DOCUMENT ME!
    • RGBTB

      private ModelRGB RGBTB
      DOCUMENT ME!
    • rowBFlag

      private boolean rowBFlag
      each z slice in 4D images.
    • scaleText

      private JTextField scaleText
      DOCUMENT ME!
    • showFrameBorder

      private boolean showFrameBorder
      DOCUMENT ME!
  • Constructor Details

    • JDialogAnimate

      public JDialogAnimate(Frame theParentFrame, ModelImage _imageA, ModelLUT LUTa, ModelImage _imageB, ModelLUT LUTb)
      Creates a new JDialogAnimate object.
      Parameters:
      theParentFrame - Parent frame.
      _imageA - Source image A.
      LUTa - Look up table for image A.
      _imageB - Source image B.
      LUTb - Look up table for image B.
    • JDialogAnimate

      public JDialogAnimate(Frame theParentFrame, ModelImage _imageA, ModelLUT LUTa, ModelImage _imageB, ModelLUT LUTb, boolean _isVisible)
      Creates a new JDialogAnimate object.
      Parameters:
      theParentFrame - Parent frame.
      _imageA - Source image A.
      LUTa - Look up table for image A.
      _imageB - Source image B.
      LUTb - Look up table for image B.
      _isVisible - DOCUMENT ME!
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Responds to row button, column button, OK button, cancel button, and borderB button for color. OK button processes images and calls ViewJFrameAnimate.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      event - Event that triggers function.
    • animate

      public void animate()
      Invoke the animation frame.
    • getResultImageA

      public ModelImage getResultImageA()
      Accessor that returns the image.
      Returns:
      The result image.
    • invokeSaveImgAs

      public void invokeSaveImgAs(int framesPerSecond)
      Invoking the ViewJFrameAnimate saveImageAs action.
      Parameters:
      framesPerSecond - DOCUMENT ME!
    • itemStateChanged

      public void itemStateChanged(ItemEvent event)
      Method to handle item events - currently unused.
      Specified by:
      itemStateChanged in interface ItemListener
      Overrides:
      itemStateChanged in class JDialogBase
      Parameters:
      event - Event that cause the method to fire.
    • setRGBs

      public void setRGBs(ModelRGB RGBTA, ModelRGB RGBTB)
      Sets the RGB LUT table for ARGB image A and image B.
      Parameters:
      RGBTA - the new RGB LUT to be applied to image A
      RGBTB - the new RGB LUT to be applied to image B
    • init

      private void init()
      Initializes the dialog box to a certain size and adds the components.