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 TypeMethodDescriptionintaddSelectionMenuItems(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 GeneralProjectorvoidselectionChanged(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:OverlayDataObserverCalled whenever a checkbox in a menuitem created by an OverlayDataManager is selected.- Parameters:
dataBlock- associated datablock.selected- selection state.
-
getDataSelectorName
- Specified by:
getDataSelectorNamein 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:OverlayDataManagerGet 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:
getOverlayInfoin classOverlayDataManager- Parameters:
dataBlock- associated datablock.- Returns:
- an OverlayDataInfo - must not be null, so create one if needed.
-
getProjector
- Overrides:
getProjectorin classOverlayDataManager
-
addSelectionMenuItems
public int addSelectionMenuItems(JComponent menu, Window awtWindow, boolean sortAlphabetical, boolean allowScores, boolean includeSymbolManagement) Description copied from class:OverlayDataManagerAdd all items associated with the list to a- Overrides:
addSelectionMenuItemsin classOverlayDataManager- Parameters:
menu-- Returns:
-