Package org.pushingpixels.substance.api.watermark

Examples of org.pushingpixels.substance.api.watermark.SubstanceWatermark


    BackgroundPaintingUtils.update(g, comp, false);
    g2d.setColor(backgr);
    g2d.fill(contour);

    if (toOverlayWatermark) {
      SubstanceWatermark watermark = SubstanceCoreUtilities.getSkin(comp)
          .getWatermark();
      if (watermark != null) {
        watermark.drawWatermarkImage(g2d, comp, 0, 0, comp.getWidth(),
            comp.getHeight());
      }
    }

    g2d.dispose();
View Full Code Here


    Graphics2D g2d = (Graphics2D) g.create();
    painter.paintDecorationArea(g2d, c, decorationType, c.getWidth(), c
        .getHeight(), skin);

    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));
View Full Code Here

      // add overlays
      OverlayPainterUtils
          .paintOverlays(graphics, c, skin, decorationType);

      // and paint watermark
      SubstanceWatermark watermark = SubstanceCoreUtilities.getSkin(c)
          .getWatermark();
      if ((watermark != null) && !isPreviewMode && !isInCellRenderer
          && c.isShowing()
          && SubstanceCoreUtilities.toDrawWatermark(c)) {
        watermark.drawWatermarkImage(graphics, c, 0, 0, c.getWidth(), c
            .getHeight());
      }
    }

    graphics.dispose();
View Full Code Here

    graphics.setComposite(TransitionLayout.getAlphaComposite(c, g));
    graphics.setColor(fillColor);
    graphics.fillRect(rect.x, rect.y, rect.width, rect.height);
    graphics.setComposite(TransitionLayout.getAlphaComposite(c, 1.0f, g));
    // stamp watermark
    SubstanceWatermark watermark = SubstanceCoreUtilities.getSkin(c)
        .getWatermark();
    if ((watermark != null) && !isInCellRenderer && c.isShowing()
        && SubstanceCoreUtilities.toDrawWatermark(c))
      watermark.drawWatermarkImage(graphics, c, rect.x, rect.y,
          rect.width, rect.height);
    graphics.dispose();
  }
View Full Code Here

                        - borderDelta), null,
            borderDelta)
        : new Rectangle(0, 0, comp.getWidth(), comp.getHeight());

    BackgroundPaintingUtils.update(g, comp, false);
    SubstanceWatermark watermark = SubstanceCoreUtilities.getSkin(comp)
        .getWatermark();
    if (watermark != null) {
      watermark.drawWatermarkImage(g2d, comp, 0, 0, comp.getWidth(), comp
          .getHeight());
    }
    g2d.setColor(backgr);
    g2d.fill(contour);

    if (toOverlayWatermark) {
      if (watermark != null) {
        g2d.clip(contour);
        watermark.drawWatermarkImage(g2d, comp, 0, 0, comp.getWidth(),
            comp.getHeight());
      }
    }

    g2d.dispose();
View Full Code Here

        // add overlays
        OverlayPainterUtils.paintOverlays(graphics, c, skin,
            decorationType);

        // and paint watermark
        SubstanceWatermark watermark = SubstanceCoreUtilities
            .getSkin(c).getWatermark();
        if ((watermark != null) && !isPreviewMode && !isInCellRenderer
            && SubstanceCoreUtilities.toDrawWatermark(c)) {
          watermark.drawWatermarkImage(graphics, c, 0, 0, c
              .getWidth(), c.getHeight());
        }
      }
    }
View Full Code Here

    graphics.setComposite(LafWidgetUtilities.getAlphaComposite(c, g));
    graphics.setColor(fillColor);
    graphics.fillRect(rect.x, rect.y, rect.width, rect.height);
    graphics.setComposite(LafWidgetUtilities.getAlphaComposite(c, 1.0f, g));
    // stamp watermark
    SubstanceWatermark watermark = SubstanceCoreUtilities.getSkin(c)
        .getWatermark();
    if ((watermark != null) && !isInCellRenderer && c.isShowing()
        && SubstanceCoreUtilities.toDrawWatermark(c))
      watermark.drawWatermarkImage(graphics, c, rect.x, rect.y,
          rect.width, rect.height);
    graphics.dispose();
  }
View Full Code Here

    Graphics2D g2d = (Graphics2D) g.create();
    painter.paintDecorationArea(g2d, c, decorationType, c.getWidth(), c
        .getHeight(), skin);

    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(LafWidgetUtilities.getAlphaComposite(c, 0.5f, g));
View Full Code Here

TOP

Related Classes of org.pushingpixels.substance.api.watermark.SubstanceWatermark

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.