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
}
}
+ /**
+ * 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)
{
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());
}
FeatureColourFinder finder = new FeatureColourFinder(fr);
- // why do we need to set preferred size again? was set in
- // updateOverviewImage
setPreferredSize(new Dimension(od.getWidth(), od.getHeight()));
OverviewRenderer or = new OverviewRenderer(sr, finder, od);