SubstanceWatermark watermark = SubstanceCoreUtilities.getSkin(c)
.getWatermark();
if ((watermark != null) && !isPreviewMode && !isInCellRenderer
&& c.isShowing() && SubstanceCoreUtilities.toDrawWatermark(c)) {
// paint the watermark over the component
watermark.drawWatermarkImage(g2d, c, 0, 0, c.getWidth(), c
.getHeight());
// paint the background second time with 50%
// translucency, making the watermark' bleed' through.
g2d.setComposite(TransitionLayout.getAlphaComposite(c, 0.5f, g));