public void setMask(String s) {
   AlignSequenceI tmp = new AlignSequence("dummy", s, 1, s.length());
   this.mask = tmp.getNums();
   //    for (int i=0; i < mask.length; i++) {
   //      System.out.println(mask[i] + " " + ResidueProperties.aa[mask[i]]);
   //    }
 }
  public void mousePressed(MouseEvent evt) {
    int x = evt.getX();
    int y = evt.getY();

    mx = x;
    my = y;

    omx = mx;
    omy = my;

    startx = x;
    starty = y;

    rectx1 = x;
    recty1 = y;

    rectx2 = -1;
    recty2 = -1;

    AlignSequenceI found = findPoint(x, y);

    if (found != null) {
      if (av != null) {

        if (av.getSelection().contains(found)) {
          av.getSelection().removeElement(found);
        } else {
          av.getSelection().addElement(found);
        }

        fireSequenceSelectionEvent(av.getSelection());

        System.out.println("Selection code not implemented in RotatableCanvas");
        // if (af.tt != null) {
        //  af.tt.tf.p.mc.repaint();
        // }
      }

      System.out.println("Sequence found = " + found.getName());
    }
    redrawneeded = true;
    repaint();
    return;
  }