From b0c310ec55943ba114a00ee581f6430d8dc945c7 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 25 Nov 2014 21:42:32 +0000 Subject: [PATCH] formatting --- src/jalview/gui/SeqCanvas.java | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index d5b81f1..8b7f93a 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -20,11 +20,22 @@ */ package jalview.gui; -import java.awt.*; -import java.awt.image.*; -import javax.swing.*; - -import jalview.datamodel.*; +import jalview.datamodel.AlignmentI; +import jalview.datamodel.SearchResults; +import jalview.datamodel.SequenceGroup; +import jalview.datamodel.SequenceI; + +import java.awt.BasicStroke; +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.FontMetrics; +import java.awt.Graphics; +import java.awt.Graphics2D; +import java.awt.RenderingHints; +import java.awt.Shape; +import java.awt.image.BufferedImage; + +import javax.swing.JComponent; /** * DOCUMENT ME! @@ -575,7 +586,7 @@ public class SeqCanvas extends JComponent annotations = new AnnotationPanel(av); } - annotations.renderer.drawComponent(annotations, av, (Graphics2D) g, + annotations.renderer.drawComponent(annotations, av, g, -1, startRes, endx + 1); g.translate(0, -cHeight - ypos - 3); } @@ -763,7 +774,7 @@ public class SeqCanvas extends JComponent if ((group == null) && (av.getAlignment().getGroups().size() > 0)) { - group = (SequenceGroup) av.getAlignment().getGroups().get(0); + group = av.getAlignment().getGroups().get(0); groupIndex = 0; } @@ -924,7 +935,7 @@ public class SeqCanvas extends JComponent break; } - group = (SequenceGroup) av.getAlignment().getGroups() + group = av.getAlignment().getGroups() .get(groupIndex); } while (groupIndex < av.getAlignment().getGroups().size()); -- 1.7.10.2