MousePos o = (MousePos) obj;
boolean b = (column == o.column && seqIndex == o.seqIndex
&& annotationIndex == o.annotationIndex);
- // System.out.println(obj + (b ? "= " : "!= ") + this);
return b;
}
return;
}
- // System.out.print(y1+" "+y2+" "+fixedLeft+" "+fixedRight+"~~");
// Selection spans a hidden region
if (fixedLeft < y1 && (fixedRight > y2 || fixedRight == -1))
{
@Override
public void mouseExited(MouseEvent e)
{
+ if (ap.getScalePanel().isMouseDragging())
+ {
+ ap.getScalePanel().mouseExited(e);
+ return;
+ }
lastMousePosition = null;
ap.alignFrame.setStatus(" ");
if (av.getWrapAlignment())
{
return;
}
-
if (mouseDragging && scrollThread == null)
{
startScrolling(e.getPoint());
// if (!scrollOnce() {t.stop();}) gives compiler error :-(
scrollThread.scrollOnce();
}
- }
- });
- t.addActionListener(new ActionListener()
- {
- @Override
- public void actionPerformed(ActionEvent e)
- {
if (scrollThread == null)
{
// SeqPanel.stopScrolling called
- t.stop();
+ ((Timer) e.getSource()).stop();
}
}
});
t.start();
}
- }
- else
- {
- /*
- * Java - run in a new thread
- */
- scrollThread.start();
+ else
+ {
+ /*
+ * Java - run in a new thread
+ */
+ scrollThread.start();
+ }
}
}