public class PlaySOMPanel extends AbstractSelectionPanel implements ActionListener
TitledCollapsiblePanel.Orientation
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
private JButton |
btClearHist |
private JButton |
btDelSelected |
private JButton |
btEvalSOM |
private JButton |
btExportPlaylist |
private JButton |
btPlayAll |
private JButton |
btPlaySelected |
private JButton |
btRhythmPatternVis |
private JCheckBox |
chkCountHist |
private String |
CLEAR_COUNT_HIST |
private String |
DELETE_SELECTED |
private String |
EVAL_SOM |
private AbstractViewerControl |
evalPanel |
private String |
EXPORT_PLAYLIST |
private JLabel |
lblSearch |
String |
PLAY_ALL |
private String |
PLAY_SELECTED |
private JRadioButton |
rbFlat |
private JRadioButton |
rbSmoothed |
private String |
SEARCH |
private static long |
serialVersionUID |
private String |
SHOW_COUNT_HIST |
private String |
SHOW_RHYTHM_PATTERN |
private JTextField |
txSearchField |
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 |
---|
PlaySOMPanel(CommonSOMViewerStateData state) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
private boolean |
compareOrderIndex(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) |
Dimension |
getMinimumSize() |
private Point |
getPosOfNextInt(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(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,
String dispname)
show RhythmPattern(s) of weight vector(s) of currently selected unit(s)
|
void |
showRhythmPattern(String[] vecNames)
show RhythmPattern(s) of selected vector(s)
|
void |
unitSelectionChanged(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 JButton btPlaySelected
private JButton btPlayAll
private JButton btDelSelected
private JButton btExportPlaylist
private JButton btRhythmPatternVis
private JButton btEvalSOM
private JRadioButton rbFlat
private JRadioButton rbSmoothed
private JButton btClearHist
private JTextField txSearchField
private JLabel lblSearch
private JCheckBox chkCountHist
private final String PLAY_SELECTED
public final String PLAY_ALL
private final String DELETE_SELECTED
private final String EXPORT_PLAYLIST
private final String SEARCH
private final String SHOW_RHYTHM_PATTERN
private final String SHOW_COUNT_HIST
private final String CLEAR_COUNT_HIST
private final String EVAL_SOM
private AbstractViewerControl evalPanel
public PlaySOMPanel(CommonSOMViewerStateData state)
protected void initGUIElements()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void unitSelectionChanged(Object[] selection, boolean newSelection)
unitSelectionChanged
in interface UnitSelectionListener
unitSelectionChanged
in class AbstractSelectionPanel
private void enableButtons(boolean bool)
private Point getPosOfNextInt(String string, int startpos)
string
- to parsestartpos
- starting position within string for searchprivate boolean compareOrderIndex(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(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, String dispname)
public void showRhythmPattern(String[] vecNames)
public Dimension getMinimumSize()
getMinimumSize
in class JComponent