public class MultichannelPlaybackPanel extends AbstractSelectionPanel implements java.awt.event.ActionListener, javax.swing.event.ListSelectionListener
TitledCollapsiblePanel.Orientation
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Vector[][] |
aavGPNs
Stores the assignments for each cell of the layout table.
|
protected ActivityGridModel |
actmod |
protected TPlaybackThreadDataRecord[] |
aPtdata
Is created and filled when parsing layout table
|
(package private) boolean |
bAssignmentChanged |
private boolean |
bIgnoreNextSelectionChange
If true, changes of the selection in the SOMPane will be ignored.
|
(package private) java.awt.BorderLayout |
borderLayout1 |
(package private) javax.swing.JButton |
btn_autoassign |
(package private) javax.swing.JButton |
btn_findme |
(package private) javax.swing.JToggleButton |
btn_findme_loop |
(package private) javax.swing.JButton |
btn_gen |
(package private) javax.swing.JButton |
btn_load |
(package private) javax.swing.JButton |
btn_save |
(package private) javax.swing.JButton |
btn_start |
protected FindMeLoopThread |
fmlt |
(package private) java.awt.GridBagLayout |
gridBagLayout1 |
(package private) java.awt.GridBagLayout |
gridBagLayout2 |
protected GrowingSOM |
gsom |
(package private) javax.swing.JLabel |
jLabel3 |
(package private) javax.swing.JLabel |
jLabel4 |
(package private) javax.swing.JLabel |
jLabel5 |
(package private) javax.swing.JLabel |
jLabel6 |
(package private) javax.swing.JPanel |
jPanel1 |
(package private) javax.swing.JScrollPane |
jScrollPane1 |
(package private) javax.swing.JScrollPane |
jScrollPane2 |
(package private) javax.swing.JScrollPane |
jScrollPane3 |
(package private) javax.swing.JTabbedPane |
jTabbedPane1 |
protected java.util.LinkedHashMap<java.lang.String,PlaybackThread> |
lhmThreads |
(package private) javax.swing.JList |
li_lines |
protected MapPNode |
map |
(package private) javax.swing.JPanel |
pnl_layout_table_gen |
private static long |
serialVersionUID |
protected SOMPane |
somPane |
(package private) LayoutTable |
tb_layout |
(package private) javax.swing.table.DefaultTableModel |
tbmod_layout |
(package private) javax.swing.JTextPane |
tp_help |
(package private) javax.swing.JTextPane |
tpHint |
(package private) javax.swing.JTextField |
txt_table_x |
(package private) javax.swing.JTextField |
txt_table_y |
absPathVectors, currentSelectionArea, itemListener, listScrollers, markedUnits, playlistmodels, playlists, selections, unitsInPlaylist
SMALL_INSETS, smallerFont, smallFont, state
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
MultichannelPlaybackPanel(CommonSOMViewerStateData state,
SOMPane somPane) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent parm1) |
(package private) boolean |
confirmNewAssignment()
Let the user confirm that the current assignment will be lost if he/she continues
|
(package private) boolean |
confirmNewAssignmentAndSpeakerLayout()
Let the user confirm that the current assignment AND SPEAKER LAYOUT will be lost if he/she continues
|
protected java.lang.String[] |
createFileArray(java.lang.String[] asInputs,
java.lang.String sDatadir)
Adds the data directory (or "fileprefix") to each music file in the given array.
|
private void |
dummyInit() |
java.awt.Dimension |
getMinimumSize() |
(package private) boolean |
isValidOrConfirmed()
Parses the data in layout table and constructs the array used to create the
PlaybackThread s |
private void |
jbInit() |
private void |
myInit()
"handwritten" Swing related init-stuff, in order not to interfere with JBuilder's automatically generated code
|
void |
setToolTipsForLayoutTable()
Iterates through cells of layout table and constructs an array with strings for those cells, that have been
assigned.
|
void |
setVisible(boolean visible)
We print relevant command line parameters if this panel is shown
|
void |
unitSelectionChanged(java.lang.Object[] selection,
boolean newSelection)
called whenever the selection in the somPane has changed
|
void |
valueChanged(javax.swing.event.ListSelectionEvent e)
Is called if the selection of
tb_layout changes. |
addListScrollPanels, addSingleListScrollPanel, addToList, addToList, clearList, getItemListener, getSelectedSongs, getSelectedSongs, markUnit, setItemListener, unmarkUnits
isFullFunctional, setIcon, setSelected
add, add, add, add, add, getContentBackground, getContentBorder, getContentPane, getDecoratorPadding, getHorizontalTitleAlignment, getHorizontalTitleTextPosition, getIcon, getIconTitleGap, getLayout, getOrientation, getPreferredSize, getShowTitleDecoration, getTitle, getTitleBackground, getTitleBorder, isAnimated, isCollapsed, remove, remove, removeAll, setAnimated, setCollapsed, setContentBackground, setContentBorder, setContentPane, setDecoratorPadding, setHorizontalTitleAlignment, setHorizontalTitleTextPosition, setIcon, setIconTitleGap, setLayout, setOrientation, setShowTitleDecoration, setTitle, setTitleBackground, setTitleBorder
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validate, validateTree
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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
private static final long serialVersionUID
java.awt.BorderLayout borderLayout1
javax.swing.JTabbedPane jTabbedPane1
javax.swing.JPanel jPanel1
java.awt.GridBagLayout gridBagLayout1
java.awt.GridBagLayout gridBagLayout2
javax.swing.JList li_lines
javax.swing.JScrollPane jScrollPane1
javax.swing.JToggleButton btn_findme_loop
javax.swing.JButton btn_findme
javax.swing.JLabel jLabel3
javax.swing.JPanel pnl_layout_table_gen
javax.swing.JTextField txt_table_x
javax.swing.JLabel jLabel4
javax.swing.JTextField txt_table_y
javax.swing.JLabel jLabel5
javax.swing.JButton btn_gen
javax.swing.JScrollPane jScrollPane2
javax.swing.JButton btn_autoassign
javax.swing.JButton btn_start
javax.swing.JLabel jLabel6
javax.swing.JScrollPane jScrollPane3
javax.swing.JTextPane tp_help
javax.swing.JButton btn_load
javax.swing.JButton btn_save
javax.swing.JTextPane tpHint
LayoutTable tb_layout
javax.swing.table.DefaultTableModel tbmod_layout
java.util.Vector[][] aavGPNs
The vector contains GeneralUnitPNode
s
boolean bAssignmentChanged
protected SOMPane somPane
protected MapPNode map
protected GrowingSOM gsom
protected FindMeLoopThread fmlt
private boolean bIgnoreNextSelectionChange
Used if selection is programmatically removed (because anotehr cell in layout table is being selected; then the assigment should not be changed.
protected TPlaybackThreadDataRecord[] aPtdata
protected java.util.LinkedHashMap<java.lang.String,PlaybackThread> lhmThreads
protected ActivityGridModel actmod
public MultichannelPlaybackPanel(CommonSOMViewerStateData state, SOMPane somPane)
private void dummyInit() throws java.lang.Exception
java.lang.Exception
private void jbInit() throws java.lang.Exception
java.lang.Exception
private void myInit()
boolean confirmNewAssignment()
boolean confirmNewAssignmentAndSpeakerLayout()
protected java.lang.String[] createFileArray(java.lang.String[] asInputs, java.lang.String sDatadir)
Both asInputs
and sDatadir
may be null.
asInputs
is
nullboolean isValidOrConfirmed()
Parses the data in layout table and constructs the array used to create the PlaybackThread
s
Checks if the data is valid.
If not valid, asks the user for confirmation.
public void actionPerformed(java.awt.event.ActionEvent parm1)
actionPerformed
in interface java.awt.event.ActionListener
public void unitSelectionChanged(java.lang.Object[] selection, boolean newSelection)
unitSelectionChanged
in interface UnitSelectionListener
unitSelectionChanged
in class AbstractSelectionPanel
public void setToolTipsForLayoutTable()
Unassigned cells' strings remain null
Finally the array is given to the layout table.
public java.awt.Dimension getMinimumSize()
getMinimumSize
in class javax.swing.JComponent
public void valueChanged(javax.swing.event.ListSelectionEvent e)
tb_layout
changes. Since it is not possible to determine the table
from the event's source, tb_layout
is hardcoded.
The method marks all units on the mapPane
who are assigned to at least one of the selected cells of
tb_layout
valueChanged
in interface javax.swing.event.ListSelectionListener
valueChanged
in class AbstractSelectionPanel
public void setVisible(boolean visible)
setVisible
in class AbstractViewerControl
Component.setVisible(boolean)