public class OverviewRenderer
{
+ // transparency of hidden cols/seqs overlay
+ private final float TRANSPARENCY = 0.5f;
+
private FeatureColourFinder finder;
private jalview.api.SequenceRenderer sr;
return color.getRGB();
}
+ /*
+ * Overlay a buffered image (mask) onto another image (image) where mask
+ * has some transparency so image shows through from below
+ */
private BufferedImage applyMask(BufferedImage mask, BufferedImage image)
{
Graphics2D g = (Graphics2D) image.getGraphics();
g.setComposite(
- AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.5f));
+ AlphaComposite.getInstance(AlphaComposite.SRC_OVER,
+ TRANSPARENCY));
g.drawImage(mask, 0, 0, image.getWidth(), image.getHeight(), null);
return image;
}
int colIndex = 0;
int pixelCol = 0;
- Color hidden = Color.DARK_GRAY;
+ Color hidden = Color.DARK_GRAY.darker();
Graphics2D g2d = (Graphics2D) hiddenImage.getGraphics();