Class TDDataProviderRegister

java.lang.Object
dataPlots.data.TDDataProviderRegister

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

    • TDDataProviderRegister

      public TDDataProviderRegister()
  • Method Details

    • getInstance

      public static TDDataProviderRegister getInstance()
    • registerDataInfo

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

      public void unRegisterDataInfo(TDDataProvider 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 TDDataProvider 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.
    • addMenuItems

      public int addMenuItems(JMenuItem aMenu, TDInfoMonitor infoMonitor)
      Add menu items to an existing menu. Done this way since we may want to add them to a normal menu or to a popup menu.
      Parameters:
      aMenu -
      Returns:
      number of items added.