JAL-2388 And corrected OverviewCanvas for applet
[jalview.git] / src / jalview / appletgui / OverviewCanvas.java
index ffba5b9..ede3b94 100644 (file)
@@ -29,10 +29,9 @@ import java.awt.Dimension;
 import java.awt.Frame;
 import java.awt.Graphics;
 import java.awt.Image;
+import java.awt.Panel;
 
-import javax.swing.JComponent;
-
-public class OverviewCanvas extends JComponent
+public class OverviewCanvas extends Panel
 {
   // This is set true if the alignment view changes whilst
   // the overview is being calculated
@@ -103,6 +102,16 @@ public class OverviewCanvas extends JComponent
     }
   }
 
+  /**
+   * Draw the overview sequences
+   * 
+   * @param showSequenceFeatures
+   *          true if sequence features are to be shown
+   * @param showAnnotation
+   *          true if the annotation is to be shown
+   * @param transferRenderer
+   *          the renderer to transfer feature colouring from
+   */
   public void draw(boolean showSequenceFeatures, boolean showAnnotation,
           FeatureRenderer transferRenderer)
   {
@@ -125,7 +134,8 @@ public class OverviewCanvas extends JComponent
 
     Graphics mg = miniMe.getGraphics();
 
-    // check for conservation annotation to make sure overview works for DNA too
+    // checks for conservation annotation to make sure overview works for DNA
+    // too
     if (showAnnotation)
     {
       mg.translate(0, od.getSequencesHeight());