X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fappletgui%2FSeqCanvas.java;h=f0557765315e916c9041312d00e3e8c9e5886b06;hb=5cbf11a75929325ead970d992f10ad7f3e84bab0;hp=96eb6b98ed49d548f95be0c449a257495393dda3;hpb=cc6197585bf74c9562c0b869a4d28646af5b13bc;p=jalview.git diff --git a/src/jalview/appletgui/SeqCanvas.java b/src/jalview/appletgui/SeqCanvas.java index 96eb6b9..f055776 100755 --- a/src/jalview/appletgui/SeqCanvas.java +++ b/src/jalview/appletgui/SeqCanvas.java @@ -40,6 +40,7 @@ import java.awt.Panel; import java.beans.PropertyChangeEvent; import java.util.Iterator; +@SuppressWarnings("serial") public class SeqCanvas extends Panel implements ViewportListenerI { FeatureRenderer fr; @@ -905,4 +906,19 @@ public class SeqCanvas extends Panel implements ViewportListenerI } } + /** + * Ensure that a full paint is done next, for whatever reason. This was + * necessary for JavaScript; apparently in Java the timing is just right on + * multiple threads (EventQueue-0, Consensus, Conservation) that we can get + * away with one fast paint before the others, but this ensures that in the + * end we get a full paint. Problem arose in relation to copy/paste, where the + * paste was not finalized with a full paint. + * + * @author hansonr 2019.04.17 + */ + public void clearFastPaint() + { + fastPaint = false; + } + }