Class TDDataProviderRegisterFX

java.lang.Object
dataPlotsFX.data.TDDataProviderRegisterFX

public class TDDataProviderRegisterFX extends Object
Static holder of information about plottable data.
Author:
Doug Gillespie
  • Constructor Details

    • TDDataProviderRegisterFX

      public TDDataProviderRegisterFX()
  • Method Details

    • getInstance

      public static TDDataProviderRegisterFX getInstance()
    • registerDataInfo

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

      public void unRegisterDataInfo(TDDataProviderFX 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 TDDataProviderFX 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 TDDataProviderFX findDataProvider(PamDataBlock pamDataBlock)
      Find a provider based on it's datablock. If there is more than one data block then first provider in the list is returned.
      Parameters:
      pamDataBlock - data block to find TDDataProvider for.
      Returns:
      provider class or null.
    • getDataInfos

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