Package detectionPlotFX.data
Class DDPlotRegister
java.lang.Object
detectionPlotFX.data.DDPlotRegister
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindDataProvider
(Class providerClass, String providerName) Find a provider based on it's class and it's name.findDataProvider
(PamDataBlock pamDataBlock) Find a provider based on it's data block.static DDPlotRegister
void
registerDataInfo
(DDDataProvider dataInfo) Register a source of plotable data.void
unRegisterDataInfo
(DDDataProvider dataInfo) Remove something from the registervoid
unRegisterDataInfo
(PamDataBlock dataBlock) Remove all items associated with a particular data block from the register.
-
Constructor Details
-
DDPlotRegister
public DDPlotRegister()
-
-
Method Details
-
getInstance
-
registerDataInfo
Register a source of plotable 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.
-
findDataProvider
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
- Returns:
- the complete list of data infos
-