SequenceFeature display added
[jalview.git] / src / jalview / gui / SeqCanvas.java
index 3c9bf51..c33f3ed 100755 (executable)
@@ -10,6 +10,7 @@ import jalview.analysis.*;
 \r
 public class SeqCanvas extends JPanel\r
 {\r
+     FeatureRenderer fr;\r
     Image             img;\r
     Graphics          gg;\r
     int               imgWidth;\r
@@ -30,6 +31,7 @@ public class SeqCanvas extends JPanel
     public SeqCanvas(AlignViewport av)\r
     {\r
        this.av         = av;\r
+       fr = new FeatureRenderer(av);\r
        setLayout(new BorderLayout());\r
        PaintRefresher.Register(this);\r
 \r
@@ -176,6 +178,17 @@ public class SeqCanvas extends JPanel
                  offset + AlignmentUtil.getPixelHeight(starty, i, av.getCharHeight()),\r
                  charWidth,charHeight,null, i);\r
 \r
+     if(av.showSequenceFeatures)\r
+     {\r
+       fr.drawSequence(g, nextSeq, groups, x1, x2,\r
+                       (x1 - startx) * charWidth,\r
+                       offset +\r
+                       AlignmentUtil.getPixelHeight(starty, i, av.getCharHeight()),\r
+                       charWidth, charHeight, null, i);\r
+     }\r
+\r
+\r
+\r
 \r
      if( group!=null )\r
      {\r