From: Jim Procter Date: Fri, 24 May 2013 12:34:55 +0000 (+0100) Subject: JAL-1291 TODO: revised graphGroup model so grouped graphs are more efficiently rendered X-Git-Tag: Jalview_2_9~249^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=345f55c548098dd216a33cd5a71d5f632a276ac4;p=jalview.git JAL-1291 TODO: revised graphGroup model so grouped graphs are more efficiently rendered --- 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++) {