|
||||||||||
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
at.tuwien.ifs.commons.gui.controls.TitledCollapsiblePanel
at.tuwien.ifs.somtoolbox.apps.viewer.controls.AbstractViewerControl
at.tuwien.ifs.somtoolbox.apps.viewer.controls.AbstractSelectionPanel
at.tuwien.ifs.somtoolbox.apps.viewer.controls.MultichannelPlaybackPanel
public class MultichannelPlaybackPanel
Nested Class Summary |
---|
Nested classes/interfaces inherited from class at.tuwien.ifs.commons.gui.controls.TitledCollapsiblePanel |
---|
TitledCollapsiblePanel.Orientation |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
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 | |
---|---|
(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
|
Fields inherited from class at.tuwien.ifs.somtoolbox.apps.viewer.controls.AbstractSelectionPanel |
---|
absPathVectors, currentSelectionArea, itemListener, listScrollers, markedUnits, playlistmodels, playlists, selections, unitsInPlaylist |
Fields inherited from class at.tuwien.ifs.somtoolbox.apps.viewer.controls.AbstractViewerControl |
---|
SMALL_INSETS, smallerFont, smallFont, state |
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.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 | |
---|---|
MultichannelPlaybackPanel(CommonSOMViewerStateData state,
SOMPane somPane)
|
Method Summary | |
---|---|
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. |
Methods inherited from class at.tuwien.ifs.somtoolbox.apps.viewer.controls.AbstractSelectionPanel |
---|
addListScrollPanels, addSingleListScrollPanel, addToList, addToList, clearList, getItemListener, getSelectedSongs, getSelectedSongs, markUnit, setItemListener, unmarkUnits |
Methods inherited from class at.tuwien.ifs.somtoolbox.apps.viewer.controls.AbstractViewerControl |
---|
isFullFunctional, setIcon, setSelected |
Methods inherited from class at.tuwien.ifs.commons.gui.controls.TitledCollapsiblePanel |
---|
add, add, add, add, add, getContentBackground, getContentBorder, getContentPane, getDecoratorPadding, getHorizontalTitleAlignment, getHorizontalTitleTextPosition, getIcon, getIconTitleGap, getLayout, getOrientation, getPreferredSize, getShowTitleDecoration, getTitle, getTitleBackground, getTitleBorder, isAnimated, isCollapsed, pack, remove, remove, removeAll, setAnimated, setCollapsed, setContentBackground, setContentBorder, setContentPane, setDecoratorPadding, setHorizontalTitleAlignment, setHorizontalTitleTextPosition, setIcon, setIconTitleGap, setLayout, setOrientation, setShowTitleDecoration, setTitle, setTitleBackground, setTitleBorder |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public MultichannelPlaybackPanel(CommonSOMViewerStateData state, SOMPane somPane)
Method Detail |
---|
private void dummyInit() throws Exception
Exception
private void jbInit() throws Exception
Exception
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |