Package Spectrogram

Class SpectrogramMarkConverter

java.lang.Object
Spectrogram.SpectrogramMarkConverter
All Implemented Interfaces:
OverlayMarkObserver

public class SpectrogramMarkConverter extends Object implements OverlayMarkObserver
Class to convert the new style OverlayMark's into old style spectrogram marks.

This can be used until people get round to rewriting receivers of spectrogram marks to the point where they can use the new system. SpectrogramMarkObservers.

Author:
dg50
  • Constructor Details

    • SpectrogramMarkConverter

      public SpectrogramMarkConverter(SpectrogramMarkObserver spectrogramMarkObserver)
      Parameters:
      spectrogramMarkObserver -
  • Method Details

    • markUpdate

      public boolean markUpdate(int markStatus, javafx.scene.input.MouseEvent mouseEvent, OverlayMarker overlayMarker, OverlayMark overlayMark)
      Description copied from interface: OverlayMarkObserver
      Mark update called whenever a mark changes
      Specified by:
      markUpdate in interface OverlayMarkObserver
      Parameters:
      markStatus - start, end, update, cancel, etc.
      overlayMarker - Source of the mark (generally a display)
      overlayMark - updated mark.
      Returns:
      true if the observer has used the mark.
    • getPopupMenuItems

      public JPopupMenu getPopupMenuItems(DetectionGroupSummary markSummaryData)
      Description copied from interface: OverlayMarkObserver
      Get a menu, or menu items which can be used to display on the marking display in response to a right click or some other action.

      The menu items will be put into a popup menu for display.

      Specified by:
      getPopupMenuItems in interface OverlayMarkObserver
      Parameters:
      markSummaryData - everything we need to know about the mark, including which data are within it.
      Returns:
      A menu item (can be null)
    • getRequiredParameterTypes

      public GeneralProjector.ParameterType[] getRequiredParameterTypes()
      Description copied from interface: OverlayMarkObserver
      Required parameters for the mark to get used. Can be null in which case the mark can accept anything, might be something like TIME invalid input: '&' FREQUENCY, etc.
      Specified by:
      getRequiredParameterTypes in interface OverlayMarkObserver
      Returns:
      list of parameters (up to three).
    • getObserverName

      public String getObserverName()
      Description copied from interface: OverlayMarkObserver
      Name of the mark observer.
      Specified by:
      getObserverName in interface OverlayMarkObserver
      Returns:
      the observer name
    • getMarkDataSelector

      public MarkDataSelector getMarkDataSelector(OverlayMarker overlayMarker)
      Description copied from interface: OverlayMarkObserver
      Get a data selector for use with a specific type of mark.
      Specified by:
      getMarkDataSelector in interface OverlayMarkObserver
      Parameters:
      overlayMarker - Marker
      Returns:
      Data selector (can be null)
    • getMarkName

      public String getMarkName()
      Description copied from interface: OverlayMarkObserver
      Name of the mark. Observers may have several mark types and might want to change the name to indicate what action will be taken when a mark is made
      Specified by:
      getMarkName in interface OverlayMarkObserver
      Returns: