From 462133eea46ebec6411f53dbe3d6bc372cca4f46 Mon Sep 17 00:00:00 2001 From: kiramt Date: Wed, 7 Jun 2017 10:25:18 +0100 Subject: [PATCH] JAL-2591 Overview changes 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