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

  • Start an intent from android
  • getSystemService (Context)
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JTextField (javax.swing)
  • Join (org.hibernate.mapping)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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