public int getRowNumber(FragmentIonType type, int location, int rowCount) { int row = -1; if (type.equals(FragmentIonType.X_ION) || type.equals(FragmentIonType.Y_ION) || type.equals(FragmentIonType.Z_ION)) { row = rowCount - location - 1; } else if (type.equals(FragmentIonType.A_ION) || type.equals(FragmentIonType.B_ION) || type.equals(FragmentIonType.C_ION)) { row = location; } return row; }
public int getColumnNumber( int precursorCharge, FragmentIonType type, int charge, NeutralLoss loss, int columnCount) { int offset = getOffset(charge, loss, precursorCharge); if (type.equals(FragmentIonType.X_ION) || type.equals(FragmentIonType.Y_ION) || type.equals(FragmentIonType.Z_ION)) { return offset; } else if (type.equals(FragmentIonType.A_ION) || type.equals(FragmentIonType.B_ION) || type.equals(FragmentIonType.C_ION)) { return columnCount / 2 + offset; } else { return -1; } }