/** * Returns indication whether the panel background should be filled. * * @param c * Component (should be {@link JPanel}). * @return <code>true</code> if the panel background should be filled with * the background color, <code>false</code> otherwise. */ protected boolean toPaintBackground(JComponent c) { return SubstanceCoreUtilities.isOpaque(c); } }
/** * Returns indication whether the viewport background should be filled. * * @param c * Component (should be {@link JViewport}). * @return <code>true</code> if the viewport background should be filled * with the background color, <code>false</code> otherwise. */ protected boolean toPaintBackground(JComponent c) { return SubstanceCoreUtilities.isOpaque(c); } }
/** * Returns indication whether the panel background should be filled. * * @param c * Component (should be {@link JPanel}). * @return <code>true</code> if the panel background should be filled with * the background color, <code>false</code> otherwise. */ protected boolean toPaintBackground(JComponent c) { return SubstanceCoreUtilities.isOpaque(c); } }
/** * Returns indication whether the viewport background should be filled. * * @param c * Component (should be {@link JViewport}). * @return <code>true</code> if the viewport background should be filled * with the background color, <code>false</code> otherwise. */ protected boolean toPaintBackground(JComponent c) { return SubstanceCoreUtilities.isOpaque(c); } }
/** * Updates the background of the specified component on the specified * graphic context. The background is updated only if the component is * opaque. * * @param g * Graphic context. * @param c * Component. */ public static void updateIfOpaque(Graphics g, Component c) { if (SubstanceCoreUtilities.isOpaque(c)) update(g, c, false); }
/** * Updates the background of the specified component on the specified * graphic context. The background is updated only if the component is * opaque. * * @param g * Graphic context. * @param c * Component. */ public static void updateIfOpaque(Graphics g, Component c) { if (SubstanceCoreUtilities.isOpaque(c)) update(g, c, false); }
@Override public void update(Graphics g, JComponent c) { boolean isOpaque = SubstanceCoreUtilities.isOpaque(c); if (isOpaque) { BackgroundPaintingUtils.update(g, c, false); } else { super.update(g, c); } }
@Override public void update(Graphics g, JComponent c) { boolean isOpaque = SubstanceCoreUtilities.isOpaque(c); if (isOpaque) { BackgroundPaintingUtils.update(g, c, false); } else { super.update(g, c); } }
@Override public void update(Graphics g, JComponent c) { boolean isOpaque = SubstanceCoreUtilities.isOpaque(c); if (isOpaque) { BackgroundPaintingUtils.update(g, c, false); } else { super.update(g, c); } }
@Override public void update(Graphics g, JComponent c) { boolean isOpaque = SubstanceCoreUtilities.isOpaque(c); if (isOpaque) { BackgroundPaintingUtils.update(g, c, false); } else { super.update(g, c); } }
@Override public void update(Graphics g, JComponent c) { if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) return; // fix for issue 244 - paint the entire root pane so that it // picks the correct watermark if (SubstanceCoreUtilities.isOpaque(c)) { BackgroundPaintingUtils.update(g, c, false); } super.paint(g, c); }
@Override public void update(Graphics g, JComponent c) { if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) return; // fix for issue 244 - paint the entire root pane so that it // picks the correct watermark if (SubstanceCoreUtilities.isOpaque(c)) { BackgroundPaintingUtils.update(g, c, false); } super.paint(g, c); }
@Override public void update(Graphics g, JComponent c) { if (!c.isShowing()) { return; } Graphics2D graphics = (Graphics2D) g.create(); graphics.setComposite(LafWidgetUtilities.getAlphaComposite(c, g)); if (SubstanceCoreUtilities.isOpaque(c)) { // hack for JLayeredPane.paint() and JDesktopPane.isOpaque() Color back = c.getBackground(); if (back instanceof UIResource) { graphics.setColor(UIManager.getColor("Panel.background")); graphics.fillRect(0, 0, c.getWidth(), c.getHeight()); } BackgroundPaintingUtils.updateIfOpaque(graphics, c); super.paint(graphics, c); } else { super.paint(graphics, c); } // graphics.setColor(UIManager.getColor("Desktop.foreground")); // graphics.drawRect(0, 0, c.getWidth() - 1, c.getHeight() - 1); graphics.dispose(); // GhostPaintingUtils.paintGhostImages(c, g); } }
@Override public void update(Graphics g, JComponent c) { if (!c.isShowing()) { return; } Graphics2D graphics = (Graphics2D) g.create(); graphics.setComposite(LafWidgetUtilities.getAlphaComposite(c, g)); if (SubstanceCoreUtilities.isOpaque(c)) { // hack for JLayeredPane.paint() and JDesktopPane.isOpaque() Color back = c.getBackground(); if (back instanceof UIResource) { graphics.setColor(UIManager.getColor("Panel.background")); graphics.fillRect(0, 0, c.getWidth(), c.getHeight()); } BackgroundPaintingUtils.updateIfOpaque(graphics, c); super.paint(graphics, c); } else { super.paint(graphics, c); } // graphics.setColor(UIManager.getColor("Desktop.foreground")); // graphics.drawRect(0, 0, c.getWidth() - 1, c.getHeight() - 1); graphics.dispose(); // GhostPaintingUtils.paintGhostImages(c, g); } }
public UpdateOptimizationInfo(JComponent component) { this.component = component; this.toDrawWatermark = SubstanceCoreUtilities .toDrawWatermark(this.component); this.defaultScheme = SubstanceColorSchemeUtilities.getColorScheme( this.component, ComponentState.ENABLED); this.decorationAreaType = SubstanceLookAndFeel .getDecorationType(this.component); SubstanceSkin skin = SubstanceCoreUtilities.getSkin(this.component); this.isInDecorationArea = (this.decorationAreaType != null) && skin.isRegisteredAsDecorationArea(this.decorationAreaType) && SubstanceCoreUtilities.isOpaque(this.component); }
public UpdateOptimizationInfo(JComponent component) { this.component = component; this.toDrawWatermark = SubstanceCoreUtilities .toDrawWatermark(this.component); this.defaultScheme = SubstanceColorSchemeUtilities.getColorScheme( this.component, ComponentState.ENABLED); this.decorationAreaType = SubstanceLookAndFeel .getDecorationType(this.component); SubstanceSkin skin = SubstanceCoreUtilities.getSkin(this.component); this.isInDecorationArea = (this.decorationAreaType != null) && skin.isRegisteredAsDecorationArea(this.decorationAreaType) && SubstanceCoreUtilities.isOpaque(this.component); }
if (SubstanceCoreUtilities.isOpaque(c)) { for (Component corner : corners) { BackgroundPaintingUtils.fillAndWatermark(g, c, c
if (SubstanceCoreUtilities.isOpaque(c)) { for (Component corner : corners) { BackgroundPaintingUtils.fillAndWatermark(g, c, c
if (SubstanceCoreUtilities.isOpaque(c)) { BackgroundPaintingUtils.update(g, c, false);
if (SubstanceCoreUtilities.isOpaque(c)) { BackgroundPaintingUtils.update(g, c, false);