Package net.sf.mzmine.data

Examples of net.sf.mzmine.data.PeakIdentity


    if (commonColumn == CommonColumnType.IDENTITY) {

      row = this.convertRowIndexToModel(row);
      peakListRow = peakList.getRow(row);

      PeakIdentity identities[] = peakListRow.getPeakIdentities();
      PeakIdentity preferredIdentity = peakListRow
          .getPreferredPeakIdentity();
      JComboBox combo;

      if ((identities != null) && (identities.length > 0)) {
        combo = new JComboBox(identities);
        combo.addItem("-------------------------");
        combo.addItem(REMOVE_IDENTITY);
        combo.addItem(EDIT_IDENTITY);
      } else {
        combo = new JComboBox();
      }

      combo.setFont(comboFont);
      combo.addItem(NEW_IDENTITY);
      if (preferredIdentity != null) {
        combo.setSelectedItem(preferredIdentity);
      }

      combo.addActionListener(new ActionListener() {

        public void actionPerformed(ActionEvent e) {
          JComboBox combo = (JComboBox) e.getSource();
          Object item = combo.getSelectedItem();
          if (item != null) {
            if (item.toString().equals(NEW_IDENTITY)) {
              PeakIdentitySetupDialog dialog = new PeakIdentitySetupDialog(
                  peakListRow);
              dialog.setVisible(true);
            } else if (item.toString().equals(EDIT_IDENTITY)) {
              PeakIdentitySetupDialog dialog = new PeakIdentitySetupDialog(
                  peakListRow, peakListRow
                      .getPreferredPeakIdentity());
              dialog.setVisible(true);
            } else if (item.toString().equals(REMOVE_IDENTITY)) {
              PeakIdentity identity = peakListRow
                  .getPreferredPeakIdentity();
              if (identity != null) {
                peakListRow.removePeakIdentity(identity);
                DefaultComboBoxModel comboModel = (DefaultComboBoxModel) combo
                    .getModel();
View Full Code Here


   */
  private void fillRowElement(PeakListRow row, TransformerHandler hd)
      throws SAXException, IOException {

    // <PEAK_IDENTITY>
    PeakIdentity preferredIdentity = row.getPreferredPeakIdentity();
    PeakIdentity[] identities = row.getPeakIdentities();
    AttributesImpl atts = new AttributesImpl();

    for (int i = 0; i < identities.length; i++) {

View Full Code Here

TOP

Related Classes of net.sf.mzmine.data.PeakIdentity

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.