.getWatermark(); if ((watermark != null) && !isPreviewMode && !isInCellRenderer && c.isShowing() && SubstanceCoreUtilities.toDrawWatermark(c)) {
.getWatermark(); if ((watermark != null) && !isPreviewMode && !isInCellRenderer && c.isShowing() && SubstanceCoreUtilities.toDrawWatermark(c)) {
.getWatermark(); if (watermark != null) { watermark.drawWatermarkImage(g2d, comp, 0, 0, comp.getWidth(), comp
.getWatermark(); if ((watermark != null) && !isInCellRenderer && c.isShowing() && SubstanceCoreUtilities.toDrawWatermark(c))
.getWatermark(); if ((watermark != null) && !isInCellRenderer && c.isShowing() && SubstanceCoreUtilities.toDrawWatermark(c))
SubstanceWatermark watermark = skin.getWatermark(); if ((watermark != null) && SubstanceCoreUtilities.toDrawWatermark(comp)) { watermark.drawWatermarkImage(g2d, comp, 0, 0, comp.getWidth(), comp.getHeight());
if ((currentSkin != null) && (currentSkin.getWatermark() != null)) { currentSkin.getWatermark().dispose(); if (newSkin.getWatermark() != null) { if (!newSkin.getWatermark().updateWatermarkImage(newSkin)) { return false;
.getWatermark(); if (watermark != null) { watermark.drawWatermarkImage(g2d, comp, 0, 0, comp.getWidth(),
@Override protected void installDefaults(final JScrollPane scrollpane) { super.installDefaults(scrollpane); if (SubstanceCoreUtilities.toDrawWatermark(scrollpane) && (SubstanceLookAndFeel.getCurrentSkin(scrollpane) .getWatermark() != null)) { scrollpane.setOpaque(false); scrollpane.getViewport().setOpaque(false); } scrollpane.setLayout(new AdjustedLayout((ScrollPaneLayout) scrollpane .getLayout())); SwingUtilities.invokeLater(new Runnable() { public void run() { // System.out.println("Installing"); installTableHeaderCornerFiller(scrollpane); } }); }
@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; }
@Override protected void installDefaults(final JScrollPane scrollpane) { super.installDefaults(scrollpane); if (SubstanceCoreUtilities.toDrawWatermark(scrollpane) && (SubstanceLookAndFeel.getCurrentSkin(scrollpane) .getWatermark() != null)) { scrollpane.setOpaque(false); scrollpane.getViewport().setOpaque(false); } scrollpane.setLayout(new AdjustedLayout((ScrollPaneLayout) scrollpane .getLayout())); SwingUtilities.invokeLater(new Runnable() { @Override public void run() { // System.out.println("Installing"); installTableHeaderCornerFiller(scrollpane); } }); }
/** * Paints background of the specified text component. * * @param g * Graphics context. * @param comp * Component. */ public static void paintTextCompBackground(Graphics g, JComponent comp) { Color backgroundFillColor = getTextBackgroundFillColor(comp); boolean toPaintWatermark = (SubstanceLookAndFeel.getCurrentSkin(comp) .getWatermark() != null) && (SubstanceCoreUtilities.toDrawWatermark(comp) || !comp .isOpaque()); paintTextCompBackground(g, comp, backgroundFillColor, toPaintWatermark); }
@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; }
.getSkin(c).getWatermark(); if ((watermark != null) && !isPreviewMode && !isInCellRenderer && SubstanceCoreUtilities.toDrawWatermark(c)) {
.getWatermark(); if ((watermark != null) && !isPreviewMode && !isInCellRenderer && c.isShowing()
if ((currentSkin != null) && (currentSkin.getWatermark() != null)) { currentSkin.getWatermark().dispose(); if (newSkin.getWatermark() != null) { if (!newSkin.getWatermark().updateWatermarkImage(newSkin)) { return false;
fadeGraphics.setColor(tabColor); fadeGraphics.fillRect(0, 0, fw, fh); if (skin.getWatermark() != null) { fadeGraphics.translate(-x, -y); skin.getWatermark().drawWatermarkImage(fadeGraphics, tabPane, x, y, fw, fh); fadeGraphics.translate(x, y);
fadeGraphics.setColor(tabColor); fadeGraphics.fillRect(0, 0, fw, fh); if (skin.getWatermark() != null) { fadeGraphics.translate(-x, -y); skin.getWatermark().drawWatermarkImage(fadeGraphics, tabPane, x, y, fw, fh); fadeGraphics.translate(x, y);