public class MultichannelPlaybackPanel extends AbstractSelectionPanel implements ActionListener, ListSelectionListener
TitledCollapsiblePanel.Orientation
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
(package private) 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) BorderLayout |
borderLayout1 |
(package private) JButton |
btn_autoassign |
(package private) JButton |
btn_findme |
(package private) JToggleButton |
btn_findme_loop |
(package private) JButton |
btn_gen |
(package private) JButton |
btn_load |
(package private) JButton |
btn_save |
(package private) JButton |
btn_start |
protected FindMeLoopThread |
fmlt |
(package private) GridBagLayout |
gridBagLayout1 |
(package private) GridBagLayout |
gridBagLayout2 |
protected GrowingSOM |
gsom |
(package private) JLabel |
jLabel3 |
(package private) JLabel |
jLabel4 |
(package private) JLabel |
jLabel5 |
(package private) JLabel |
jLabel6 |
(package private) JPanel |
jPanel1 |
(package private) JScrollPane |
jScrollPane1 |
(package private) JScrollPane |
jScrollPane2 |
(package private) JScrollPane |
jScrollPane3 |
(package private) JTabbedPane |
jTabbedPane1 |
protected LinkedHashMap<String,PlaybackThread> |
lhmThreads |
(package private) JList |
li_lines |
protected MapPNode |
map |
(package private) JPanel |
pnl_layout_table_gen |
private static long |
serialVersionUID |
protected SOMPane |
somPane |
(package private) LayoutTable |
tb_layout |
(package private) DefaultTableModel |
tbmod_layout |
(package private) JTextPane |
tp_help |
(package private) JTextPane |
tpHint |
(package private) JTextField |
txt_table_x |
(package private) JTextField |
txt_table_y |
absPathVectors, currentSelectionArea, itemListener, listScrollers, markedUnits, playlistmodels, playlists, selections, unitsInPlaylist
SMALL_INSETS, smallerFont, smallFont, state
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
MultichannelPlaybackPanel(CommonSOMViewerStateData state,
SOMPane somPane) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(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 String[] |
createFileArray(String[] asInputs,
String sDatadir)
Adds the data directory (or "fileprefix") to each music file in the given array.
|
private void |
dummyInit() |
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(Object[] selection,
boolean newSelection)
called whenever the selection in the somPane has changed
|
void |
valueChanged(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
BorderLayout borderLayout1
JTabbedPane jTabbedPane1
JPanel jPanel1
GridBagLayout gridBagLayout1
GridBagLayout gridBagLayout2
JList li_lines
JScrollPane jScrollPane1
JToggleButton btn_findme_loop
JButton btn_findme
JLabel jLabel3
JPanel pnl_layout_table_gen
JTextField txt_table_x
JLabel jLabel4
JTextField txt_table_y
JLabel jLabel5
JButton btn_gen
JScrollPane jScrollPane2
JButton btn_autoassign
JButton btn_start
JLabel jLabel6
JScrollPane jScrollPane3
JTextPane tp_help
JButton btn_load
JButton btn_save
JTextPane tpHint
LayoutTable tb_layout
DefaultTableModel tbmod_layout
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 LinkedHashMap<String,PlaybackThread> lhmThreads
protected ActivityGridModel actmod
public MultichannelPlaybackPanel(CommonSOMViewerStateData state, SOMPane somPane)
private void myInit()
boolean confirmNewAssignment()
boolean confirmNewAssignmentAndSpeakerLayout()
protected String[] createFileArray(String[] asInputs, 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(ActionEvent parm1)
actionPerformed
in interface ActionListener
public void unitSelectionChanged(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 Dimension getMinimumSize()
getMinimumSize
in class JComponent
public void valueChanged(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 ListSelectionListener
valueChanged
in class AbstractSelectionPanel
public void setVisible(boolean visible)
setVisible
in class AbstractViewerControl
Component.setVisible(boolean)