示例#1
0
  public void unsafeRefreshChromosomes(SuperAdapter superAdapter) {

    if (chrBox1.getSelectedIndex() == 0 || chrBox2.getSelectedIndex() == 0) {
      chrBox1.setSelectedIndex(0);
      chrBox2.setSelectedIndex(0);
    }

    Chromosome chr1 = (Chromosome) chrBox1.getSelectedItem();
    Chromosome chr2 = (Chromosome) chrBox2.getSelectedItem();

    Chromosome chrX = chr1.getIndex() < chr2.getIndex() ? chr1 : chr2;
    Chromosome chrY = chr1.getIndex() < chr2.getIndex() ? chr2 : chr1;

    setNormalizationDisplayState(superAdapter.getHiC());

    superAdapter.unsafeUpdateHiCChromosomes(chrX, chrY);

    updateThumbnail(superAdapter.getHiC());
  }
示例#2
0
 private void chrBox2ActionPerformed(ActionEvent e) {
   if (chrBox2.getSelectedIndex() == 0) {
     chrBox1.setSelectedIndex(0);
   }
 }