Keeps up to date with featureRenderer
authoramwaterhouse <Andrew Waterhouse>
Wed, 15 Feb 2006 15:24:07 +0000 (15:24 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 15 Feb 2006 15:24:07 +0000 (15:24 +0000)
src/jalview/gui/OverviewPanel.java

index e20084c..baec46b 100755 (executable)
@@ -66,7 +66,7 @@ public class OverviewPanel extends JPanel implements Runnable
         sr = new SequenceRenderer(av);\r
         sr.renderGaps( false );\r
         fr = new FeatureRenderer(av);\r
-        fr.transparency = ap.seqPanel.seqCanvas.getFeatureRenderer().transparency;\r
+\r
 \r
         // scale the initial size of overviewpanel to shape of alignment\r
         float initialScale = (float) av.alignment.getWidth() / (float) av.alignment.getHeight();\r
@@ -243,6 +243,15 @@ public class OverviewPanel extends JPanel implements Runnable
     {\r
         miniMe = null;\r
 \r
+       if (av.showSequenceFeatures)\r
+       {\r
+         fr.featuresDisplayed = ap.seqPanel.seqCanvas.getFeatureRenderer().\r
+             featuresDisplayed;\r
+         //fr.featureGroups = ap.seqPanel.seqCanvas.getFeatureRenderer().featureGroups;\r
+         fr.featureColours = ap.seqPanel.seqCanvas.getFeatureRenderer().featureColours;\r
+         fr.transparency = ap.seqPanel.seqCanvas.getFeatureRenderer().transparency;\r
+       }\r
+\r
         int alwidth = av.alignment.getWidth();\r
         int alheight = av.alignment.getHeight();\r
 \r