From 345f55c548098dd216a33cd5a71d5f632a276ac4 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 24 May 2013 13:34:55 +0100 Subject: [PATCH] JAL-1291 TODO: revised graphGroup model so grouped graphs are more efficiently rendered --- src/jalview/gui/AnnotationLabels.java | 1 + src/jalview/renderer/AnnotationRenderer.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/jalview/gui/AnnotationLabels.java b/src/jalview/gui/AnnotationLabels.java index ec56388..8566e57 100755 --- a/src/jalview/gui/AnnotationLabels.java +++ b/src/jalview/gui/AnnotationLabels.java @@ -931,6 +931,7 @@ public class AnnotationLabels extends JPanel implements MouseListener, if (aa[i].graphGroup > -1) { int groupSize = 0; + // TODO: JAL-1291 revise rendering model so the graphGroup map is computed efficiently for all visible labels for (int gg = 0; gg < aa.length; gg++) { if (aa[gg].graphGroup == aa[i].graphGroup) diff --git a/src/jalview/renderer/AnnotationRenderer.java b/src/jalview/renderer/AnnotationRenderer.java index dd275bd..6ed2b9f 100644 --- a/src/jalview/renderer/AnnotationRenderer.java +++ b/src/jalview/renderer/AnnotationRenderer.java @@ -631,6 +631,7 @@ public class AnnotationRenderer { if (row.graphGroup > -1 && !graphGroupDrawn.get(row.graphGroup)) { + // TODO: JAL-1291 revise rendering model so the graphGroup map is computed efficiently for all visible labels float groupmax = -999999, groupmin = 9999999; for (int gg = 0; gg < aa.length; gg++) { -- 1.7.10.2