Package dataGram
Class DatagramManager
java.lang.Object
dataGram.DatagramManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetImageData
(PamDataBlock dataBlock, long startTimeMillis, long endTimeMillis, int maxPixels) Create the raw data to go into a dataGram.double[]
getMinAndMax
(PamDataBlock dataBlock, boolean includeZeros) Get min and max values for an entire datagram.boolean
Get true if the datagram worker is running.void
setDatagramSettings
(DatagramSettings datagramSettings) boolean
showDatagramDialog
(boolean firstCall) void
showProgress
(DatagramProgress datagramProgress, dataGram.DatagramManager.DatagramCreator datagramCreator) void
Update all datagrams (which need it)void
updateDatagrams
(ArrayList<PamDataBlock> updateList) update a list of datagrams.
-
Constructor Details
-
DatagramManager
- Parameters:
binaryOfflineDataMap
-
-
-
Method Details
-
getDataBlocks
- Returns:
- a list of data blocks which have a DatagramProvider
-
checkAllDatagrams
- Returns:
- a list of datablocks which need their datagrams updated.
-
showDatagramDialog
public boolean showDatagramDialog(boolean firstCall) -
updateDatagrams
public void updateDatagrams()Update all datagrams (which need it) -
updateDatagrams
update a list of datagrams. This should be done in a worker thread ...- Parameters:
updateList
-
-
getStatus
public boolean getStatus()Get true if the datagram worker is running.- Returns:
-
showProgress
public void showProgress(DatagramProgress datagramProgress, dataGram.DatagramManager.DatagramCreator datagramCreator) -
getDatagramSettings
- Returns:
- the datagramSettings
-
setDatagramSettings
- Parameters:
datagramSettings
- the datagramSettings to set
-
getMinAndMax
Get min and max values for an entire datagram.- Parameters:
dataBlock
- datablock owning datagramincludeZeros
- include data that have zero value - often a good idea to exclude these if your calculating log scale limits- Returns:
- 2 el array of min and max values.
-
getImageData
public DatagramImageData getImageData(PamDataBlock dataBlock, long startTimeMillis, long endTimeMillis, int maxPixels) Create the raw data to go into a dataGram. Fill with NaN wherever data are unavailable.- Parameters:
dataBlock
-endTimeMillis
-maxPixels
-startTimeMills
-- Returns:
- a 2D array of double precision data to go into an image.
-