Class MainFrameView

All Implemented Interfaces:
ClipboardOwner, ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class MainFrameView extends JFrame implements ClipboardOwner
See Also:
  • Field Details

    • logger

      private static final Logger logger
    • jContentPane

      private JPanel jContentPane
    • jPanelTop

      private JPanel jPanelTop
    • jPanelInfoSource

      private JPanel jPanelInfoSource
    • jLabelInfoSource

      private JLabel jLabelInfoSource
    • jScrollPaneSource

      private JScrollPane jScrollPaneSource
    • jPanelSource

      private ZoomableGraphicsPanel jPanelSource
    • jPanelInfoTarget

      private JPanel jPanelInfoTarget
    • jLabelInfoTarget

      private JLabel jLabelInfoTarget
    • jScrollPaneTarget

      private JScrollPane jScrollPaneTarget
    • jPanelTarget

      private ZoomableGraphicsPanel jPanelTarget
    • jPanelBottom

      private JPanel jPanelBottom
    • jLayoutPane

      private EditPane jLayoutPane
    • jScrollPaneConsole

      private JScrollPane jScrollPaneConsole
    • console

      private JTextArea console
    • jMenuBar

      private JMenuBar jMenuBar
    • jMenuFile

      private ActionMenu jMenuFile
    • jMenuItemLoad

      private JMenuItem jMenuItemLoad
    • jMenuRecentFiles

      private JMenu jMenuRecentFiles
    • jMenuItemSave

      private JMenuItem jMenuItemSave
    • jMenuItemClose

      private JMenuItem jMenuItemClose
    • jMenuItemQuit

      private JMenuItem jMenuItemQuit
    • jMenuEdit

      private ActionMenu jMenuEdit
    • jMenuItemEditFrame

      private JMenuItem jMenuItemEditFrame
    • jMenuItemEditDefaultDvdPalette

      private JMenuItem jMenuItemEditDefaultDvdPalette
    • jMenuItemEditImportedDvdPalette

      private JMenuItem jMenuItemEditImportedDvdPalette
    • jMenuItemEditDvdFramePalette

      private JMenuItem jMenuItemEditDvdFramePalette
    • jMenuItemMoveAll

      private JMenuItem jMenuItemMoveAll
    • jMenuItemResetCropOffset

      private JMenuItem jMenuItemResetCropOffset
    • jMenuSettings

      private ActionMenu jMenuSettings
    • jMenuItemConversionSettings

      private JMenuItem jMenuItemConversionSettings
    • jMenuItemSwapCrCb

      private JCheckBoxMenuItem jMenuItemSwapCrCb
    • jMenuItemFixInvisibleFrames

      private JCheckBoxMenuItem jMenuItemFixInvisibleFrames
    • jMenuItemVerboseOutput

      private JCheckBoxMenuItem jMenuItemVerboseOutput
    • jMenuHelp

      private ActionMenu jMenuHelp
    • jMenuItemHelp

      private JMenuItem jMenuItemHelp
    • jMenuItemAbout

      private JMenuItem jMenuItemAbout
    • jComboBoxSubNum

      private JComboBox jComboBoxSubNum
    • jComboBoxAlphaThreshold

      private JComboBox jComboBoxAlphaThreshold
    • jComboBoxMedLowThreshold

      private JComboBox jComboBoxMedLowThreshold
    • jComboBoxHiMedThreshold

      private JComboBox jComboBoxHiMedThreshold
    • jComboBoxOutputFormat

      private JComboBox jComboBoxOutputFormat
    • jComboBoxPalette

      private JComboBox jComboBoxPalette
    • jComboBoxFilter

      private JComboBox jComboBoxFilter
    • jTextSubNum

      private JTextField jTextSubNum
    • jTextAlphaThreshold

      private JTextField jTextAlphaThreshold
    • jTextMedLowThreshold

      private JTextField jTextMedLowThreshold
    • jTextHiMedThreshold

      private JTextField jTextHiMedThreshold
    • jPopupMenu

      private JPopupMenu jPopupMenu
    • jPopupMenuItemCopy

      private JMenuItem jPopupMenuItemCopy
    • jPopupMenuItemClear

      private JMenuItem jPopupMenuItemClear
    • recentFilesMenuActionListener

      private ActionListener recentFilesMenuActionListener
    • model

      private final MainFrameModel model
  • Constructor Details

  • Method Details

    • initialize

      private void initialize()
    • setLocation

      private void setLocation()
    • getjMenuBar

      private JMenuBar getjMenuBar()
    • getJMenuFile

      private JMenu getJMenuFile()
    • getJMenuItemLoad

      private JMenuItem getJMenuItemLoad()
    • addLoadMenuItemActionListener

      void addLoadMenuItemActionListener(ActionListener actionListener)
    • setLoadMenuItemEnabled

      void setLoadMenuItemEnabled(boolean enable)
    • getJMenuItemRecentFiles

      private JMenu getJMenuItemRecentFiles()
    • addRecentFilesMenuItemActionListener

      void addRecentFilesMenuItemActionListener(ActionListener actionListener)
    • updateRecentFilesMenu

      void updateRecentFilesMenu()
    • getJMenuItemSave

      private JMenuItem getJMenuItemSave()
    • addSaveMenuItemActionListener

      void addSaveMenuItemActionListener(ActionListener actionListener)
    • getJMenuItemClose

      private JMenuItem getJMenuItemClose()
    • addCloseMenuItemActionListener

      void addCloseMenuItemActionListener(ActionListener actionListener)
    • getJMenuItemQuit

      private JMenuItem getJMenuItemQuit()
    • addQuitMenuItemActionListener

      void addQuitMenuItemActionListener(ActionListener actionListener)
    • setQuitMenuItemEnabled

      void setQuitMenuItemEnabled(boolean enable)
    • getJMenuEdit

      private JMenu getJMenuEdit()
    • getJMenuItemEditFrame

      private JMenuItem getJMenuItemEditFrame()
    • addEditFrameMenuItemActionListener

      void addEditFrameMenuItemActionListener(ActionListener actionListener)
    • getJMenuItemEditDefaultDvdPalette

      private JMenuItem getJMenuItemEditDefaultDvdPalette()
    • addEditDefaultDvdPaletteMenuItemActionListener

      void addEditDefaultDvdPaletteMenuItemActionListener(ActionListener actionListener)
    • getJMenuItemEditImportedDvdPalette

      private JMenuItem getJMenuItemEditImportedDvdPalette()
    • addEditImportedDvdPaletteMenuItemActionListener

      void addEditImportedDvdPaletteMenuItemActionListener(ActionListener actionListener)
    • getJMenuItemEditDvdFramePalette

      private JMenuItem getJMenuItemEditDvdFramePalette()
    • addEditDvdFramePaletteMenuItemActionListener

      void addEditDvdFramePaletteMenuItemActionListener(ActionListener actionListener)
    • getJMenuItemMoveAll

      private JMenuItem getJMenuItemMoveAll()
    • addMoveAllMenuItemActionListener

      void addMoveAllMenuItemActionListener(ActionListener actionListener)
    • getJMenuItemResetCropOffset

      private JMenuItem getJMenuItemResetCropOffset()
    • addResetCropOffsetMenuItemActionListener

      void addResetCropOffsetMenuItemActionListener(ActionListener actionListener)
    • getJMenuPrefs

      private JMenu getJMenuPrefs()
    • getJMenuItemConversionSettings

      private JMenuItem getJMenuItemConversionSettings()
    • addConversionSettingsMenuItemActionListener

      void addConversionSettingsMenuItemActionListener(ActionListener actionListener)
    • getJMenuItemSwapCrCb

      private JMenuItem getJMenuItemSwapCrCb()
    • addSwapCrCbMenuItemActionListener

      void addSwapCrCbMenuItemActionListener(ActionListener actionListener)
    • isSwapCrCbSelected

      boolean isSwapCrCbSelected()
    • getJMenuItemFixInvisibleFrames

      private JMenuItem getJMenuItemFixInvisibleFrames()
    • addFixInvisibleFramesMenuItemActionListener

      void addFixInvisibleFramesMenuItemActionListener(ActionListener actionListener)
    • isFixInvisibleFramesSelected

      boolean isFixInvisibleFramesSelected()
    • getJMenuItemVerboseOutput

      private JMenuItem getJMenuItemVerboseOutput()
    • addVerboseOutputMenuItemActionListener

      void addVerboseOutputMenuItemActionListener(ActionListener actionListener)
    • isVerboseOutputSelected

      boolean isVerboseOutputSelected()
    • getJMenuHelp

      private JMenu getJMenuHelp()
    • getJMenuItemHelp

      private JMenuItem getJMenuItemHelp()
    • addHelpMenuItemActionListener

      void addHelpMenuItemActionListener(ActionListener actionListener)
    • getJMenuItemAbout

      private JMenuItem getJMenuItemAbout()
    • addAboutMenuItemActionListener

      void addAboutMenuItemActionListener(ActionListener actionListener)
    • getJContentPane

      private JPanel getJContentPane()
    • getJPanelTop

      private JPanel getJPanelTop()
    • getJPanelInfoSource

      private JPanel getJPanelInfoSource()
    • getJScrollPaneSource

      private JScrollPane getJScrollPaneSource()
    • getJPanelSource

      private JPanel getJPanelSource()
    • getJPanelInfoTarget

      private JPanel getJPanelInfoTarget()
    • getJScrollPaneTarget

      private JScrollPane getJScrollPaneTarget()
    • getJPanelTarget

      private JPanel getJPanelTarget()
    • getJPanelBottom

      private JPanel getJPanelBottom()
    • getJPanelLayout

      private JPanel getJPanelLayout()
    • addLayoutPaneMouseListener

      void addLayoutPaneMouseListener(MouseListener mouseListener)
    • setLayoutPaneAspectRatio

      void setLayoutPaneAspectRatio(double trgRatio)
    • setLayoutPaneCropOffsetY

      void setLayoutPaneCropOffsetY(int cropOfsY)
    • repaintLayoutPane

      void repaintLayoutPane()
    • getJScrollPaneConsole

      private JScrollPane getJScrollPaneConsole()
    • getConsole

      private JTextArea getConsole()
    • addConsoleMouseListener

      void addConsoleMouseListener(MouseListener mouseListener)
    • printToConsole

      public void printToConsole(String message)
    • flushConsole

      public void flushConsole()
    • getConsoleSelectedText

      String getConsoleSelectedText()
    • setConsoleText

      void setConsoleText(String text)
    • getJComboBoxSubNum

      private JComboBox getJComboBoxSubNum()
    • addSubNumComboBoxActionListener

      void addSubNumComboBoxActionListener(ActionListener actionListener)
    • addSubNumComboBoxDocumentListener

      void addSubNumComboBoxDocumentListener(DocumentListener documentListener)
    • setSubNumComboBoxBackground

      void setSubNumComboBoxBackground(Color color)
    • getSubNumComboBoxText

      String getSubNumComboBoxText()
    • initSubNumComboBox

      void initSubNumComboBox(int subCount)
    • getSubNumComboBoxSelectedItem

      Object getSubNumComboBoxSelectedItem()
    • setSubNumComboBoxSelectedIndex

      void setSubNumComboBoxSelectedIndex(int index)
    • getJComboBoxAlphaThreshold

      private JComboBox getJComboBoxAlphaThreshold()
    • addAlphaThresholdComboBoxActionListener

      void addAlphaThresholdComboBoxActionListener(ActionListener actionListener)
    • addAlphaThresholdComboBoxDocumentListener

      void addAlphaThresholdComboBoxDocumentListener(DocumentListener documentListener)
    • initAlphaThresholdComboBoxSelectedIndices

      void initAlphaThresholdComboBoxSelectedIndices()
    • getAlphaThresholdComboBoxSelectedItem

      Object getAlphaThresholdComboBoxSelectedItem()
    • getAlphaThresholdComboBoxText

      String getAlphaThresholdComboBoxText()
    • setAlphaThresholdComboBoxSelectedIndex

      void setAlphaThresholdComboBoxSelectedIndex(int index)
    • setAlphaThresholdComboBoxBackground

      void setAlphaThresholdComboBoxBackground(Color color)
    • getJComboBoxHiMedThreshold

      private JComboBox getJComboBoxHiMedThreshold()
    • addHiMedThresholdComboBoxActionListener

      void addHiMedThresholdComboBoxActionListener(ActionListener actionListener)
    • addHiMedThresholdComboBoxDocumentListener

      void addHiMedThresholdComboBoxDocumentListener(DocumentListener documentListener)
    • setHiMedThresholdComboBoxBackground

      void setHiMedThresholdComboBoxBackground(Color color)
    • getHiMedThresholdComboBoxText

      String getHiMedThresholdComboBoxText()
    • getHiMedThresholdComboBoxSelectedItem

      Object getHiMedThresholdComboBoxSelectedItem()
    • setHiMedThresholdComboBoxSelectedIndex

      void setHiMedThresholdComboBoxSelectedIndex(int index)
    • getJComboBoxMedLowThreshold

      private JComboBox getJComboBoxMedLowThreshold()
    • addMedLowThresholdComboBoxActionListener

      void addMedLowThresholdComboBoxActionListener(ActionListener actionListener)
    • addMedLowThresholdComboBoxDocumentListener

      void addMedLowThresholdComboBoxDocumentListener(DocumentListener documentListener)
    • setMedLowThresholdComboBoxBackground

      void setMedLowThresholdComboBoxBackground(Color color)
    • getMedLowThresholdComboBoxText

      String getMedLowThresholdComboBoxText()
    • getMedLowThresholdComboBoxSelectedItem

      Object getMedLowThresholdComboBoxSelectedItem()
    • setMedLowThresholdComboBoxSelectedIndex

      void setMedLowThresholdComboBoxSelectedIndex(int index)
    • getJComboBoxOutputFormat

      private JComboBox getJComboBoxOutputFormat()
    • addOutputFormatComboBoxActionListener

      void addOutputFormatComboBoxActionListener(ActionListener actionListener)
    • getOutputFormatComboBoxSelectedIndex

      int getOutputFormatComboBoxSelectedIndex()
    • setComboBoxOutFormatEnabled

      void setComboBoxOutFormatEnabled(boolean enable)
    • getJComboBoxPalette

      private JComboBox getJComboBoxPalette()
    • addPaletteComboBoxActionListener

      void addPaletteComboBoxActionListener(ActionListener actionListener)
    • getPaletteComboBoxSelectedIndex

      int getPaletteComboBoxSelectedIndex()
    • getJComboBoxFilter

      private JComboBox getJComboBoxFilter()
    • addFilterComboBoxActionListener

      void addFilterComboBoxActionListener(ActionListener actionListener)
    • getFilterComboBoxSelectedIndex

      int getFilterComboBoxSelectedIndex()
    • enableCoreComponents

      void enableCoreComponents(boolean state)
    • enableVobSubMenuCombo

      void enableVobSubMenuCombo()
      Enable/disable components dependent only available for VobSubs
    • enableVobsubBits

      void enableVobsubBits(boolean b)
      Enable/disable components dependent only available for VobSubs
      Parameters:
      b - true: enable
    • closeSub

      void closeSub()
    • getJPopupMenu

      private JPopupMenu getJPopupMenu()
    • showPopupMenu

      void showPopupMenu(int x, int y)
    • getJPopupMenuItemCopy

      private JMenuItem getJPopupMenuItemCopy()
    • addCopyPopupMenuItemActionListener

      void addCopyPopupMenuItemActionListener(ActionListener actionListener)
    • setCopyPopupMenuItemEnabled

      void setCopyPopupMenuItemEnabled(boolean enable)
    • getJPopupMenuItemClear

      private JMenuItem getJPopupMenuItemClear()
    • addClearPopupMenuItemActionListener

      void addClearPopupMenuItemActionListener(ActionListener actionListener)
    • addTransferHandler

      void addTransferHandler(TransferHandler transferHandler)
    • lostOwnership

      public void lostOwnership(Clipboard clipboard, Transferable contents)
      Specified by:
      lostOwnership in interface ClipboardOwner
    • refreshSrcFrame

      void refreshSrcFrame(int index)
      Update all components belonging to the source window
      Parameters:
      index - caption index
    • refreshTrgFrame

      void refreshTrgFrame(int index)
      Update all components belonging to the target window
      Parameters:
      index - caption index
    • exit

      void exit(int code)
    • warningDialog

      void warningDialog()
      Output a dialog with number of warnings and errors
    • error

      public void error(String message)