X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FAnnotationPanel.java;h=77f557bff87a4a488d7e50e8b6171a2a7db2c4ee;hb=5929445a0af66d200677bf23b26f4bdbab2e4c0c;hp=48f9c20af2fe494099c75f061a96727bffcdb518;hpb=24efbd38f2c3dceaf6d3e305eef41ba0b0c9ebdc;p=jalview.git diff --git a/src/jalview/gui/AnnotationPanel.java b/src/jalview/gui/AnnotationPanel.java index 48f9c20..77f557b 100755 --- a/src/jalview/gui/AnnotationPanel.java +++ b/src/jalview/gui/AnnotationPanel.java @@ -312,7 +312,14 @@ public class AnnotationPanel extends JPanel implements MouseListener, MouseMotio int res = evt.getX() / av.getCharWidth() + av.getStartRes(); if(row>-1 && res0) { - int charOffset = (av.charWidth - - fm.charWidth(row.annotations[j].displayCharacter. - charAt(0))) / 2; + int charOffset = (av.charWidth - fm.charWidth(row.annotations[j].displayCharacter.charAt(0)))/2; g.setColor( row.annotations[j].colour); if(j==0) { @@ -516,7 +526,7 @@ public class AnnotationPanel extends JPanel implements MouseListener, MouseMotio height = (int)( (total / row.graphMax) *GRAPH_HEIGHT); } - + g.setColor(row.annotations[j].colour); g.fillRect(x, y-height, av.charWidth, height ); }