/** * Sets image watermark kind. * * @param kind * Image watermark kind. */ public void setKind(ImageWatermarkKind kind) { if (kind == null) { throw new IllegalArgumentException( "Can't pass null to SubstanceImageWatermark.setKind()"); } this.kind = kind; this.updateWatermarkImage(SubstanceLookAndFeel.getCurrentSkin(null)); }
/** * Sets image watermark kind. * * @param kind * Image watermark kind. */ public void setKind(ImageWatermarkKind kind) { if (kind == null) { throw new IllegalArgumentException( "Can't pass null to SubstanceImageWatermark.setKind()"); } this.kind = kind; this.updateWatermarkImage(SubstanceLookAndFeel.getCurrentSkin(null)); }
/** * Sets image watermark opacity. * * @param opacity * Image watermark opacity. * @throws IllegalArgumentException * if the argument is not in 0.0-1.0 range. */ public void setOpacity(float opacity) { if ((opacity < 0.0f) || (opacity > 1.0f)) { throw new IllegalArgumentException( "SubstanceImageWatermark.setOpacity() can get value in 0.0-1.0 range, was passed value " + opacity); } this.opacity = opacity; this.updateWatermarkImage(SubstanceLookAndFeel.getCurrentSkin(null)); } }
/** * Sets image watermark opacity. * * @param opacity * Image watermark opacity. * @throws IllegalArgumentException * if the argument is not in 0.0-1.0 range. */ public void setOpacity(float opacity) { if ((opacity < 0.0f) || (opacity > 1.0f)) { throw new IllegalArgumentException( "SubstanceImageWatermark.setOpacity() can get value in 0.0-1.0 range, was passed value " + opacity); } this.opacity = opacity; this.updateWatermarkImage(SubstanceLookAndFeel.getCurrentSkin(null)); } }