use of net.sf.mzmine.modules.visualization.spectra.simplespectra.datapointprocessing.DataPointProcessingQueue in project mzmine2 by mzmine.
the class ProcessingComponent method getProcessingQueueFromNode.
/**
* Creates DataPointProcessingQueues from the items currently in the tree view.
*
* @return Instance of DataPointProcessingQueue.
*/
@Nonnull
public DataPointProcessingQueue getProcessingQueueFromNode(DPPMSLevelTreeNode parentNode) {
DataPointProcessingQueue list = new DataPointProcessingQueue();
if (parentNode.getChildCount() < 1)
return list;
Enumeration<?> nodes = parentNode.children();
do {
DefaultMutableTreeNode item = (DefaultMutableTreeNode) nodes.nextElement();
if (!(item instanceof DPPModuleTreeNode))
continue;
DPPModuleTreeNode moduleitem = (DPPModuleTreeNode) item;
list.add(createProcessingStep(moduleitem));
} while (nodes.hasMoreElements());
return list;
}
Aggregations