From: jprocter Date: Fri, 28 Oct 2011 14:42:18 +0000 (+0100) Subject: JAL-580 - display position where wuss parsing error occured X-Git-Tag: Jalview_2_9~565^2~11 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=1834a25ff7a14c7fbb015780e5b0b0af085bf7d9;p=jalview.git JAL-580 - display position where wuss parsing error occured --- diff --git a/src/jalview/renderer/AnnotationRenderer.java b/src/jalview/renderer/AnnotationRenderer.java index 5c03881..e8b2e72 100644 --- a/src/jalview/renderer/AnnotationRenderer.java +++ b/src/jalview/renderer/AnnotationRenderer.java @@ -344,7 +344,11 @@ public class AnnotationRenderer } } } - + if (!row.isValidStruc()) + { + g.setColor(Color.orange); + g.fillRect((int)row.getInvalidStrucPos()*charWidth, y, charWidth, charHeight); + } if (validCharWidth && validRes && row.annotations[column].displayCharacter != null @@ -471,6 +475,15 @@ public class AnnotationRenderer { validEnd = true; } + if ((row.annotations == null) || (row.annotations.length <= column) + || (row.annotations[column] == null)) + { + validRes = false; + } + else + { + validRes = true; + } // x ++;