I'm trying to get the interval of the selected sequence of a document.
SequenceSelection.SequenceIndex selection_index = new SequenceSelection.SequenceIndex(0, SequenceType.NUCLEOTIDE, SequenceSelection.SequenceDocumentType.Sequence);
SequenceSelection.SelectionInterval selection_interval= new SequenceSelection.SelectionInterval(selection_index, start_residue, end_residue);
How can I get the start residue and end residue form the document?
I'm also trying to add a toolbar to my viewer. I already added JToolbar which is taking extra space on the top of JPanel, but if it is possible I would like to add it to the empty space between JPanel and viewer tab name where usual geneious options exsists.
Is there a way to solve this problem?
(a little bit of sample code would be helpful)
Please sign in to leave a comment.