apollo.gui.detailviewers.sequencealigner
Class ResultMouseListener

java.lang.Object
  extended by javax.swing.event.MouseInputAdapter
      extended by apollo.gui.detailviewers.sequencealigner.ResultMouseListener
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener, javax.swing.event.MouseInputListener

public class ResultMouseListener
extends javax.swing.event.MouseInputAdapter


Constructor Summary
ResultMouseListener(MultiTierPanel panel, GuiCurationState curationState)
          Constructor
 
Method Summary
 AnnotationEditor getAnnotationEditor()
          Gets the annotation editor.
 int getBasepair()
           
 MultiSequenceAlignerPanel getMultiSequenceAlignerPanel()
          Gets the scrollable object that will be affected
 int getPos()
          Gets the current (pixel) position
 int getTier()
          Gets the current tier
 void mouseClicked(java.awt.event.MouseEvent e)
          Handles the mouse click events Middle mouse scrolls to where clicked Left mouse selects a feature Right mouse brings up popup menu
 void mouseMoved(java.awt.event.MouseEvent e)
          Pops up insertions when moused over, removes when gone
 void setMultiSequenceAlignerPanel(MultiSequenceAlignerPanel multiSequenceAlignerPanel)
           
 
Methods inherited from class javax.swing.event.MouseInputAdapter
mouseDragged, mouseEntered, mouseExited, mousePressed, mouseReleased
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultMouseListener

public ResultMouseListener(MultiTierPanel panel,
                           GuiCurationState curationState)
Constructor

Parameters:
panel -
curationState -
Method Detail

getAnnotationEditor

public AnnotationEditor getAnnotationEditor()
Gets the annotation editor.

Returns:
a result editor

getPos

public int getPos()
Gets the current (pixel) position

Returns:

getTier

public int getTier()
Gets the current tier

Returns:

getBasepair

public int getBasepair()

getMultiSequenceAlignerPanel

public MultiSequenceAlignerPanel getMultiSequenceAlignerPanel()
Gets the scrollable object that will be affected

Returns:

setMultiSequenceAlignerPanel

public void setMultiSequenceAlignerPanel(MultiSequenceAlignerPanel multiSequenceAlignerPanel)

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Pops up insertions when moused over, removes when gone

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Overrides:
mouseMoved in class javax.swing.event.MouseInputAdapter

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Handles the mouse click events Middle mouse scrolls to where clicked Left mouse selects a feature Right mouse brings up popup menu

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class javax.swing.event.MouseInputAdapter