JAL-3444 SwingJS-site.zip fix and renderer.seqfeatures fixes
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Tue, 1 Oct 2019 21:36:04 +0000 (23:36 +0200)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Tue, 1 Oct 2019 21:36:04 +0000 (23:36 +0200)
commit45b405507491a3d15d2b6b2c4f115a840945b28f
tree7ae25fccfad151b8660b38a8c8de3e1d860e5128
parent07179fa211fc224a57afbb79f6e8239f36fbf6f0
JAL-3444 SwingJS-site.zip fix and renderer.seqfeatures fixes

- BufferedImage implements Image.flush() to clear pixel cache;
- JSGraphics2D check for opacity 1 before clearing HTML5 canvas
AlphaComposite

- FeatureColourFinder applies

ifJS() {
        g.setColor(Color.white);
        g.fillRect(0, 0, 1, 1);
}

so as to clear the HTML5 canvas image before applying any other color.
Also applies

    if (Platform.isJS())
    {
      offscreenImage.flush();
    }

just before offscreenImage.getRGB(0,0) to force the image to recreate
its cached pixel from the HTML5 canvas, which is drawn to directly.
src/jalview/renderer/seqfeatures/FeatureColourFinder.java
swingjs/SwingJS-site.zip
swingjs/timestamp
swingjs/ver/3.2.4/SwingJS-site.zip
swingjs/ver/3.2.4/timestamp