Codota Logo
SubstanceWatermark.previewWatermark
Code IndexAdd Codota to your IDE (free)

How to use
previewWatermark
method
in
org.pushingpixels.substance.api.watermark.SubstanceWatermark

Best Java code snippets using org.pushingpixels.substance.api.watermark.SubstanceWatermark.previewWatermark (Showing top 2 results out of 315)

  • Common ways to obtain SubstanceWatermark
private void myMethod () {
SubstanceWatermark s =
  • Codota IconSubstanceSkin substanceSkin;substanceSkin.getWatermark()
  • Smart code suggestions by Codota
}
origin: com.github.insubstantial/substance

/**
 * Returns an icon that matches the specified watermark.
 * 
 * @param watermark
 *            Watermark instance.
 * @return Icon that matches the specified watermark.
 */
public static Icon getWatermarkIcon(SubstanceWatermark watermark) {
  int iSize = SubstanceSizeUtils.getTitlePaneIconSize();
  BufferedImage result = SubstanceCoreUtilities.getBlankImage(iSize,
      iSize);
  Graphics2D graphics = (Graphics2D) result.getGraphics().create();
  graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
      RenderingHints.VALUE_ANTIALIAS_ON);
  watermark
      .previewWatermark(graphics,
          SubstanceColorSchemeUtilities.METALLIC_SKIN, 0, 0,
          iSize, iSize);
  graphics.dispose();
  return new ImageIcon(result);
}
origin: org.java.net.substance/substance

/**
 * Returns an icon that matches the specified watermark.
 * 
 * @param watermark
 *            Watermark instance.
 * @return Icon that matches the specified watermark.
 */
public static Icon getWatermarkIcon(SubstanceWatermark watermark) {
  int iSize = SubstanceSizeUtils.getTitlePaneIconSize();
  BufferedImage result = SubstanceCoreUtilities.getBlankImage(iSize,
      iSize);
  Graphics2D graphics = (Graphics2D) result.getGraphics().create();
  graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
      RenderingHints.VALUE_ANTIALIAS_ON);
  watermark
      .previewWatermark(graphics,
          SubstanceColorSchemeUtilities.METALLIC_SKIN, 0, 0,
          iSize, iSize);
  graphics.dispose();
  return new ImageIcon(result);
}
org.pushingpixels.substance.api.watermarkSubstanceWatermarkpreviewWatermark

Javadoc

Draws the preview of the watermark image.

Popular methods of SubstanceWatermark

  • drawWatermarkImage
    Draws the watermark on the specified graphics context in the specified region.
  • dispose
    Disposes the memory associated with this watermark.
  • updateWatermarkImage
    Updates the current watermark image.

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • JLabel (javax.swing)
  • JList (javax.swing)
  • JOptionPane (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now