Package bdsup2sub.gui.main
Class MainFrameView
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
bdsup2sub.gui.main.MainFrameView
- All Implemented Interfaces:
ClipboardOwner
,ImageObserver
,MenuContainer
,Serializable
,Accessible
,RootPaneContainer
,WindowConstants
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrame
Nested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrame
Nested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow, Window.Type
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JTextArea
private JComboBox
private JComboBox
private JComboBox
private JComboBox
private JComboBox
private JComboBox
private JComboBox
private JPanel
private JLabel
private JLabel
private EditPane
private JMenuBar
private ActionMenu
private ActionMenu
private ActionMenu
private JMenuItem
private JMenuItem
private JMenuItem
private JMenuItem
private JMenuItem
private JMenuItem
private JMenuItem
private JCheckBoxMenuItem
private JMenuItem
private JMenuItem
private JMenuItem
private JMenuItem
private JMenuItem
private JMenuItem
private JCheckBoxMenuItem
private JCheckBoxMenuItem
private JMenu
private ActionMenu
private JPanel
private JPanel
private JPanel
private ZoomableGraphicsPanel
private ZoomableGraphicsPanel
private JPanel
private JPopupMenu
private JMenuItem
private JMenuItem
private JScrollPane
private JScrollPane
private JScrollPane
private JTextField
private JTextField
private JTextField
private JTextField
private static final Logger
private static final int
private final MainFrameModel
private ActionListener
Fields inherited from class javax.swing.JFrame
accessibleContext, rootPane, rootPaneCheckingEnabled
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
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
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
addAboutMenuItemActionListener
(ActionListener actionListener) (package private) void
addAlphaThresholdComboBoxActionListener
(ActionListener actionListener) (package private) void
addAlphaThresholdComboBoxDocumentListener
(DocumentListener documentListener) (package private) void
addClearPopupMenuItemActionListener
(ActionListener actionListener) (package private) void
addCloseMenuItemActionListener
(ActionListener actionListener) (package private) void
addConsoleMouseListener
(MouseListener mouseListener) (package private) void
addConversionSettingsMenuItemActionListener
(ActionListener actionListener) (package private) void
addCopyPopupMenuItemActionListener
(ActionListener actionListener) (package private) void
addEditDefaultDvdPaletteMenuItemActionListener
(ActionListener actionListener) (package private) void
addEditDvdFramePaletteMenuItemActionListener
(ActionListener actionListener) (package private) void
addEditFrameMenuItemActionListener
(ActionListener actionListener) (package private) void
addEditImportedDvdPaletteMenuItemActionListener
(ActionListener actionListener) (package private) void
addFilterComboBoxActionListener
(ActionListener actionListener) (package private) void
addFixInvisibleFramesMenuItemActionListener
(ActionListener actionListener) (package private) void
addHelpMenuItemActionListener
(ActionListener actionListener) (package private) void
addHiMedThresholdComboBoxActionListener
(ActionListener actionListener) (package private) void
addHiMedThresholdComboBoxDocumentListener
(DocumentListener documentListener) (package private) void
addLayoutPaneMouseListener
(MouseListener mouseListener) (package private) void
addLoadMenuItemActionListener
(ActionListener actionListener) (package private) void
addMedLowThresholdComboBoxActionListener
(ActionListener actionListener) (package private) void
addMedLowThresholdComboBoxDocumentListener
(DocumentListener documentListener) (package private) void
addMoveAllMenuItemActionListener
(ActionListener actionListener) (package private) void
addOutputFormatComboBoxActionListener
(ActionListener actionListener) (package private) void
addPaletteComboBoxActionListener
(ActionListener actionListener) (package private) void
addQuitMenuItemActionListener
(ActionListener actionListener) (package private) void
addRecentFilesMenuItemActionListener
(ActionListener actionListener) (package private) void
addResetCropOffsetMenuItemActionListener
(ActionListener actionListener) (package private) void
addSaveMenuItemActionListener
(ActionListener actionListener) (package private) void
addSubNumComboBoxActionListener
(ActionListener actionListener) (package private) void
addSubNumComboBoxDocumentListener
(DocumentListener documentListener) (package private) void
addSwapCrCbMenuItemActionListener
(ActionListener actionListener) (package private) void
addTransferHandler
(TransferHandler transferHandler) (package private) void
addVerboseOutputMenuItemActionListener
(ActionListener actionListener) (package private) void
closeSub()
(package private) void
enableCoreComponents
(boolean state) (package private) void
enableVobsubBits
(boolean b) Enable/disable components dependent only available for VobSubs(package private) void
Enable/disable components dependent only available for VobSubsvoid
(package private) void
exit
(int code) void
(package private) Object
(package private) String
private JTextArea
(package private) String
(package private) int
(package private) Object
(package private) String
private JComboBox
private JComboBox
private JComboBox
private JComboBox
private JComboBox
private JComboBox
private JComboBox
private JPanel
private JMenuBar
private JMenu
private JMenu
private JMenu
private JMenuItem
private JMenuItem
private JMenuItem
private JMenuItem
private JMenuItem
private JMenuItem
private JMenuItem
private JMenuItem
private JMenuItem
private JMenuItem
private JMenuItem
private JMenuItem
private JMenu
private JMenuItem
private JMenuItem
private JMenuItem
private JMenuItem
private JMenu
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPopupMenu
private JMenuItem
private JMenuItem
private JScrollPane
private JScrollPane
private JScrollPane
(package private) Object
(package private) String
(package private) int
(package private) int
(package private) Object
(package private) String
(package private) void
private void
(package private) void
initSubNumComboBox
(int subCount) (package private) boolean
(package private) boolean
(package private) boolean
void
lostOwnership
(Clipboard clipboard, Transferable contents) void
printToConsole
(String message) (package private) void
refreshSrcFrame
(int index) Update all components belonging to the source window(package private) void
refreshTrgFrame
(int index) Update all components belonging to the target window(package private) void
(package private) void
(package private) void
setAlphaThresholdComboBoxSelectedIndex
(int index) (package private) void
setComboBoxOutFormatEnabled
(boolean enable) (package private) void
setConsoleText
(String text) (package private) void
setCopyPopupMenuItemEnabled
(boolean enable) (package private) void
(package private) void
setHiMedThresholdComboBoxSelectedIndex
(int index) (package private) void
setLayoutPaneAspectRatio
(double trgRatio) (package private) void
setLayoutPaneCropOffsetY
(int cropOfsY) (package private) void
setLoadMenuItemEnabled
(boolean enable) private void
(package private) void
(package private) void
setMedLowThresholdComboBoxSelectedIndex
(int index) (package private) void
setQuitMenuItemEnabled
(boolean enable) (package private) void
setSubNumComboBoxBackground
(Color color) (package private) void
setSubNumComboBoxSelectedIndex
(int index) (package private) void
showPopupMenu
(int x, int y) (package private) void
(package private) void
Output a dialog with number of warnings and errorsMethods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
Methods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
-
Field Details
-
logger
-
MENU_SHORTCUT_KEY_MASK
private static final int MENU_SHORTCUT_KEY_MASK -
jContentPane
-
jPanelTop
-
jPanelInfoSource
-
jLabelInfoSource
-
jScrollPaneSource
-
jPanelSource
-
jPanelInfoTarget
-
jLabelInfoTarget
-
jScrollPaneTarget
-
jPanelTarget
-
jPanelBottom
-
jLayoutPane
-
jScrollPaneConsole
-
console
-
jMenuBar
-
jMenuFile
-
jMenuItemLoad
-
jMenuRecentFiles
-
jMenuItemSave
-
jMenuItemClose
-
jMenuItemQuit
-
jMenuEdit
-
jMenuItemEditFrame
-
jMenuItemEditDefaultDvdPalette
-
jMenuItemEditImportedDvdPalette
-
jMenuItemEditDvdFramePalette
-
jMenuItemMoveAll
-
jMenuItemResetCropOffset
-
jMenuSettings
-
jMenuItemConversionSettings
-
jMenuItemSwapCrCb
-
jMenuItemFixInvisibleFrames
-
jMenuItemVerboseOutput
-
jMenuHelp
-
jMenuItemHelp
-
jMenuItemAbout
-
jComboBoxSubNum
-
jComboBoxAlphaThreshold
-
jComboBoxMedLowThreshold
-
jComboBoxHiMedThreshold
-
jComboBoxOutputFormat
-
jComboBoxPalette
-
jComboBoxFilter
-
jTextSubNum
-
jTextAlphaThreshold
-
jTextMedLowThreshold
-
jTextHiMedThreshold
-
jPopupMenu
-
jPopupMenuItemCopy
-
jPopupMenuItemClear
-
recentFilesMenuActionListener
-
model
-
-
Constructor Details
-
MainFrameView
-
-
Method Details
-
initialize
private void initialize() -
setLocation
private void setLocation() -
getjMenuBar
-
getJMenuFile
-
getJMenuItemLoad
-
addLoadMenuItemActionListener
-
setLoadMenuItemEnabled
void setLoadMenuItemEnabled(boolean enable) -
getJMenuItemRecentFiles
-
addRecentFilesMenuItemActionListener
-
updateRecentFilesMenu
void updateRecentFilesMenu() -
getJMenuItemSave
-
addSaveMenuItemActionListener
-
getJMenuItemClose
-
addCloseMenuItemActionListener
-
getJMenuItemQuit
-
addQuitMenuItemActionListener
-
setQuitMenuItemEnabled
void setQuitMenuItemEnabled(boolean enable) -
getJMenuEdit
-
getJMenuItemEditFrame
-
addEditFrameMenuItemActionListener
-
getJMenuItemEditDefaultDvdPalette
-
addEditDefaultDvdPaletteMenuItemActionListener
-
getJMenuItemEditImportedDvdPalette
-
addEditImportedDvdPaletteMenuItemActionListener
-
getJMenuItemEditDvdFramePalette
-
addEditDvdFramePaletteMenuItemActionListener
-
getJMenuItemMoveAll
-
addMoveAllMenuItemActionListener
-
getJMenuItemResetCropOffset
-
addResetCropOffsetMenuItemActionListener
-
getJMenuPrefs
-
getJMenuItemConversionSettings
-
addConversionSettingsMenuItemActionListener
-
getJMenuItemSwapCrCb
-
addSwapCrCbMenuItemActionListener
-
isSwapCrCbSelected
boolean isSwapCrCbSelected() -
getJMenuItemFixInvisibleFrames
-
addFixInvisibleFramesMenuItemActionListener
-
isFixInvisibleFramesSelected
boolean isFixInvisibleFramesSelected() -
getJMenuItemVerboseOutput
-
addVerboseOutputMenuItemActionListener
-
isVerboseOutputSelected
boolean isVerboseOutputSelected() -
getJMenuHelp
-
getJMenuItemHelp
-
addHelpMenuItemActionListener
-
getJMenuItemAbout
-
addAboutMenuItemActionListener
-
getJContentPane
-
getJPanelTop
-
getJPanelInfoSource
-
getJScrollPaneSource
-
getJPanelSource
-
getJPanelInfoTarget
-
getJScrollPaneTarget
-
getJPanelTarget
-
getJPanelBottom
-
getJPanelLayout
-
addLayoutPaneMouseListener
-
setLayoutPaneAspectRatio
void setLayoutPaneAspectRatio(double trgRatio) -
setLayoutPaneCropOffsetY
void setLayoutPaneCropOffsetY(int cropOfsY) -
repaintLayoutPane
void repaintLayoutPane() -
getJScrollPaneConsole
-
getConsole
-
addConsoleMouseListener
-
printToConsole
-
flushConsole
public void flushConsole() -
getConsoleSelectedText
String getConsoleSelectedText() -
setConsoleText
-
getJComboBoxSubNum
-
addSubNumComboBoxActionListener
-
addSubNumComboBoxDocumentListener
-
setSubNumComboBoxBackground
-
getSubNumComboBoxText
String getSubNumComboBoxText() -
initSubNumComboBox
void initSubNumComboBox(int subCount) -
getSubNumComboBoxSelectedItem
Object getSubNumComboBoxSelectedItem() -
setSubNumComboBoxSelectedIndex
void setSubNumComboBoxSelectedIndex(int index) -
getJComboBoxAlphaThreshold
-
addAlphaThresholdComboBoxActionListener
-
addAlphaThresholdComboBoxDocumentListener
-
initAlphaThresholdComboBoxSelectedIndices
void initAlphaThresholdComboBoxSelectedIndices() -
getAlphaThresholdComboBoxSelectedItem
Object getAlphaThresholdComboBoxSelectedItem() -
getAlphaThresholdComboBoxText
String getAlphaThresholdComboBoxText() -
setAlphaThresholdComboBoxSelectedIndex
void setAlphaThresholdComboBoxSelectedIndex(int index) -
setAlphaThresholdComboBoxBackground
-
getJComboBoxHiMedThreshold
-
addHiMedThresholdComboBoxActionListener
-
addHiMedThresholdComboBoxDocumentListener
-
setHiMedThresholdComboBoxBackground
-
getHiMedThresholdComboBoxText
String getHiMedThresholdComboBoxText() -
getHiMedThresholdComboBoxSelectedItem
Object getHiMedThresholdComboBoxSelectedItem() -
setHiMedThresholdComboBoxSelectedIndex
void setHiMedThresholdComboBoxSelectedIndex(int index) -
getJComboBoxMedLowThreshold
-
addMedLowThresholdComboBoxActionListener
-
addMedLowThresholdComboBoxDocumentListener
-
setMedLowThresholdComboBoxBackground
-
getMedLowThresholdComboBoxText
String getMedLowThresholdComboBoxText() -
getMedLowThresholdComboBoxSelectedItem
Object getMedLowThresholdComboBoxSelectedItem() -
setMedLowThresholdComboBoxSelectedIndex
void setMedLowThresholdComboBoxSelectedIndex(int index) -
getJComboBoxOutputFormat
-
addOutputFormatComboBoxActionListener
-
getOutputFormatComboBoxSelectedIndex
int getOutputFormatComboBoxSelectedIndex() -
setComboBoxOutFormatEnabled
void setComboBoxOutFormatEnabled(boolean enable) -
getJComboBoxPalette
-
addPaletteComboBoxActionListener
-
getPaletteComboBoxSelectedIndex
int getPaletteComboBoxSelectedIndex() -
getJComboBoxFilter
-
addFilterComboBoxActionListener
-
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
-
showPopupMenu
void showPopupMenu(int x, int y) -
getJPopupMenuItemCopy
-
addCopyPopupMenuItemActionListener
-
setCopyPopupMenuItemEnabled
void setCopyPopupMenuItemEnabled(boolean enable) -
getJPopupMenuItemClear
-
addClearPopupMenuItemActionListener
-
addTransferHandler
-
lostOwnership
- Specified by:
lostOwnership
in interfaceClipboardOwner
-
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
-