JAL-2100 centre triangles on hidden column vertical mark and place them below numbers...
authorJim Procter <jprocter@issues.jalview.org>
Fri, 6 May 2016 13:21:53 +0000 (14:21 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Fri, 6 May 2016 13:21:53 +0000 (14:21 +0100)
src/jalview/gui/ScalePanel.java

index 909cbfb..108bf24 100755 (executable)
@@ -513,10 +513,10 @@ public class ScalePanel extends JPanel implements MouseMotionListener,
             continue;
           }
 
-          gg.fillPolygon(new int[] { res * avCharWidth - avCharHeight / 4,
-              res * avCharWidth + avCharHeight / 4, res * avCharWidth },
-                  new int[] { y - avCharHeight / 2, y - avCharHeight / 2,
-                      y + 8 }, 3);
+          gg.fillPolygon(new int[] {
+              -1 + res * avCharWidth - avCharHeight / 4,
+              -1 + res * avCharWidth + avCharHeight / 4,
+              -1 + res * avCharWidth }, new int[] { y, y, y + 2 * yOf }, 3);
 
         }
       }