Package clipgenerator

Class ClipDataBlock

All Implemented Interfaces:
OrganisedFFTData

public class ClipDataBlock extends ClipDisplayDataBlock<ClipDataUnit> implements OrganisedFFTData
  • Constructor Details

    • ClipDataBlock

      public ClipDataBlock(String dataName, ClipProcess clipProcess, int channelMap)
  • Method Details

    • getDataUnitMenuItems

      public List<JMenuItem> getDataUnitMenuItems(DataMenuParent menuParent, Point mousePosition, PamDataUnit... dataUnits)
      Description copied from class: PamDataBlock
      Get menu items pertinent to one or more data units.

      Note that if multiple units have been selected on some of the generic displays, it's possible that they may not all be of the same types so may not all belong to this datablock.

      If it's only a single unit, then its guaranteed that it will be from this datablock.

      Overrides:
      getDataUnitMenuItems in class PamDataBlock<ClipDataUnit>
      Parameters:
      menuParent - information about the display requesting these items.
      dataUnits - List of one or more selected data units.
      Returns:
      null or one or more menu items.
    • getDataSelectCreator

      public DataSelectorCreator getDataSelectCreator()
      Overrides:
      getDataSelectCreator in class PamDataBlock<ClipDataUnit>
      Returns:
      an object that can create data selectors to sub select data from within this type of data block.
    • getDataSelector

      public DataSelector getDataSelector(String selectorName, boolean allowScores, String selectorType)
      Description copied from class: PamDataBlock
      Convenience method to save programmer from having to call into the creator all the time.
      Overrides:
      getDataSelector in class PamDataBlock<ClipDataUnit>
      Parameters:
      selectorType - Type of selector, generally a ModuleType name, e.g. Map, so that options can be tailored to specific needs
      Returns:
      null or a DataSelector
    • getFFTDataOrganiser

      public FFTDataOrganiser getFFTDataOrganiser()
      Specified by:
      getFFTDataOrganiser in interface OrganisedFFTData