From 16af141746661052f9902fe1ee2872ed07929667 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 27 Apr 2007 16:20:41 +0000 Subject: [PATCH] REmove excessive painting --- src/jalview/appletgui/IdPanel.java | 4 ++-- src/jalview/appletgui/ScalePanel.java | 6 +++--- src/jalview/appletgui/SeqPanel.java | 3 ++- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/jalview/appletgui/IdPanel.java b/src/jalview/appletgui/IdPanel.java index fee5dd4..c510803 100755 --- a/src/jalview/appletgui/IdPanel.java +++ b/src/jalview/appletgui/IdPanel.java @@ -117,7 +117,7 @@ public class IdPanel } lastid = seq; - alignPanel.paintAlignment(true); + alignPanel.paintAlignment(false); } public void mouseClicked(MouseEvent e) @@ -224,7 +224,7 @@ public class IdPanel selectSeq(seq); } - alignPanel.paintAlignment(true); + alignPanel.paintAlignment(false); } void selectSeq(int seq) diff --git a/src/jalview/appletgui/ScalePanel.java b/src/jalview/appletgui/ScalePanel.java index 4db8054..a1d0bf7 100755 --- a/src/jalview/appletgui/ScalePanel.java +++ b/src/jalview/appletgui/ScalePanel.java @@ -189,7 +189,7 @@ public class ScalePanel if (!stretchingGroup) { - ap.paintAlignment(true); + ap.paintAlignment(false); return; } @@ -206,7 +206,7 @@ public class ScalePanel } stretchingGroup = false; - ap.paintAlignment(true); + ap.paintAlignment(false); } public void mouseDragged(MouseEvent evt) @@ -274,7 +274,7 @@ public class ScalePanel } } - ap.paintAlignment(true); + ap.paintAlignment(false); } } diff --git a/src/jalview/appletgui/SeqPanel.java b/src/jalview/appletgui/SeqPanel.java index 034106d..c56ded6 100755 --- a/src/jalview/appletgui/SeqPanel.java +++ b/src/jalview/appletgui/SeqPanel.java @@ -781,7 +781,8 @@ public class SeqPanel if (features[i].featureGroup != null - && seqCanvas.fr.featureGroups!=null + && seqCanvas.fr.featureGroups!=null + && seqCanvas.fr.featureGroups.containsKey(features[i].featureGroup) && !((Boolean)seqCanvas.fr.featureGroups.get(features[i].featureGroup)).booleanValue()) continue; -- 1.7.10.2