Package dataPlots.data
Class TDDataProviderRegister
java.lang.Object
dataPlots.data.TDDataProviderRegister
Static holder of information about plottable data.
- Author:
- Doug Gillespie
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
addMenuItems
(JMenuItem aMenu, TDInfoMonitor infoMonitor) Add menu items to an existing menu.findDataProvider
(Class providerClass, String providerName) find a provider based on it's class and it's name.static TDDataProviderRegister
void
registerDataInfo
(TDDataProvider dataInfo) Register a source of plottable data.void
unRegisterDataInfo
(TDDataProvider dataInfo) Remove something from the registervoid
unRegisterDataInfo
(PamDataBlock dataBlock) Remove all items associated with a particular data block from the register.
-
Constructor Details
-
TDDataProviderRegister
public TDDataProviderRegister()
-
-
Method Details
-
getInstance
-
registerDataInfo
Register a source of plottable data.- Parameters:
dataInfo
- info to register
-
unRegisterDataInfo
Remove something from the register- Parameters:
dataInfo
- info to remove from register
-
unRegisterDataInfo
Remove all items associated with a particular data block from the register.- Parameters:
dataBlock
-
-
findDataProvider
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
- classproviderName
- name- Returns:
- provider class or null.
-
addMenuItems
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.
-