.getString("label.complement_consensus_descr"),
new Annotation[1], 0f, 100f,
AlignmentAnnotation.BAR_GRAPH);
- initConsensus(complementConsensus);
+ complementConsensus.hasText = true;
+ complementConsensus.autoCalculated = true;
+ alignment.addAnnotation(complementConsensus);
return true;
}
}
consensus = new AlignmentAnnotation("Consensus",
MessageManager.getString("label.consensus_descr"),
new Annotation[1], 0f, 100f, AlignmentAnnotation.BAR_GRAPH);
- initConsensus(consensus);
- }
-
- private void initConsensus(AlignmentAnnotation aa)
- {
- consensus = new AlignmentAnnotation("Consensus",
- MessageManager.getString("label.consensus_descr"),
- new Annotation[1], 0f, 100f, AlignmentAnnotation.BAR_GRAPH);
consensus.hasText = true;
consensus.autoCalculated = true;
-
- if (showConsensus)
- {
- alignment.addAnnotation(consensus);
- }
+ alignment.addAnnotation(consensus);
}
@Override