package eu.etaxonomy.taxeditor.editor.molecular;
+import info.bioinfweb.jphyloio.events.TokenSetType;
import info.bioinfweb.libralign.alignmentarea.AlignmentArea;
import info.bioinfweb.libralign.alignmentarea.selection.SelectionModel;
import info.bioinfweb.libralign.dataarea.implementations.ConsensusSequenceArea;
AlignmentArea result = new AlignmentArea(container);
result.setAllowVerticalScrolling(allowVerticalScrolling);
- TokenSet<NucleotideCompound> tokenSet = new BioJavaTokenSet<NucleotideCompound>(new DNACompoundSet(), true);
+ TokenSet<NucleotideCompound> tokenSet = new BioJavaTokenSet<NucleotideCompound>(
+ TokenSetType.DNA, new DNACompoundSet(), true); //TODO Should NUCLEOTIDE be used instead?
AlignmentModel<NucleotideCompound> provider = new PackedAlignmentModel<NucleotideCompound>(tokenSet);
result.setAlignmentModel(provider, false);
provider.getChangeListeners().add(DIRTY_LISTENER);
private AlignmentArea createConsensusHintArea(MultipleAlignmentsContainer container,
- AlignmentModel<?> sequenceProvider) {
+ AlignmentArea labeledArea) {
AlignmentArea result = new AlignmentArea(container);
result.setAllowVerticalScrolling(false);
result.getDataAreas().getBottomAreas().add(
- new ConsensusSequenceArea(result.getContentArea(), sequenceProvider));
+ new ConsensusSequenceArea(result.getContentArea(), labeledArea));
return result;
}
AlignmentArea readsArea = createEditableAlignmentArea(alignmentsContainer, true);
list.add(readsArea); // Make sure READS_AREA_INDEX is correct.
list.add(createEditableAlignmentArea(alignmentsContainer, false)); // Make sure COMSENSUS_AREA_INDEX is correct.
- list.add(createConsensusHintArea(alignmentsContainer,
- readsArea.getAlignmentModel()));
+ list.add(createConsensusHintArea(alignmentsContainer, readsArea));
registerEditSettingListener(alignmentsContainer);
}
private void createTestContents() {
// Just for testing:
try {
- addRead(new File("D:/Users/BenStoever/Documents/Studium/Projekte/Promotion/EDITor/Quelltexte/LibrAlign branch/Repository/eu.etaxonomy.taxeditor.editor/src/main/resources/AlignmentTestData/JR430_JR-P01.ab1").toURI(), false);
- addRead(new File("D:/Users/BenStoever/Documents/Studium/Projekte/Promotion/EDITor/Quelltexte/LibrAlign branch/Repository/eu.etaxonomy.taxeditor.editor/src/main/resources/AlignmentTestData/JR444_JR-P05.ab1").toURI(), false);
+ addRead(new File("D:/Users/BenStoever/ownCloud/Dokumente/Projekte/EDITor/Quelltexte/LibrAlign branch/Repository/eu.etaxonomy.taxeditor.editor/src/main/resources/AlignmentTestData/JR430_JR-P01.ab1").toURI(), false);
+ addRead(new File("D:/Users/BenStoever/ownCloud/Dokumente/Projekte/EDITor/Quelltexte/LibrAlign branch/Repository/eu.etaxonomy.taxeditor.editor/src/main/resources/AlignmentTestData/JR444_JR-P05.ab1").toURI(), false);
// Add test consensus sequence:
AlignmentModel consensusProvider = getConsensusArea().getAlignmentModel();