Class JDialogRendererAVI

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

public class JDialogRendererAVI extends JDialogBase
Dialog that gets input needed for saving the 3D rendering motions to an AVI file. User can enter subsample and frame rate.
Version:
0.1 Oct 2001
Author:
Neva Cherniavsky
See Also:
  • Field Details

    • serialVersionUID

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

      private boolean applyWindowLevel
      Flag to indicate to apply window level or not.
    • rate

      private double rate
      Frame rate.
    • rateBox

      private JTextField rateBox
      Frame rate textbox.
    • windowLevelCheckBox

      private JCheckBox windowLevelCheckBox
      Window level check box.
  • Constructor Details

    • JDialogRendererAVI

      public JDialogRendererAVI()
      Used primarily for the script to store variables and run the algorithm. No actual dialog will appear but the set up info and result image will be stored here.
    • JDialogRendererAVI

      public JDialogRendererAVI(Frame theParentFrame)
      Creates a new JDialogRendererAVI object.
      Parameters:
      theParentFrame - Parent frame.
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Takes the following actions:
      • OK Button - gets the frame rate from the text box and the subsample parameter from the combo boxes
      • Cancel Button - closes the dialog without doing anything
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      event - Event that triggers function.
    • getApplyWindowLevel

      public boolean getApplyWindowLevel()
      Accessor that gets the applyWindowLevel boolean.
      Returns:
      boolean
    • getFrameRate

      public double getFrameRate()
      Accessor that gets the frame rate.
      Returns:
      The frame rate.
    • setApplyWindowLevel

      public void setApplyWindowLevel(boolean applyWindowLevel)
      Accessor that sets if the window and level slider settings are applied to the saved image.
      Parameters:
      applyWindowLevel - boolean
    • setFrameRate

      public void setFrameRate(double rate)
      Accessor that sets the frame rate.
      Parameters:
      rate - Frame rate to set.
    • init

      private void init()
      Sets up the GUI (panels, buttons, etc) and displays it on the screen.