{
SeqPanel sp = alignPanel.getSeqPanel();
MousePos pos = sp.findMousePosition(e);
- if (pos.annotationIndex != -1)
+ if (pos.isOverAnnotation())
{
/*
* mouse is over an annotation label in wrapped mode
mouseDragging = true;
MousePos pos = alignPanel.getSeqPanel().findMousePosition(e);
- if (pos.annotationIndex != -1)
+ if (pos.isOverAnnotation())
{
// mouse is over annotation label in wrapped mode
return;
}
MousePos pos = alignPanel.getSeqPanel().findMousePosition(e);
- if (pos.annotationIndex != -1)
+ if (pos.isOverAnnotation())
{
// mouse is over annotation label in wrapped mode
return;
}
MousePos pos = alignPanel.getSeqPanel().findMousePosition(e);
- if (pos.annotationIndex != -1)
+ if (pos.isOverAnnotation())
{
// mouse is over an annotation label in wrapped mode
return;
scrollThread.running = false;
}
MousePos pos = alignPanel.getSeqPanel().findMousePosition(e);
- if (pos.annotationIndex != -1)
+ if (pos.isOverAnnotation())
{
// mouse is over an annotation label in wrapped mode
return;
annotationIndex = ann;
}
+ boolean isOverAnnotation()
+ {
+ return annotationIndex != -1;
+ }
+
@Override
public boolean equals(Object obj)
{
}
lastMousePosition = mousePos;
- if (mousePos.annotationIndex != -1)
+ if (mousePos.isOverAnnotation())
{
mouseMovedOverAnnotation(mousePos);
return;
public void mouseDragged(MouseEvent evt)
{
MousePos pos = findMousePosition(evt);
- if (pos.annotationIndex != -1)
+ if (pos.isOverAnnotation())
{
// mouse is over annotation row in wrapped mode
return;
{
SequenceGroup sg = null;
MousePos pos = findMousePosition(evt);
- if (pos.annotationIndex != -1)
+ if (pos.isOverAnnotation())
{
// mouse is over annotation label in wrapped mode
return;
*/
protected void doMousePressedDefineMode(MouseEvent evt, MousePos pos)
{
- if (pos.annotationIndex != -1)
+ if (pos.isOverAnnotation())
{
// JvOptionPane.showInternalMessageDialog(Desktop.desktop,
// MessageManager.getString(
public void doMouseDraggedDefineMode(MouseEvent evt)
{
MousePos pos = findMousePosition(evt);
- if (pos.annotationIndex != -1)
+ if (pos.isOverAnnotation())
{
// mouse is over annotation in wrapped mode
return;