/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6)
- * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
+ * Copyright (C) 2011 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
*
* This file is part of Jalview.
*
SequenceNode highlightNode;
- public TreeCanvas(AlignViewport av, ScrollPane scroller)
+ AlignmentPanel ap;
+ public TreeCanvas(AlignmentPanel ap, ScrollPane scroller)
{
- this.av = av;
+ this.ap = ap;
+ this.av = ap.av;
font = av.getFont();
scrollPane = scroller;
addMouseListener(this);
PaintRefresher.Refresh(this, av.getSequenceSetId());
repaint();
+ av.sendSelection();
}
}
treeSelectionChanged((Sequence) ob);
PaintRefresher.Refresh(this, av.getSequenceSetId());
repaint();
+ av.sendSelection();
return;
}
else if (!(ob instanceof SequenceNode))
.getWidth(), ColourSchemeProperty.getColourName(av
.getGlobalColourScheme()));
}
-
- cs.setThreshold(av.getGlobalColourScheme().getThreshold(),
- av.getIgnoreGapsConsensus());
+ // cs is null if shading is an annotationColourGradient
+ if (cs!=null)
+ {
+ cs.setThreshold(av.getGlobalColourScheme().getThreshold(),
+ av.getIgnoreGapsConsensus());
+ }
}
SequenceGroup sg = new SequenceGroup(sequences, "", cs, true, true,
av.alignment.addGroup(sg);
}
-
+ ap.updateAnnotation();
+
}
public void setShowDistances(boolean state)