Graphline is a single line
authoramwaterhouse <Andrew Waterhouse>
Wed, 15 Feb 2006 15:17:55 +0000 (15:17 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 15 Feb 2006 15:17:55 +0000 (15:17 +0000)
src/jalview/appletgui/AnnotationPanel.java

index bcc2866..0fdeed6 100755 (executable)
@@ -579,14 +579,11 @@ public class AnnotationPanel
     g.drawLine(x-av.charWidth,y2,(eRes-sRes+1)*av.charWidth,y2);\r
 \r
 \r
-    if(aa.graphLines!=null)\r
+    if(aa.threshold!=null)\r
     {\r
-      for(int l=0; l<aa.graphLines.size(); l++)\r
-      {\r
-        g.setColor(aa.getGraphLine(l).colour);\r
-        y2 = (int)(y - ((aa.getGraphLine(l).value-min) / range)*graphHeight);\r
+        g.setColor(aa.threshold.colour);\r
+        y2 = (int)(y - ((aa.threshold.value-min) / range)*graphHeight);\r
         g.drawLine(x-av.charWidth,y2,(eRes-sRes+1)*av.charWidth,y2);\r
-      }\r
     }\r
 \r
     eRes = Math.min(eRes, aa.annotations.length);\r
@@ -617,14 +614,11 @@ public class AnnotationPanel
 \r
     float range = max - min;\r
 \r
-    if(aa.graphLines!=null)\r
+    if(aa.threshold!=null)\r
     {\r
-      for(int l=0; l<aa.graphLines.size(); l++)\r
-      {\r
-        g.setColor(aa.getGraphLine(l).colour);\r
-        y2 = (int)(y - ((aa.getGraphLine(l).value-min) / range)*aa.graphHeight);\r
+        g.setColor(aa.threshold.colour);\r
+        y2 = (int)(y - ((aa.threshold.value-min) / range)*aa.graphHeight);\r
         g.drawLine(x-av.charWidth,y2,(eRes-sRes+1)*av.charWidth,y2);\r
-       }\r
     }\r
 \r
     y1 = y2 = y;\r