X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fappletgui%2FSeqCanvas.java;h=ce705970db0015756cbaaf808893c466b08e26e4;hb=16359e92bebc20edafc4958b7b580c8ceedd4d37;hp=bf54c667b4177c3f7341bb26de413e671b1e705f;hpb=be32c14cd8e48fe0a207cd7030cb9cd46f894678;p=jalview.git diff --git a/src/jalview/appletgui/SeqCanvas.java b/src/jalview/appletgui/SeqCanvas.java index bf54c66..ce70597 100755 --- a/src/jalview/appletgui/SeqCanvas.java +++ b/src/jalview/appletgui/SeqCanvas.java @@ -24,6 +24,7 @@ import jalview.datamodel.AlignmentI; import jalview.datamodel.SearchResults; import jalview.datamodel.SequenceGroup; import jalview.datamodel.SequenceI; +import jalview.viewmodel.AlignmentViewport; import java.awt.Color; import java.awt.FontMetrics; @@ -72,7 +73,7 @@ public class SeqCanvas extends Panel avcharWidth = av.getCharWidth(); } - public AlignViewport getViewport() + public AlignmentViewport getViewport() { return av; } @@ -472,11 +473,10 @@ public class SeqCanvas extends Panel 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[] - { ypos - (avcharHeight / 2), ypos - (avcharHeight / 2), + new int[] { ypos - (avcharHeight / 2), + ypos - (avcharHeight / 2), ypos - (avcharHeight / 2) + 8 }, 3); } @@ -528,11 +528,9 @@ public class SeqCanvas extends Panel } private void drawPanel(Graphics g1, int startRes, int endRes, - int startSeq, - int endSeq, int offset) + int startSeq, int endSeq, int offset) { - if (!av.hasHiddenColumns()) { draw(g1, startRes, endRes, startSeq, endSeq, offset); @@ -826,8 +824,7 @@ public class SeqCanvas extends Panel break; } - group = av.getAlignment().getGroups() - .get(groupIndex); + group = av.getAlignment().getGroups().get(groupIndex); } while (groupIndex < av.getAlignment().getGroups().size()); }