From: kiramt Date: Wed, 7 Jun 2017 09:25:18 +0000 (+0100) Subject: JAL-2591 Overview changes ported to applet X-Git-Tag: Release_2_10_3b1~183^2~13 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=462133eea46ebec6411f53dbe3d6bc372cca4f46;p=jalview.git JAL-2591 Overview changes ported to applet --- diff --git a/src/jalview/appletgui/OverviewCanvas.java b/src/jalview/appletgui/OverviewCanvas.java index 23e82df..a0466d3 100644 --- a/src/jalview/appletgui/OverviewCanvas.java +++ b/src/jalview/appletgui/OverviewCanvas.java @@ -40,6 +40,8 @@ public class OverviewCanvas extends Component private OverviewDimensions od; + private OverviewRenderer or = null; + private Image miniMe; private Image offscreen; @@ -92,6 +94,10 @@ public class OverviewCanvas extends Component if (updaterunning) { restart = true; + if (or != null) + { + or.setRedraw(true); + } } else { @@ -113,7 +119,7 @@ public class OverviewCanvas extends Component setPreferredSize(new Dimension(od.getWidth(), od.getHeight())); - OverviewRenderer or = new OverviewRenderer(sr, fr, od); + or = new OverviewRenderer(sr, fr, od); miniMe = nullFrame.createImage(od.getWidth(), od.getHeight()); offscreen = nullFrame.createImage(od.getWidth(), od.getHeight());