fr.transferSettings
authoramwaterhouse <Andrew Waterhouse>
Fri, 24 Mar 2006 15:35:31 +0000 (15:35 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 24 Mar 2006 15:35:31 +0000 (15:35 +0000)
src/jalview/gui/OverviewPanel.java

index a4127bd..d3f513b 100755 (executable)
@@ -64,11 +64,9 @@ public class OverviewPanel extends JPanel implements Runnable
         setLayout(null);\r
 \r
         sr = new SequenceRenderer(av);\r
-        sr.renderGaps( false );\r
+        sr.renderGaps = false;\r
         sr.forOverview = true;\r
         fr = new FeatureRenderer(av);\r
-        fr.overview = true;\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
@@ -262,7 +260,6 @@ public class OverviewPanel extends JPanel implements Runnable
         }\r
 \r
         setPreferredSize(new Dimension(width, sequencesHeight + graphHeight));\r
-       // setBoxPosition();\r
 \r
         Thread thread = new Thread(this);\r
         thread.start();\r
@@ -282,10 +279,7 @@ public class OverviewPanel extends JPanel implements Runnable
 \r
        if (av.showSequenceFeatures)\r
        {\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
-         fr.sequenceFeatures = ap.seqPanel.seqCanvas.getFeatureRenderer().sequenceFeatures;\r
+         fr.transferSettings( ap.seqPanel.seqCanvas.getFeatureRenderer() );\r
        }\r
 \r
         int alwidth = av.alignment.getWidth();\r