Graphics must be set from nullFrame
authoramwaterhouse <Andrew Waterhouse>
Thu, 17 Nov 2005 15:33:26 +0000 (15:33 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 17 Nov 2005 15:33:26 +0000 (15:33 +0000)
src/jalview/appletgui/AlignmentPanel.java
src/jalview/appletgui/OverviewPanel.java
src/jalview/appletgui/SequenceRenderer.java

index 9fb6e62..07f5661 100755 (executable)
@@ -499,6 +499,13 @@ public class AlignmentPanel extends Panel implements AdjustmentListener
     seqPanel.seqCanvas.repaint();\r
     scalePanel.repaint();\r
     annotationPanel.repaint();\r
+\r
+    if (getBounds() == g.getClipBounds())\r
+    {\r
+      if (overviewPanel != null)\r
+        overviewPanel.updateOverviewImage();\r
+    }\r
+\r
   }\r
 \r
   protected Panel sequenceHolderPanel = new Panel();\r
index 6164468..23bfd09 100755 (executable)
@@ -55,6 +55,7 @@ public class OverviewPanel
 \r
 \r
     sr = new SequenceRenderer(av);\r
+    sr.graphics = nullFrame.getGraphics();\r
     sr.renderGaps( false );\r
     //fr = new FeatureRenderer(av);\r
     //fr.transparency = ap.seqPanel.seqCanvas.getFeatureRenderer().transparency;\r
index b985cea..217a67d 100755 (executable)
@@ -62,6 +62,7 @@ public class SequenceRenderer
     }\r
   }\r
 \r
+  Image offscreen;\r
   public Color findSequenceColour(SequenceI seq, int i)\r
   {\r
     allGroups = av.alignment.findAllGroups(seq);\r