Package Spectrogram
Class SpectrogramOverlayDataManager
java.lang.Object
PamView.paneloverlay.OverlayDataManager
Spectrogram.SpectrogramOverlayDataManager
- All Implemented Interfaces:
OverlayDataObserver
-
Constructor Summary
ConstructorsConstructorDescriptionSpectrogramOverlayDataManager
(SpectrogramDisplay spectrogramDisplay, Spectrogram.SpectrogramDisplay.SpectrogramPanel spectrogramPanel) -
Method Summary
Modifier and TypeMethodDescriptionint
addSelectionMenuItems
(JComponent menu, Window awtWindow, boolean sortAlphabetical, boolean allowScores, boolean includeSymbolManagement) Add all items associated with the list to agetOverlayInfo
(PamDataBlock dataBlock) Get the OverlayDataInfo associated with these items - it's possible that these will have been extended to contain additional information so don't handle them too directly in the abstract class.protected GeneralProjector
void
selectionChanged
(PamDataBlock dataBlock, boolean selected) Called whenever a checkbox in a menuitem created by an OverlayDataManager is selected.Methods inherited from class PamView.paneloverlay.OverlayDataManager
getParameterTypes, getParameterUnits, getSwingPanel, listDataBlocks
-
Constructor Details
-
SpectrogramOverlayDataManager
public SpectrogramOverlayDataManager(SpectrogramDisplay spectrogramDisplay, Spectrogram.SpectrogramDisplay.SpectrogramPanel spectrogramPanel)
-
-
Method Details
-
selectionChanged
Description copied from interface:OverlayDataObserver
Called whenever a checkbox in a menuitem created by an OverlayDataManager is selected.- Parameters:
dataBlock
- associated datablock.selected
- selection state.
-
getDataSelectorName
- Specified by:
getDataSelectorName
in classOverlayDataManager
- Returns:
- a String name for a dataselector associated with this. this will generally be the name of an associated PamControlledUnit.
-
getOverlayInfo
Description copied from class:OverlayDataManager
Get the OverlayDataInfo associated with these items - it's possible that these will have been extended to contain additional information so don't handle them too directly in the abstract class. .- Specified by:
getOverlayInfo
in classOverlayDataManager
- Parameters:
dataBlock
- associated datablock.- Returns:
- an OverlayDataInfo - must not be null, so create one if needed.
-
getProjector
- Overrides:
getProjector
in classOverlayDataManager
-
addSelectionMenuItems
public int addSelectionMenuItems(JComponent menu, Window awtWindow, boolean sortAlphabetical, boolean allowScores, boolean includeSymbolManagement) Description copied from class:OverlayDataManager
Add all items associated with the list to a- Overrides:
addSelectionMenuItems
in classOverlayDataManager
- Parameters:
menu
-- Returns:
-