From e69437d3308e865d0d651461d44dfa63cffab746 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 10 Nov 2005 11:08:01 +0000 Subject: [PATCH] Set PDBViewer --- src/jalview/gui/SeqCanvas.java | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index d122364..c3972ee 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -65,11 +65,22 @@ public class SeqCanvas extends JComponent setBackground(Color.white); } + MCview.PDBCanvas pdbViewer; + public SequenceRenderer getSequenceRenderer() + { + return sr; + } + public FeatureRenderer getFeatureRenderer() { return fr; } + public void setPDBViewer(MCview.PDBCanvas pc) + { + pdbViewer = pc; + } + /** * DOCUMENT ME! * @@ -272,7 +283,6 @@ public class SeqCanvas extends JComponent { g.drawImage(img, 0, 0, this); fastPaint = false; - return; } @@ -310,6 +320,12 @@ public class SeqCanvas extends JComponent } g.drawImage(img, 0, 0, this); + + if (pdbViewer != null) + { + pdbViewer.updateSeqColours(); + } + } /** @@ -516,6 +532,7 @@ public class SeqCanvas extends JComponent repaint(); } + synchronized public void drawPanel(Graphics g1, int x1, int x2, int y1, int y2, int startx, int starty, int offset) { -- 1.7.10.2