Example #1
0
  public void destroy() {

    setAFPChain(null);
    mouseMoLi.destroy();
    jmol = null;
    ca1 = null;
    ca2 = null;
    selection = null;
  }
Example #2
0
  private void selectEQR() {

    selection.clear();

    List<Integer> pos1 = DisplayAFP.getEQRAlignmentPos(afpChain);

    for (int pos : pos1) {
      selection.flip(pos);
    }
    mouseMoLi.triggerSelectionLocked(true);
    updateJmolDisplay();
    this.repaint();
  }
Example #3
0
  public AligPanel() {
    super();
    this.setBackground(Color.white);
    coordManager = new AFPChainCoordManager();
    seqFont = new Font("SansSerif", Font.PLAIN, 12);
    eqFont = new Font("SansSerif", Font.BOLD, 12);

    mouseMoLi = new AligPanelMouseMotionListener(this);
    this.addMouseMotionListener(mouseMoLi);
    this.addMouseListener(mouseMoLi);
    mouseMoLi.addAligPosListener(this);

    selection = new BitSet();
    colorBySimilarity = false;
    colorByAlignmentBlock = false;
  }
Example #4
0
 public void addAlignmentPositionListener(AlignmentPositionListener li) {
   mouseMoLi.addAligPosListener(li);
 }