From: amwaterhouse Date: Fri, 24 Mar 2006 16:29:00 +0000 (+0000) Subject: Feature settings X-Git-Tag: Root_VamJalview_2_07b+ X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c5ae36527ac4366160ba09b88e5e74568f71b836;p=jalview.git Feature settings --- diff --git a/src/jalview/appletgui/AlignViewport.java b/src/jalview/appletgui/AlignViewport.java index 8c6c7d2..bef5e1a 100755 --- a/src/jalview/appletgui/AlignViewport.java +++ b/src/jalview/appletgui/AlignViewport.java @@ -151,6 +151,11 @@ public class AlignViewport showSequenceFeatures = b; } + public boolean getShowSequenceFeatures() + { + return showSequenceFeatures; + } + public void updateConservation() { diff --git a/src/jalview/appletgui/FeatureRenderer.java b/src/jalview/appletgui/FeatureRenderer.java index c71a3cc..83a8340 100755 --- a/src/jalview/appletgui/FeatureRenderer.java +++ b/src/jalview/appletgui/FeatureRenderer.java @@ -60,8 +60,17 @@ public class FeatureRenderer } + public void transferSettings(FeatureRenderer fr) + { + renderOrder = fr.renderOrder; + featureGroups = fr.featureGroups; + featureColours = fr.featureColours; + } + + public Color findFeatureColour(Color initialCol, SequenceI seq, int i) { + overview = true; if(!av.showSequenceFeatures) return initialCol; diff --git a/src/jalview/appletgui/OverviewPanel.java b/src/jalview/appletgui/OverviewPanel.java index e8f9f9f..a4b7f06 100755 --- a/src/jalview/appletgui/OverviewPanel.java +++ b/src/jalview/appletgui/OverviewPanel.java @@ -188,7 +188,6 @@ public class OverviewPanel { fr.featureGroups = ap.seqPanel.seqCanvas.getFeatureRenderer().featureGroups; fr.featureColours = ap.seqPanel.seqCanvas.getFeatureRenderer().featureColours; - fr.sequenceFeatures = ap.seqPanel.seqCanvas.getFeatureRenderer().sequenceFeatures; } resizing = true;