Feature settings Root_VamJalview_2_07b+
authoramwaterhouse <Andrew Waterhouse>
Fri, 24 Mar 2006 16:29:00 +0000 (16:29 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 24 Mar 2006 16:29:00 +0000 (16:29 +0000)
src/jalview/appletgui/AlignViewport.java
src/jalview/appletgui/FeatureRenderer.java
src/jalview/appletgui/OverviewPanel.java

index 8c6c7d2..bef5e1a 100755 (executable)
@@ -151,6 +151,11 @@ public class AlignViewport
     showSequenceFeatures = b;\r
   }\r
 \r
+  public boolean getShowSequenceFeatures()\r
+  {\r
+    return showSequenceFeatures;\r
+  }\r
+\r
 \r
   public void updateConservation()\r
   {\r
index c71a3cc..83a8340 100755 (executable)
@@ -60,8 +60,17 @@ public class FeatureRenderer
     }\r
 \r
 \r
+    public void transferSettings(FeatureRenderer fr)\r
+    {\r
+      renderOrder = fr.renderOrder;\r
+      featureGroups = fr.featureGroups;\r
+      featureColours = fr.featureColours;\r
+    }\r
+\r
+\r
     public Color findFeatureColour(Color initialCol, SequenceI seq, int i)\r
     {\r
+      overview = true;\r
       if(!av.showSequenceFeatures)\r
         return initialCol;\r
 \r
index e8f9f9f..a4b7f06 100755 (executable)
@@ -188,7 +188,6 @@ public class OverviewPanel
    {\r
      fr.featureGroups = ap.seqPanel.seqCanvas.getFeatureRenderer().featureGroups;\r
      fr.featureColours = ap.seqPanel.seqCanvas.getFeatureRenderer().featureColours;\r
-     fr.sequenceFeatures = ap.seqPanel.seqCanvas.getFeatureRenderer().sequenceFeatures;\r
    }\r
 \r
     resizing = true;\r