Class JDialogSurfaceAVI

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

public class JDialogSurfaceAVI 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:
    • rate

      private double rate
      Frame rate per second.
    • rateBox

      private JTextField rateBox
      Text field for the frame rate per second.
    • subSample

      private int subSample
      Subsample flag.
    • subSampleCBox

      private JComboBox subSampleCBox
      Sub sampel combo box.
  • Constructor Details

    • JDialogSurfaceAVI

      public JDialogSurfaceAVI(Frame theParentFrame)
      Constructor to create surface AVI dialog.
      Parameters:
      theParentFrame - parent frame reference
  • 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.
    • getFrameRate

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

      public int getSubSample()
      Accessor that gets the subsample size.
      Returns:
      The subsample size.
    • setFrameRate

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

      public void setSubSample(int type)
      Accessor that sets the subsample size.
      Parameters:
      type - The subsample size.
    • init

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