Class DDPlotRegister

java.lang.Object
detectionPlotFX.data.DDPlotRegister

public class DDPlotRegister extends Object
  • Constructor Details

    • DDPlotRegister

      public DDPlotRegister()
  • Method Details

    • getInstance

      public static DDPlotRegister getInstance()
    • registerDataInfo

      public void registerDataInfo(DDDataProvider dataInfo)
      Register a source of plotable data.
      Parameters:
      dataInfo - info to register
    • unRegisterDataInfo

      public void unRegisterDataInfo(DDDataProvider dataInfo)
      Remove something from the register
      Parameters:
      dataInfo - info to remove from register
    • unRegisterDataInfo

      public void unRegisterDataInfo(PamDataBlock dataBlock)
      Remove all items associated with a particular data block from the register.
      Parameters:
      dataBlock -
    • findDataProvider

      public DDDataProvider findDataProvider(Class providerClass, String providerName)
      Find a provider based on it's class and it's name.
      This is mainly called when deserialising settings and recreating old plots.
      Parameters:
      providerClass - class
      providerName - name
      Returns:
      provider class or null.
    • findDataProvider

      public DDDataProvider findDataProvider(PamDataBlock pamDataBlock)
      Find a provider based on it's data block. If there is more than one data block then first provider in the list is returned.
      Parameters:
      pamDataBlock - data block to find DDDataProvider for.
      Returns:
      provider class or null.
    • getDataInfos

      public ArrayList<DDDataProvider> getDataInfos()
      Returns:
      the complete list of data infos