private int getSeqPos ( MouseEvent e ) { int x = e . getX ( ) ; //int y = e.getY(); //float scale = seqScale.getScale(); //int DEFAULT_X_START = SequenceScalePanel.DEFAULT_X_START; float scale = parent . getScale ( ) ; coordManager . setScale ( scale ) ; int seqpos = coordManager . getSeqPos ( x - 2 ) ; return seqpos ; }
get the sequence position of the current mouse event