Tabnine Logo
SubstanceWatermark
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: com.github.insubstantial/substance

    .getWatermark();
if (watermark != null) {
  watermark.drawWatermarkImage(g2d, comp, 0, 0, comp.getWidth(), comp
      .getHeight());
  if (watermark != null) {
    g2d.clip(contour);
    watermark.drawWatermarkImage(g2d, comp, 0, 0, comp.getWidth(),
        comp.getHeight());
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: com.github.insubstantial/substance

currentSkin.getWatermark().dispose();
if (!newSkin.getWatermark().updateWatermarkImage(newSkin)) {
  return false;
origin: org.java.net.substance/substance

@Override
public void uninitialize() {
  super.uninitialize();
  SubstanceLookAndFeel.currentSkin = null;
  ShadowPopupFactory.uninstall();
  SubstanceCoreUtilities.stopThreads();
  // fix for defect 109 - memory leak on watermarks
  if (this.skin.getWatermark() != null)
    this.skin.getWatermark().dispose();
  // uninitialize component plugins
  SubstanceLookAndFeel.componentPlugins.uninitializeAll();
  // reset widget support
  LafWidgetRepository.getRepository().unsetLafSupport();
  // clear caches
  LazyResettableHashMap.reset();
  this.currentKeyboardFocusManager
      .removePropertyChangeListener(this.focusOwnerChangeListener);
  this.focusOwnerChangeListener = null;
  this.currentKeyboardFocusManager = null;
}
origin: org.java.net.substance/substance

currentSkin.getWatermark().dispose();
if (!newSkin.getWatermark().updateWatermarkImage(newSkin)) {
  return false;
origin: com.github.insubstantial/substance

@Override
public void uninitialize() {
  super.uninitialize();
  SubstanceLookAndFeel.currentSkin = null;
  ShadowPopupFactory.uninstall();
  SubstanceCoreUtilities.stopThreads();
  // fix for defect 109 - memory leak on watermarks
  if (this.skin.getWatermark() != null)
    this.skin.getWatermark().dispose();
  // uninitialize component plugins
  SubstanceLookAndFeel.componentPlugins.uninitializeAll();
  // reset widget support
  LafWidgetRepository.getRepository().unsetLafSupport();
  // clear caches
  LazyResettableHashMap.reset();
  this.currentKeyboardFocusManager
      .removePropertyChangeListener(this.focusOwnerChangeListener);
  this.focusOwnerChangeListener = null;
  this.currentKeyboardFocusManager = null;
}
origin: com.github.insubstantial/substance

  && c.isShowing() && SubstanceCoreUtilities.toDrawWatermark(c)) {
watermark.drawWatermarkImage(g2d, c, 0, 0, c.getWidth(), c
    .getHeight());
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);
}
origin: org.java.net.substance/substance

  && c.isShowing() && SubstanceCoreUtilities.toDrawWatermark(c)) {
watermark.drawWatermarkImage(g2d, c, 0, 0, c.getWidth(), c
    .getHeight());
origin: com.github.insubstantial/substance

if ((watermark != null) && !isInCellRenderer && c.isShowing()
    && SubstanceCoreUtilities.toDrawWatermark(c))
  watermark.drawWatermarkImage(graphics, c, rect.x, rect.y,
      rect.width, rect.height);
graphics.dispose();
origin: org.java.net.substance/substance

if ((watermark != null) && !isInCellRenderer && c.isShowing()
    && SubstanceCoreUtilities.toDrawWatermark(c))
  watermark.drawWatermarkImage(graphics, c, rect.x, rect.y,
      rect.width, rect.height);
graphics.dispose();
origin: com.synaptix/SynaptixWidget

watermark.drawWatermarkImage(g2d, comp, 0, 0, comp.getWidth(), comp.getHeight());
origin: org.java.net.substance/substance

    .getWatermark();
if (watermark != null) {
  watermark.drawWatermarkImage(g2d, comp, 0, 0, comp.getWidth(),
      comp.getHeight());
origin: com.github.insubstantial/substance

if ((watermark != null) && !isPreviewMode && !isInCellRenderer
    && SubstanceCoreUtilities.toDrawWatermark(c)) {
  watermark.drawWatermarkImage(graphics, c, 0, 0, c
      .getWidth(), c.getHeight());
origin: org.java.net.substance/substance

  && c.isShowing()
  && SubstanceCoreUtilities.toDrawWatermark(c)) {
watermark.drawWatermarkImage(graphics, c, 0, 0, c.getWidth(), c
    .getHeight());
origin: org.java.net.substance/substance

if (skin.getWatermark() != null) {
  fadeGraphics.translate(-x, -y);
  skin.getWatermark().drawWatermarkImage(fadeGraphics,
      tabPane, x, y, fw, fh);
  fadeGraphics.translate(x, y);
origin: com.github.insubstantial/substance

if (skin.getWatermark() != null) {
  fadeGraphics.translate(-x, -y);
  skin.getWatermark().drawWatermarkImage(fadeGraphics,
      tabPane, x, y, fw, fh);
  fadeGraphics.translate(x, y);
org.pushingpixels.substance.api.watermarkSubstanceWatermark

Javadoc

Interface for watermarks. This class is part of officially supported API.

Most used methods

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

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Menu (java.awt)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now