From c5ae36527ac4366160ba09b88e5e74568f71b836 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 24 Mar 2006 16:29:00 +0000 Subject: [PATCH] Feature settings --- src/jalview/appletgui/AlignViewport.java | 5 +++++ src/jalview/appletgui/FeatureRenderer.java | 9 +++++++++ src/jalview/appletgui/OverviewPanel.java | 1 - 3 files changed, 14 insertions(+), 1 deletion(-) 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; -- 1.7.10.2