From bf8f5b51784adf424e3817f5449d25d7a88be2f9 Mon Sep 17 00:00:00 2001 From: kiramt Date: Wed, 7 Jun 2017 10:26:17 +0100 Subject: [PATCH] JAL-2591 ported to applet --- src/jalview/appletgui/OverviewCanvas.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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()); -- 1.7.10.2