@Override public void paint(Graphics g, JComponent c) { BackgroundPaintingUtils.updateIfOpaque(g, c); }
@Override public void paint(Graphics g, JComponent c) { BackgroundPaintingUtils.updateIfOpaque(g, c); }
@Override public void update(Graphics g, JComponent c) { BackgroundPaintingUtils.updateIfOpaque(g, c); Graphics2D g2d = (Graphics2D) g.create(); SubstanceStripingUtils.setup(c); this.updateInfo = new TableUpdateOptimizationInfo(); this.paint(g2d, c); SubstanceStripingUtils.tearDown(c); g2d.dispose(); this.updateInfo = null; }
@Override public void update(Graphics g, JComponent c) { BackgroundPaintingUtils.updateIfOpaque(g, c); Graphics2D g2d = (Graphics2D) g.create(); SubstanceStripingUtils.setup(c); this.updateInfo = new UpdateOptimizationInfo(c); this.paint(g2d, c); SubstanceStripingUtils.tearDown(c); g2d.dispose(); this.updateInfo = null; }
@Override public void update(Graphics g, JComponent c) { BackgroundPaintingUtils.updateIfOpaque(g, c); Graphics2D g2d = (Graphics2D) g.create(); SubstanceStripingUtils.setup(c); this.updateInfo = new UpdateOptimizationInfo(c); this.paint(g2d, c); SubstanceStripingUtils.tearDown(c); g2d.dispose(); this.updateInfo = null; }
@Override public void update(Graphics g, JComponent c) { BackgroundPaintingUtils.updateIfOpaque(g, c); Graphics2D g2d = (Graphics2D) g.create(); SubstanceStripingUtils.setup(c); this.updateInfo = new TableUpdateOptimizationInfo(); this.paint(g2d, c); SubstanceStripingUtils.tearDown(c); g2d.dispose(); this.updateInfo = null; }
@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 void paint(JComponent component, Graphics2D graphics, boolean paintSeparator) { BackgroundPaintingUtils.updateIfOpaque(graphics, component); if (paintSeparator) { SubstanceSkin skin = SubstanceLookAndFeel.getCurrentSkin(component); DecorationAreaType decorationAreaType = SubstanceLookAndFeel .getDecorationType(component); List<SubstanceOverlayPainter> overlayPainters = skin .getOverlayPainters(decorationAreaType); // only if there are no overlays specified on this decoration area // type in the skin if (overlayPainters.size() == 0) { // paint the separator on top. SeparatorPainterUtils.paintSeparator(component, graphics, component.getWidth(), 0, JSeparator.HORIZONTAL, false, 0); } } } }
currState); BackgroundPaintingUtils.updateIfOpaque(graphics, c);
currState); BackgroundPaintingUtils.updateIfOpaque(graphics, c);
@Override public void update(Graphics g, JComponent c) { BackgroundPaintingUtils.updateIfOpaque(g, c); JScrollPane jsp = (JScrollPane) c;
BackgroundPaintingUtils.updateIfOpaque(g2d, c); if (icon != null) { icon.paintIcon(c, g2d, paintIconR.x, paintIconR.y);
@Override public void paint(Graphics g) { if (SubstanceCoreUtilities.hasFlatAppearance(this.splitPane, true)) { BackgroundPaintingUtils.updateIfOpaque(g, this.splitPane);
BackgroundPaintingUtils.updateIfOpaque(g2d, c); if (icon != null) { icon.paintIcon(c, g2d, paintIconR.x, paintIconR.y);
@Override public void update(Graphics g, JComponent c) { BackgroundPaintingUtils.updateIfOpaque(g, c); JScrollPane jsp = (JScrollPane) c;
@Override public void paint(Graphics g) { if (SubstanceCoreUtilities.hasFlatAppearance(this.splitPane, true)) { BackgroundPaintingUtils.updateIfOpaque(g, this.splitPane);
@Override public void update(Graphics g, JComponent c) { BackgroundPaintingUtils.updateIfOpaque(g, c);
@Override public void update(Graphics g, JComponent c) { BackgroundPaintingUtils.updateIfOpaque(g, c);