Class JDialogAVIChoice

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

public class JDialogAVIChoice extends JDialogBase
Confirmation Dialog giving user the choice to choose what type of compression to use when saving to AVI format.
Version:
1.0
Author:
not attributable
See Also:
  • Field Details

    • serialVersionUID

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

      private JComboBox compressionBox
      Combo box to select compression.
    • okayPressed

      private boolean okayPressed
      DOCUMENT ME!
    • operating_system

      private int operating_system
      DOCUMENT ME!
    • qualityField

      private JTextField qualityField
      Text Field for M-JPEG quality.
  • Constructor Details

    • JDialogAVIChoice

      public JDialogAVIChoice(Frame theParentFrame)
      Creates new dialog.
      Parameters:
      theParentFrame - Parent frame of dialog.
    • JDialogAVIChoice

      public JDialogAVIChoice(Frame theParentFrame, boolean isColor)
      Creates a new JDialogAVIChoice object.
      Parameters:
      theParentFrame - DOCUMENT ME!
      isColor - DOCUMENT ME!
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Checks to see if the OK or Cancel buttons were pressed.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      event - Event that triggered this function.
    • getCompression

      public int getCompression()
      Returns an int (based on AlgorithmTranscode's static variables) representing the compression type to be used.
      Returns:
      int compression type
    • getMJPEGQuality

      public float getMJPEGQuality()
      Accessor for m-jpeg quality.
      Returns:
      float m-jpeg quality ranging from .01 to 1.0
    • itemStateChanged

      public void itemStateChanged(ItemEvent event)
      Check to see if M-JPEG was selected so that the quality field will be enabled.
      Specified by:
      itemStateChanged in interface ItemListener
      Overrides:
      itemStateChanged in class JDialogBase
      Parameters:
      event - (combo box event)
    • okayPressed

      public boolean okayPressed()
      Was the okay button pressed.
      Returns:
      boolean was okay pressed
    • init

      private void init(boolean isColor)
      Creates and displays dialog.
      Parameters:
      isColor - is the image color