|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
net.luniks.jtvd.GrabPanel
JPanel containing all the components and methods that make up the user interface for grabbing from the TV Card.
| Nested Class Summary |
| 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.JComboBox |
aspectComboBox
|
private javax.swing.JLabel |
aspectLabel
|
private javax.swing.JComboBox |
audioBitrateComboBox
|
private javax.swing.JRadioButton |
audioCBRRadioButton
|
private javax.swing.JComboBox |
audioComboBox
|
private javax.swing.JLabel |
audioLabel
|
private javax.swing.JPanel |
audioPanel
|
private javax.swing.JComboBox |
audioQualityComboBox
|
private javax.swing.JRadioButton |
audioVBRRadioButton
|
private javax.swing.JLabel |
brightnessLabel
|
private javax.swing.JSpinner |
brightnessSpinner
|
private javax.swing.JPanel |
buttonPanel
|
private boolean |
capLow
|
private javax.swing.JComboBox |
channelComboBox
|
private javax.swing.JLabel |
channelLabel
|
private javax.swing.JLabel |
contrastLabel
|
private javax.swing.JSpinner |
contrastSpinner
|
private int |
duration
|
private javax.swing.JLabel |
fineLabel
|
private javax.swing.JSpinner |
fineSpinner
|
private float |
freq
|
private javax.swing.JTextField |
freqField
|
private java.text.DecimalFormat |
freqFormat
|
private javax.swing.JLabel |
freqLabel
|
private FreqTables.FreqTable |
freqTable
|
private javax.swing.JTextField |
freqTableField
|
private javax.swing.JLabel |
freqTableLabel
|
private Grabber |
grabber
|
static java.lang.String |
GRABBER
|
private javax.swing.JComboBox |
grabberComboBox
|
private javax.swing.JLabel |
grabberLabel
|
private javax.swing.JButton |
grabButton
|
private javax.swing.ImageIcon |
grabIcon
|
private javax.swing.JLabel |
hueLabel
|
private javax.swing.JSpinner |
hueSpinner
|
private javax.swing.ImageIcon |
infoIcon
|
private boolean |
initCompleted
|
private javax.swing.JComboBox |
inputComboBox
|
private javax.swing.JLabel |
inputLabel
|
private java.awt.Insets |
insets
|
private javax.swing.JTextArea |
jmfErrorText
|
private JTVDFrame |
mainFrame
|
private javax.swing.JCheckBox |
noiseFilterCheckBox
|
static java.lang.String |
NONAME_NAME
|
private javax.swing.JComboBox |
normComboBox
|
private javax.swing.JLabel |
normLabel
|
private javax.swing.ImageIcon |
pauseIcon
|
private javax.swing.JPanel |
picturePanel
|
private javax.swing.JPanel |
playerPanel
|
private javax.swing.ImageIcon |
recordIcon
|
private javax.swing.JComboBox |
resolutionComboBox
|
private javax.swing.JLabel |
resolutionLabel
|
private javax.swing.JLabel |
saturationLabel
|
private javax.swing.JSpinner |
saturationSpinner
|
private javax.swing.JButton |
scheduleButton
|
private javax.swing.ImageIcon |
scheduleIcon
|
private boolean |
schedulerActive
|
private Task[] |
schedulerTasks
|
private boolean |
selectFrequency
|
private javax.swing.JPanel |
sourcePanel
|
private javax.swing.JComboBox |
stationComboBox
|
private javax.swing.JLabel |
stationLabel
|
private javax.swing.JPanel |
stationPanel
|
private javax.swing.JButton |
stopButton
|
private javax.swing.ImageIcon |
stopIcon
|
private java.lang.Object |
taskSynch
|
private java.util.Timer |
timer
|
private javax.swing.JTextField |
titleField
|
private javax.swing.JLabel |
titleLabel
|
private javax.swing.JPanel |
titlePanel
|
private javax.swing.JLabel |
tvScreenLabel
|
private javax.swing.JToggleButton |
tvScreenToggleButton
|
static java.lang.String |
UNKNOWN_CHANNEL
|
private javax.swing.JCheckBox |
useAspectCheckBox
|
private javax.swing.JCheckBox |
useFMP4CheckBox
|
private javax.swing.JCheckBox |
useODMLCheckBox
|
private boolean |
v4l2Available
|
private V4L2Ctrl |
v4l2Ctrl
|
private V4L2Info |
v4l2Info
|
private V4LCtrl |
v4lCtrl
|
private V4LInfo |
v4lInfo
|
private javax.swing.JTextField |
videoBitrateField
|
private javax.swing.JRadioButton |
videoCBRRadioButton
|
private javax.swing.JComboBox |
videoCodecComboBox
|
private javax.swing.JLabel |
videoCodecLabel
|
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 |
viewButton
|
private javax.swing.ImageIcon |
viewIcon
|
| 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 | |
GrabPanel(JTVDFrame frame)
Constructs the panel and calls some methods to set up the interface. |
|
| Method Summary | |
(package private) void |
cancelTimer()
|
(package private) void |
closeJMFPlayer()
Turns off the TV screen. |
private void |
cycleStations(int i)
Cycles through the stations in the direction specified by the argument |
(package private) Station |
getStation()
Returns the currently selected station |
(package private) java.util.List |
getStations()
Returns the stations (in the combobox) |
private void |
grab()
Method to start the grabbing process. |
private void |
grabAction()
Called, when the user presses "Grab". |
(package private) java.io.File |
grabbingFile()
Returns the file that is just being grabbed to, null if no grabbing is done. |
private void |
initJMFPlayer()
Sets up a PlayerPanel as the TV screen. |
(package private) void |
initJV4LInfo()
Gets information about the video device and populates the relevant components like the combobox listing the available inputs |
(package private) boolean |
isGrabbing()
Returns true, if a grabbing process is running, false otherwise |
(package private) boolean |
isSchedulerActive()
|
(package private) void |
muteAudio(boolean mute)
Mutes/unmutes the audio depending on the argument |
private void |
populate()
Instanciates the Grabber and populates some components using values from it, for example the comboboxes. |
private void |
scheduleAction()
|
private void |
selectAudio()
Selects the audiomode of the video device according to the selected value of the "Audio" combobox |
private void |
selectChannel()
Resets the "Fine" spinner to 0 and calls selectFrequency() to select the frequency of the selected channel |
private void |
selectFine()
Selects the frequency of the selected channel shifted by the current fine value |
(package private) void |
selectFrequency()
Selects the frequency of the currently selected station. |
(package private) void |
selectFrequency(FreqTables.FreqTable freqTable,
java.lang.String channel,
int fine)
Selects the frequency. |
private void |
selectInput()
Selects the input of the video device according to the selected value of the "Input" combobox |
private void |
selectNorm()
Selects the standard of the video device according to the selected value of the "Norm" combobox |
private void |
selectStation()
Sets the "Channel" combobox and the "Fine" spinner to the values of the selected station |
private void |
selectV4L()
This is run once after startup to set the settings of the video device accordingly to the selection of the components |
private void |
setAudios()
Populates the "Audio" combobox with the audiomodes supported by the tuner at the currently selected input |
void |
setComponents()
Sets all components in this tab to values taken from the global properties |
private void |
setComponentsEnabled(boolean enabled)
Disables or enables all components that do things that should not be done during grabbing, like selecting another input or station. |
(package private) void |
setFreqTable(FreqTables.FreqTable freqTable)
Sets the freqTable instance variable and the textfield accordingly, and populates the channels combobox with the channels of the frequency table given as argument |
private void |
setGrabber(Grabber grabber)
Sets the type of grabber to be used, the "Backend" the user has chosen |
private void |
setInputs()
Populates the "Input" combobox with the available inputs of the video device |
private void |
setNorms()
Populates the "Norm" combobox with the standards supported by the currently selected input |
void |
setProperties()
Puts the current settings of all components in this tab in the global properties |
(package private) void |
setStation(Station station)
Sets the currently selected station to the one given as argument |
(package private) void |
setStations()
Populates the stations combobox with the stations returned by Environment.getStations(), which are the stations
read from the configfile and set/modified by the preferences
dialog. |
private void |
setTimer()
|
private void |
setup()
Sets up the grabber using values from the components, meaning the values the user has chosen. |
(package private) void |
startJMFPlayer()
Resumes the TV screen and sets the "TV Screen" button to selected. |
private void |
stop()
Terminates the process |
private void |
stopAction()
Called, when the user presses "Stop". |
(package private) void |
stopJMFPlayer()
Pauses the TV screen and set the "TV Screen" button to deselected. |
private void |
tvScreenAction(boolean on)
Resumes or pauses the TV screen |
private void |
viewAction()
Called, when the user presses "View". |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| 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 |
private JTVDFrame mainFrame
public static final java.lang.String GRABBER
public static final java.lang.String NONAME_NAME
public static final java.lang.String UNKNOWN_CHANNEL
private boolean initCompleted
private boolean selectFrequency
private FreqTables.FreqTable freqTable
private float freq
private V4LInfo v4lInfo
private V4LCtrl v4lCtrl
private V4L2Info v4l2Info
private V4L2Ctrl v4l2Ctrl
private boolean capLow
private boolean v4l2Available
private Grabber grabber
private java.text.DecimalFormat freqFormat
private javax.swing.JPanel titlePanel
private javax.swing.JPanel sourcePanel
private javax.swing.JPanel stationPanel
private javax.swing.JPanel playerPanel
private javax.swing.JPanel picturePanel
private javax.swing.JPanel videoPanel
private javax.swing.JPanel audioPanel
private javax.swing.JPanel buttonPanel
private javax.swing.JLabel titleLabel
private javax.swing.JTextField titleField
private javax.swing.JLabel grabberLabel
private javax.swing.JComboBox grabberComboBox
private javax.swing.JLabel inputLabel
private javax.swing.JComboBox inputComboBox
private javax.swing.JLabel normLabel
private javax.swing.JComboBox normComboBox
private javax.swing.JLabel resolutionLabel
private javax.swing.JComboBox resolutionComboBox
private javax.swing.JLabel audioLabel
private javax.swing.JComboBox audioComboBox
private javax.swing.JLabel stationLabel
private javax.swing.JComboBox stationComboBox
private javax.swing.JLabel channelLabel
private javax.swing.JComboBox channelComboBox
private javax.swing.JLabel freqLabel
private javax.swing.JTextField freqField
private javax.swing.JLabel fineLabel
private javax.swing.JSpinner fineSpinner
private javax.swing.JLabel freqTableLabel
private javax.swing.JTextField freqTableField
private javax.swing.JLabel tvScreenLabel
private javax.swing.JToggleButton tvScreenToggleButton
private javax.swing.JTextArea jmfErrorText
private javax.swing.JLabel brightnessLabel
private javax.swing.JLabel contrastLabel
private javax.swing.JLabel hueLabel
private javax.swing.JLabel saturationLabel
private javax.swing.JSpinner brightnessSpinner
private javax.swing.JSpinner contrastSpinner
private javax.swing.JSpinner hueSpinner
private javax.swing.JSpinner saturationSpinner
private javax.swing.JLabel videoCodecLabel
private javax.swing.JComboBox videoCodecComboBox
private javax.swing.JLabel aspectLabel
private javax.swing.JComboBox aspectComboBox
private javax.swing.JCheckBox useAspectCheckBox
private javax.swing.JCheckBox noiseFilterCheckBox
private javax.swing.JRadioButton videoCBRRadioButton
private javax.swing.JTextField videoBitrateField
private javax.swing.JRadioButton videoVBRRadioButton
private javax.swing.JComboBox videoQualityComboBox
private javax.swing.JCheckBox useODMLCheckBox
private javax.swing.JCheckBox useFMP4CheckBox
private javax.swing.JCheckBox videoMinBitrateCheckBox
private javax.swing.JTextField videoMinBitrateField
private javax.swing.JCheckBox videoMaxBitrateCheckBox
private javax.swing.JTextField videoMaxBitrateField
private javax.swing.JRadioButton audioCBRRadioButton
private javax.swing.JComboBox audioBitrateComboBox
private javax.swing.JRadioButton audioVBRRadioButton
private javax.swing.JComboBox audioQualityComboBox
private javax.swing.JButton scheduleButton
private javax.swing.JButton grabButton
private javax.swing.JButton stopButton
private javax.swing.JButton viewButton
private javax.swing.ImageIcon grabIcon
private javax.swing.ImageIcon stopIcon
private javax.swing.ImageIcon viewIcon
private javax.swing.ImageIcon pauseIcon
private javax.swing.ImageIcon infoIcon
private javax.swing.ImageIcon scheduleIcon
private javax.swing.ImageIcon recordIcon
private boolean schedulerActive
private Task[] schedulerTasks
private java.util.Timer timer
private java.lang.Object taskSynch
private int duration
private java.awt.Insets insets
| Constructor Detail |
public GrabPanel(JTVDFrame frame)
frame - the JFrame of this application, used to be able
to refer to the other panels in this application.| Method Detail |
private void initJMFPlayer()
void startJMFPlayer()
void stopJMFPlayer()
void closeJMFPlayer()
private void tvScreenAction(boolean on)
on - true to resume, false to pausevoid muteAudio(boolean mute)
mute - true to mute, false to unmuteprivate void setComponentsEnabled(boolean enabled)
enabled - true to enable, false to disableprivate void populate()
private void setGrabber(Grabber grabber)
grabber - Grabber to be usedpublic void setComponents()
public void setProperties()
void initJV4LInfo()
private void setInputs()
private void setNorms()
private void setAudios()
void setFreqTable(FreqTables.FreqTable freqTable)
freqTable - the new frequency table to be usedvoid setStations()
Environment.getStations(), which are the stations
read from the configfile and set/modified by the preferences
dialog.
private void selectV4L()
private void selectInput()
private void selectNorm()
private void selectAudio()
private void selectStation()
private void selectChannel()
private void selectFine()
private void cycleStations(int i)
i - 1 for the next, -1 for the previous stationStation getStation()
java.util.List getStations()
void setStation(Station station)
station - the station to be setvoid selectFrequency()
void selectFrequency(FreqTables.FreqTable freqTable,
java.lang.String channel,
int fine)
freqTable - the frequency table to be usedchannel - the channel whose frequency should be setfine - the fine value in units of 62.5 (k)Hzprivate void setup()
private void scheduleAction()
private void setTimer()
void cancelTimer()
boolean isSchedulerActive()
private void grabAction()
private void stopAction()
private void viewAction()
private void grab()
private void stop()
boolean isGrabbing()
java.io.File grabbingFile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||