sr.forOverview = true;
fr = new FeatureRenderer(av);
- od = new OverviewDimensions(av.getRanges(), av.isShowAnnotation());
+ od = new OverviewDimensions(av.getRanges(),
+ (av.isShowAnnotation() && av.getSequenceConsensusHash() != null));
setSize(new Dimension(od.getWidth(), od.getHeight()));
addComponentListener(new ComponentAdapter()
buildImage(sampleRow, sampleCol, mg);
- if (av.isShowAnnotation())
+ // check for conservation annotation to make sure overview works for DNA too
+ if (av.isShowAnnotation()
+ && (av.getAlignmentConservationAnnotation() != null))
{
for (int col = 0; col < od.getWidth() && !resizeAgain; col++)
{
sr.forOverview = true;
fr = new FeatureRenderer(ap);
- od = new OverviewDimensions(av.getRanges(), av.isShowAnnotation());
+ od = new OverviewDimensions(av.getRanges(),
+ (av.isShowAnnotation() && av
+ .getAlignmentConservationAnnotation() != null));
addComponentListener(new ComponentAdapter()
{
buildImage(sampleRow, sampleCol);
- if (av.isShowAnnotation())
+ // check for conservation annotation to make sure overview works for DNA too
+ if (av.isShowAnnotation()
+ && (av.getAlignmentConservationAnnotation() != null))
{
renderer.updateFromAlignViewport(av);
for (int col = 0; col < od.getWidth() && !resizeAgain; col++)