public class PlaySOMPanel extends AbstractSelectionPanel implements java.awt.event.ActionListener
TitledCollapsiblePanel.Orientation
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
private javax.swing.JButton |
btClearHist |
private javax.swing.JButton |
btDelSelected |
private javax.swing.JButton |
btEvalSOM |
private javax.swing.JButton |
btExportPlaylist |
private javax.swing.JButton |
btPlayAll |
private javax.swing.JButton |
btPlaySelected |
private javax.swing.JButton |
btRhythmPatternVis |
private javax.swing.JCheckBox |
chkCountHist |
private java.lang.String |
CLEAR_COUNT_HIST |
private java.lang.String |
DELETE_SELECTED |
private java.lang.String |
EVAL_SOM |
private AbstractViewerControl |
evalPanel |
private java.lang.String |
EXPORT_PLAYLIST |
private javax.swing.JLabel |
lblSearch |
java.lang.String |
PLAY_ALL |
private java.lang.String |
PLAY_SELECTED |
private javax.swing.JRadioButton |
rbFlat |
private javax.swing.JRadioButton |
rbSmoothed |
private java.lang.String |
SEARCH |
private static long |
serialVersionUID |
private java.lang.String |
SHOW_COUNT_HIST |
private java.lang.String |
SHOW_RHYTHM_PATTERN |
private javax.swing.JTextField |
txSearchField |
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 |
---|
PlaySOMPanel(CommonSOMViewerStateData state) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
private boolean |
compareOrderIndex(java.lang.String string,
int ind_greater,
int ind_smaller)
compare "ordering index" of a filename if it is smaller or greater than (a) certain value(s) ordering index is
assumed to be a number between two points before the filename extension e.g.
|
private void |
enableButtons(boolean bool) |
java.awt.Dimension |
getMinimumSize() |
private java.awt.Point |
getPosOfNextInt(java.lang.String string,
int startpos)
parses a String for next integer, skipping spaces
|
protected void |
initGUIElements()
creates the GUI elements of the Panel (a few JButtons and the JList)
|
private void |
searchFilenames(java.lang.String query,
boolean createHistogram)
traverses all units of the map and searches for the query string as substring of the document filenames updates
the playlist with the filenames found and marks the according units on the map
|
void |
showRhythmPattern(double[] vector,
java.lang.String dispname)
show RhythmPattern(s) of weight vector(s) of currently selected unit(s)
|
void |
showRhythmPattern(java.lang.String[] vecNames)
show RhythmPattern(s) of selected vector(s)
|
void |
unitSelectionChanged(java.lang.Object[] selection,
boolean newSelection)
called whenever the selection has changed, the new selection is added to the JList and to the list of the file's
absolute pathnames
|
addListScrollPanels, addSingleListScrollPanel, addToList, addToList, clearList, getItemListener, getSelectedSongs, getSelectedSongs, markUnit, setItemListener, unmarkUnits, valueChanged
isFullFunctional, setIcon, setSelected, setVisible
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
private javax.swing.JButton btPlaySelected
private javax.swing.JButton btPlayAll
private javax.swing.JButton btDelSelected
private javax.swing.JButton btExportPlaylist
private javax.swing.JButton btRhythmPatternVis
private javax.swing.JButton btEvalSOM
private javax.swing.JRadioButton rbFlat
private javax.swing.JRadioButton rbSmoothed
private javax.swing.JButton btClearHist
private javax.swing.JTextField txSearchField
private javax.swing.JLabel lblSearch
private javax.swing.JCheckBox chkCountHist
private final java.lang.String PLAY_SELECTED
public final java.lang.String PLAY_ALL
private final java.lang.String DELETE_SELECTED
private final java.lang.String EXPORT_PLAYLIST
private final java.lang.String SEARCH
private final java.lang.String SHOW_RHYTHM_PATTERN
private final java.lang.String SHOW_COUNT_HIST
private final java.lang.String CLEAR_COUNT_HIST
private final java.lang.String EVAL_SOM
private AbstractViewerControl evalPanel
public PlaySOMPanel(CommonSOMViewerStateData state)
protected void initGUIElements()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void unitSelectionChanged(java.lang.Object[] selection, boolean newSelection)
unitSelectionChanged
in interface UnitSelectionListener
unitSelectionChanged
in class AbstractSelectionPanel
private void enableButtons(boolean bool)
private java.awt.Point getPosOfNextInt(java.lang.String string, int startpos)
string
- to parsestartpos
- starting position within string for searchprivate boolean compareOrderIndex(java.lang.String string, int ind_greater, int ind_smaller)
string
- filename string containing an ordering index (e.g. mypieceofmusic.0345.mp3)ind_greater
- integer, ordering index must be greater in comparison (if set to -1, ind_greater will be
ignored)ind_smaller
- integer, ordering index must be smaller in comparison (if set to -1, ind_smaller will be
ignored)private void searchFilenames(java.lang.String query, boolean createHistogram)
query
- the string for querying the filenamescreateHistogram
- if set to true, the results is shown in an Islands of Music / SDH like manner if set to
false, the units containing the items found are marked with a single colorpublic void showRhythmPattern(double[] vector, java.lang.String dispname)
public void showRhythmPattern(java.lang.String[] vecNames)
public java.awt.Dimension getMinimumSize()
getMinimumSize
in class javax.swing.JComponent