X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fappletgui%2FScalePanel.java;h=60fb365d077ee0b980fef713d48b5baa7a80ddfd;hb=838e4f91d4a53dd315640dbc9ff6ef7a815ee576;hp=3bb676f8a72e414d99dc50611fab29f6c6819c08;hpb=be32c14cd8e48fe0a207cd7030cb9cd46f894678;p=jalview.git diff --git a/src/jalview/appletgui/ScalePanel.java b/src/jalview/appletgui/ScalePanel.java index 3bb676f..60fb365 100755 --- a/src/jalview/appletgui/ScalePanel.java +++ b/src/jalview/appletgui/ScalePanel.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) - * Copyright (C) $$Year-Rel$$ The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b1) + * Copyright (C) 2015 The Jalview Authors * * This file is part of Jalview. * @@ -414,21 +414,17 @@ public class ScalePanel extends Panel implements MouseMotionListener, maxX = (i - startx + 1) * avcharWidth + fm.stringWidth(string); } - gg.drawLine( -((i - startx - 1) * avcharWidth) + (avcharWidth / 2), + gg.drawLine(((i - startx - 1) * avcharWidth) + (avcharWidth / 2), y + 2, - ((i - startx - 1) * avcharWidth) + (avcharWidth / 2), - y + (fm.getDescent() * 2)); + ((i - startx - 1) * avcharWidth) + (avcharWidth / 2), y + + (fm.getDescent() * 2)); } else { - gg.drawLine( -((i - startx - 1) * avcharWidth) + (avcharWidth / 2), - y + fm.getDescent(), - ((i - startx - 1) * avcharWidth) - + (avcharWidth / 2), - y + (fm.getDescent() * 2)); + gg.drawLine(((i - startx - 1) * avcharWidth) + (avcharWidth / 2), y + + fm.getDescent(), ((i - startx - 1) * avcharWidth) + + (avcharWidth / 2), y + (fm.getDescent() * 2)); } } @@ -450,12 +446,10 @@ public class ScalePanel extends Panel implements MouseMotionListener, continue; } - gg.fillPolygon(new int[] - { res * avcharWidth - avcharHeight / 4, + 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); + new int[] { y - avcharHeight / 2, y - avcharHeight / 2, + y + 8 }, 3); } }