Search in sources :

Example 1 with DataPointProcessingQueue

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;
}
Also used : DefaultMutableTreeNode(javax.swing.tree.DefaultMutableTreeNode) DPPModuleTreeNode(net.sf.mzmine.modules.visualization.spectra.simplespectra.datapointprocessing.datamodel.customguicomponents.DPPModuleTreeNode) DataPointProcessingQueue(net.sf.mzmine.modules.visualization.spectra.simplespectra.datapointprocessing.DataPointProcessingQueue) Nonnull(javax.annotation.Nonnull)

Aggregations

Nonnull (javax.annotation.Nonnull)1 DefaultMutableTreeNode (javax.swing.tree.DefaultMutableTreeNode)1 DataPointProcessingQueue (net.sf.mzmine.modules.visualization.spectra.simplespectra.datapointprocessing.DataPointProcessingQueue)1 DPPModuleTreeNode (net.sf.mzmine.modules.visualization.spectra.simplespectra.datapointprocessing.datamodel.customguicomponents.DPPModuleTreeNode)1