sr.forOverview = true;
fr = new jalview.renderer.seqfeatures.FeatureRenderer(av);
+ setSize(od.getWidth(), od.getHeight());
+
timer = new Timer(SPEED, new ActionListener()
{
public void draw(boolean showSequenceFeatures, boolean showAnnotation,
FeatureRenderer transferRenderer)
{
+ System.out.println(this.getHeight());
+ //od.setHeight(this.getHeight());
+ //od.setWidth(this.getWidth());
+ setPreferredSize(new Dimension(od.getWidth(), od.getHeight()));
+
miniMe = null;
veryLastMiniMe = lastMiniMe;
fr.transferSettings(transferRenderer);
}
- setPreferredSize(new Dimension(od.getWidth(), od.getHeight()));
-
or = new OverviewRenderer(sr, fr, od);
or.addPropertyChangeListener(progressPanel);
miniMe = or.draw(od.getRows(av.getAlignment()),
g2d.dispose();
}
- else if (lastMiniMe != miniMe)
+ /* else if (lastMiniMe != miniMe)
{
g.drawImage(lastMiniMe, 0, 0, getWidth(), getHeight(), this);
g.setColor(TRANS_GREY);
g.fillRect(0, 0, getWidth(), getHeight());
- }
+ }*/
else
{
// fall back to normal behaviour
(av.isShowAnnotation() && av
.getAlignmentConservationAnnotation() != null));
-
-
setLayout(new BorderLayout());
progressPanel = new ProgressPanel(OverviewRenderer.UPDATE,
MessageManager.getString("label.oview_calc"));
oviewCanvas = new OverviewCanvas(od, av, progressPanel);
add(oviewCanvas, BorderLayout.CENTER);
- setSize(od.getWidth(), od.getHeight());
av.getRanges().addPropertyChangeListener(this);
{
updateOverviewImage();
}
+
});
addMouseMotionListener(new MouseMotionAdapter()
}
});
- updateOverviewImage();
+ // updateOverviewImage();
}
/*
if ((getWidth() > 0) && (getHeight() > 0))
{
od.setWidth(getWidth());
- od.setHeight(getHeight());
+ od.setHeight(getHeight() - progressPanel.getHeight());
}
setPreferredSize(new Dimension(od.getWidth(),