net.luniks.jtvd
Class EncodePanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bynet.luniks.jtvd.EncodePanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class EncodePanel
extends javax.swing.JPanel

See Also:
Serialized Form

Nested Class Summary
(package private)  class EncodePanel.DateRenderer
           
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  javax.swing.JButton addFileButton
           
private  javax.swing.ImageIcon addIcon
           
private  javax.swing.JMenuItem addMenuItem
           
private  javax.swing.JCheckBox aspectCheckBox
           
private  javax.swing.JComboBox aspectComboBox
           
private  javax.swing.JComboBox audioBitrateComboBox
           
private  javax.swing.JLabel audioBitrateLabel
           
private  javax.swing.JRadioButton audioCBRRadioButton
           
private  javax.swing.JComboBox audioCodecComboBox
           
private  javax.swing.JLabel audioCodecLabel
           
private  javax.swing.JCheckBox audioInputCodecCheckBox
           
private  javax.swing.JComboBox audioInputCodecComboBox
           
private  javax.swing.JPanel audioPanel
           
private  javax.swing.JComboBox audioQualityComboBox
           
private  javax.swing.JRadioButton audioVBRRadioButton
           
private  javax.swing.JPanel buttonPanel
           
private  javax.swing.JButton cancelFileButton
           
private  javax.swing.ImageIcon cancelIcon
           
private  boolean cancelled
           
private  javax.swing.JLabel clipBottomLabel
           
private  javax.swing.JSpinner clipBottomSpinner
           
private  javax.swing.JCheckBox clipCheckBox
           
private  javax.swing.JLabel clipLeftLabel
           
private  javax.swing.JSpinner clipLeftSpinner
           
private  javax.swing.JPanel clipPanel
           
private  javax.swing.JLabel clipResultLabel
           
private  javax.swing.JLabel clipRightLabel
           
private  javax.swing.JSpinner clipRightSpinner
           
private  javax.swing.JLabel clipTopLabel
           
private  javax.swing.JSpinner clipTopSpinner
           
private  javax.swing.JButton deleteFileButton
           
private  javax.swing.ImageIcon deleteIcon
           
private  javax.swing.JMenuItem deleteMenuItem
           
private  javax.swing.JCheckBox dvFixCheckBox
           
private  float encodedLength
           
private  javax.swing.JButton encodeFileButton
           
private  javax.swing.ImageIcon encodeIcon
           
private  javax.swing.JMenuItem encodeMenuItem
           
private  Encoder encoder
           
static java.lang.String ENCODER
           
(package private)  javax.swing.JFileChooser fileChooser
           
(package private)  javax.swing.JPopupMenu filePopupMenu
           
private  javax.swing.JTable fileTable
           
private  IntroTableModel fileTableModel
           
private  javax.swing.JCheckBox fpsCheckBox
           
private  javax.swing.JComboBox fpsComboBox
           
private  javax.swing.JPanel inputPanel
           
private  java.awt.Insets insets
           
private  javax.swing.JPanel listPanel
           
private  JTVDFrame mainFrame
           
static java.lang.String MUXER
           
private  javax.swing.JComboBox profileComboBox
           
private  javax.swing.JPanel profilePanel
           
private  javax.swing.JButton refreshFileButton
           
private  javax.swing.ImageIcon refreshIcon
           
private  javax.swing.JMenuItem refreshMenuItem
           
private  javax.swing.ImageIcon renameIcon
           
private  javax.swing.JMenuItem renameMenuItem
           
private  javax.swing.JCheckBox resolutionCheckBox
           
private  javax.swing.JComboBox resolutionComboBox
           
private  javax.swing.JScrollPane scrollPane
           
private  int sortCol
           
private  int sortDir
           
private  TimeFormat timeFormat
           
private  javax.swing.JCheckBox trimCheckBox
           
private  javax.swing.JTextField trimEndField
           
private  javax.swing.JLabel trimEndLabel
           
private  javax.swing.JPanel trimPanel
           
private  javax.swing.JTextField trimStartField
           
private  javax.swing.JLabel trimStartLabel
           
private  javax.swing.JCheckBox useProfileCheckBox
           
private  javax.swing.JTextField videoBitrateField
           
private  javax.swing.JRadioButton videoCBRRadioButton
           
private  javax.swing.JCheckBox videoInputCodecCheckBox
           
private  javax.swing.JComboBox videoInputCodecComboBox
           
private  javax.swing.JCheckBox videoMaxBitrateCheckBox
           
private  javax.swing.JTextField videoMaxBitrateField
           
private  javax.swing.JCheckBox videoMinBitrateCheckBox
           
private  javax.swing.JTextField videoMinBitrateField
           
private  javax.swing.JPanel videoPanel
           
private  javax.swing.JComboBox videoQualityComboBox
           
private  javax.swing.JRadioButton videoVBRRadioButton
           
private  javax.swing.JButton viewFileButton
           
private  javax.swing.ImageIcon viewIcon
           
private  javax.swing.JMenuItem viewMenuItem
           
 
Fields inherited from class javax.swing.JPanel
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
EncodePanel(JTVDFrame frame)
           
 
Method Summary
private  void addAction()
           
(package private)  void addFile(java.io.File file)
           
private  void cancel()
           
private  void cancelAction()
           
private  boolean checkResolution()
           
private  void delete()
           
private  void deleteAction()
           
private  void encode(Files.FileInfo fileInfo)
           
private  void encodeAction()
           
private  javax.swing.CellEditor getEditingEditor()
           
private  void mux(Files.FileInfo fileInfo)
           
private  void populate()
           
(package private)  void refresh()
           
private  void refreshAction()
           
private  void rename(java.lang.String title)
           
private  void renameAction()
           
(package private)  void resort()
          Resorts the file table
 void setComponents()
          Sets all components in this tab to values taken from the global properties
 void setProperties()
          Puts the current settings of all components in this tab in the global properties
private  void setup(Files.FileInfo fileInfo)
           
 void updateUI()
           
private  void viewAction()
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mainFrame

private JTVDFrame mainFrame

ENCODER

public static final java.lang.String ENCODER
See Also:
Constant Field Values

MUXER

public static final java.lang.String MUXER
See Also:
Constant Field Values

encoder

private Encoder encoder

cancelled

private boolean cancelled

encodedLength

private float encodedLength

sortCol

private int sortCol

sortDir

private int sortDir

timeFormat

private TimeFormat timeFormat

listPanel

private javax.swing.JPanel listPanel

inputPanel

private javax.swing.JPanel inputPanel

profilePanel

private javax.swing.JPanel profilePanel

clipPanel

private javax.swing.JPanel clipPanel

trimPanel

private javax.swing.JPanel trimPanel

videoPanel

private javax.swing.JPanel videoPanel

audioPanel

private javax.swing.JPanel audioPanel

buttonPanel

private javax.swing.JPanel buttonPanel

scrollPane

private javax.swing.JScrollPane scrollPane

fileTable

private javax.swing.JTable fileTable

fileTableModel

private IntroTableModel fileTableModel

fileChooser

javax.swing.JFileChooser fileChooser

filePopupMenu

javax.swing.JPopupMenu filePopupMenu

addMenuItem

private javax.swing.JMenuItem addMenuItem

renameMenuItem

private javax.swing.JMenuItem renameMenuItem

encodeMenuItem

private javax.swing.JMenuItem encodeMenuItem

viewMenuItem

private javax.swing.JMenuItem viewMenuItem

deleteMenuItem

private javax.swing.JMenuItem deleteMenuItem

refreshMenuItem

private javax.swing.JMenuItem refreshMenuItem

videoInputCodecCheckBox

private javax.swing.JCheckBox videoInputCodecCheckBox

videoInputCodecComboBox

private javax.swing.JComboBox videoInputCodecComboBox

audioInputCodecCheckBox

private javax.swing.JCheckBox audioInputCodecCheckBox

audioInputCodecComboBox

private javax.swing.JComboBox audioInputCodecComboBox

dvFixCheckBox

private javax.swing.JCheckBox dvFixCheckBox

useProfileCheckBox

private javax.swing.JCheckBox useProfileCheckBox

profileComboBox

private javax.swing.JComboBox profileComboBox

clipCheckBox

private javax.swing.JCheckBox clipCheckBox

clipResultLabel

private javax.swing.JLabel clipResultLabel

clipTopLabel

private javax.swing.JLabel clipTopLabel

clipBottomLabel

private javax.swing.JLabel clipBottomLabel

clipLeftLabel

private javax.swing.JLabel clipLeftLabel

clipRightLabel

private javax.swing.JLabel clipRightLabel

clipTopSpinner

private javax.swing.JSpinner clipTopSpinner

clipBottomSpinner

private javax.swing.JSpinner clipBottomSpinner

clipLeftSpinner

private javax.swing.JSpinner clipLeftSpinner

clipRightSpinner

private javax.swing.JSpinner clipRightSpinner

trimCheckBox

private javax.swing.JCheckBox trimCheckBox

trimStartLabel

private javax.swing.JLabel trimStartLabel

trimStartField

private javax.swing.JTextField trimStartField

trimEndLabel

private javax.swing.JLabel trimEndLabel

trimEndField

private javax.swing.JTextField trimEndField

resolutionCheckBox

private javax.swing.JCheckBox resolutionCheckBox

resolutionComboBox

private javax.swing.JComboBox resolutionComboBox

aspectCheckBox

private javax.swing.JCheckBox aspectCheckBox

aspectComboBox

private javax.swing.JComboBox aspectComboBox

fpsCheckBox

private javax.swing.JCheckBox fpsCheckBox

fpsComboBox

private javax.swing.JComboBox fpsComboBox

videoCBRRadioButton

private javax.swing.JRadioButton videoCBRRadioButton

videoBitrateField

private javax.swing.JTextField videoBitrateField

videoVBRRadioButton

private javax.swing.JRadioButton videoVBRRadioButton

videoQualityComboBox

private javax.swing.JComboBox videoQualityComboBox

videoMinBitrateCheckBox

private javax.swing.JCheckBox videoMinBitrateCheckBox

videoMinBitrateField

private javax.swing.JTextField videoMinBitrateField

videoMaxBitrateCheckBox

private javax.swing.JCheckBox videoMaxBitrateCheckBox

videoMaxBitrateField

private javax.swing.JTextField videoMaxBitrateField

audioCodecLabel

private javax.swing.JLabel audioCodecLabel

audioCodecComboBox

private javax.swing.JComboBox audioCodecComboBox

audioBitrateLabel

private javax.swing.JLabel audioBitrateLabel

audioCBRRadioButton

private javax.swing.JRadioButton audioCBRRadioButton

audioBitrateComboBox

private javax.swing.JComboBox audioBitrateComboBox

audioVBRRadioButton

private javax.swing.JRadioButton audioVBRRadioButton

audioQualityComboBox

private javax.swing.JComboBox audioQualityComboBox

viewFileButton

private javax.swing.JButton viewFileButton

encodeFileButton

private javax.swing.JButton encodeFileButton

cancelFileButton

private javax.swing.JButton cancelFileButton

addFileButton

private javax.swing.JButton addFileButton

deleteFileButton

private javax.swing.JButton deleteFileButton

refreshFileButton

private javax.swing.JButton refreshFileButton

viewIcon

private javax.swing.ImageIcon viewIcon

addIcon

private javax.swing.ImageIcon addIcon

renameIcon

private javax.swing.ImageIcon renameIcon

encodeIcon

private javax.swing.ImageIcon encodeIcon

cancelIcon

private javax.swing.ImageIcon cancelIcon

deleteIcon

private javax.swing.ImageIcon deleteIcon

refreshIcon

private javax.swing.ImageIcon refreshIcon

insets

private java.awt.Insets insets
Constructor Detail

EncodePanel

public EncodePanel(JTVDFrame frame)
Method Detail

getEditingEditor

private javax.swing.CellEditor getEditingEditor()

checkResolution

private boolean checkResolution()

populate

private void populate()

setComponents

public void setComponents()
Sets all components in this tab to values taken from the global properties


setProperties

public void setProperties()
Puts the current settings of all components in this tab in the global properties


setup

private void setup(Files.FileInfo fileInfo)

addAction

private void addAction()

renameAction

private void renameAction()

viewAction

private void viewAction()

encodeAction

private void encodeAction()

encode

private void encode(Files.FileInfo fileInfo)

mux

private void mux(Files.FileInfo fileInfo)

cancelAction

private void cancelAction()

cancel

private void cancel()

deleteAction

private void deleteAction()

rename

private void rename(java.lang.String title)

delete

private void delete()

refreshAction

private void refreshAction()

refresh

void refresh()

resort

void resort()
Resorts the file table


addFile

void addFile(java.io.File file)

updateUI

public void updateUI()


Copyright (c) 2004, 2005 Torsten Römer, dode@luniks.net