Package net.sf.mzmine.util

Examples of net.sf.mzmine.util.SearchDefinitionType


      chart.setItemLabels(labeledItems.isSelected());
    }

    if (command.equals("SEARCH")) {

      SearchDefinitionType searchType = (SearchDefinitionType) comboSearchDataType
          .getSelectedItem();
      String searchRegex = txtSearchField.getText();
      Number minValue = ((Number) minSearchField.getValue());
      if (minValue == null)
        minValue = 0;
      Number maxValue = ((Number) maxSearchField.getValue());
      if (maxValue == null)
        maxValue = 0;
      Range searchRange = new Range(minValue.doubleValue(),
          maxValue.doubleValue());
      try {
        SearchDefinition newSearch = new SearchDefinition(searchType,
            searchRegex, searchRange);
        chart.updateSearchDefinition(newSearch);
      } catch (PatternSyntaxException pe) {
        MZmineCore.getDesktop().displayErrorMessage(
            "The regular expression's syntax is invalid: " + pe);
      }
      return;
    }

    if (command.equals("SEARCH_DATA_TYPE")) {

      SearchDefinitionType searchType = (SearchDefinitionType) comboSearchDataType
          .getSelectedItem();

      switch (searchType) {

        case MASS :
View Full Code Here

TOP

Related Classes of net.sf.mzmine.util.SearchDefinitionType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.