From: kiramt Date: Wed, 7 Jun 2017 09:26:17 +0000 (+0100) Subject: JAL-2591 ported to applet X-Git-Tag: Release_2_10_3b1~132^2~21^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=bf8f5b51784adf424e3817f5449d25d7a88be2f9;p=jalview.git JAL-2591 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());