public void paint(Graphics2D g, JXHeader jxHeader, int width, int height) { // SubstanceDecorationUtilities.paintDecorationBackground(g, // jxHeader, false); BackgroundPaintingUtils.update(g, jxHeader, false); // g.translate(0, height - 2); // SubstanceTheme decorationTheme = SubstanceThemeUtilities // .getDecorationTheme(jxHeader); // SubstanceCoreUtilities.paintSeparator(jxHeader, g, // decorationTheme.getColorScheme(), // SubstanceCoreUtilities.isThemeDark(decorationTheme), // width, 1, JSeparator.HORIZONTAL); // g.translate(0, 2 - height); } });
@Override public void paint(Graphics g, JComponent c) { BackgroundPaintingUtils.updateIfOpaque(g, c); }
@Override public void update(Graphics g, JComponent c) { BackgroundPaintingUtils.updateIfOpaque(g, c); JScrollPane jsp = (JScrollPane) c; BackgroundPaintingUtils.fillAndWatermark(g, c, c .getBackground(), corner.getBounds());
public void paint(Graphics2D g, Object jxTitledPanel, int width, int height) { JComponent titledPanel = (JComponent) jxTitledPanel; Graphics2D g2d = (Graphics2D) g.create(); // g2d.translate(10, 10); DecorationAreaType decorationType = SubstanceLookAndFeel .getDecorationType(titledPanel); if ((decorationType != null) && (SubstanceCoreUtilities.getSkin(titledPanel) .isRegisteredAsDecorationArea(decorationType))) { DecorationPainterUtils.paintDecorationBackground(g2d, titledPanel, false); } else { BackgroundPaintingUtils.fillAndWatermark(g2d, titledPanel, SubstanceCoreUtilities.getSkin(titledPanel) .getBackgroundColorScheme(decorationType) .getBackgroundFillColor(), new Rectangle(0, 0, titledPanel.getWidth(), titledPanel .getHeight())); } g2d.dispose(); } };
@Override public void update(Graphics g, JComponent c) { BackgroundPaintingUtils.updateIfOpaque(g, c); JScrollPane jsp = (JScrollPane) c; BackgroundPaintingUtils.fillAndWatermark(g, c, c .getBackground(), corner.getBounds());
BackgroundPaintingUtils.fillAndWatermark(g2d, this.list, rendererComponent.getBackground(), new Rectangle(cx, cy, cw, ch));
/** * Updates the background of the specified component on the specified * graphic context. The background is not painted when the * <code>force</code> parameter is <code>false</code> and at least one of * the following conditions holds: * <ul> * <li>The component is in a cell renderer.</li> * <li>The component is not showing on the screen.</li> * <li>The component is in the preview mode.</li> * </ul> * * @param g * Graphic context. * @param c * Component. * @param force * If <code>true</code>, the painting of background is enforced. */ public static void update(Graphics g, Component c, boolean force) { update(g, c, force, null); }
@Override public void update(Graphics g, JComponent c) { BackgroundPaintingUtils.updateIfOpaque(g, c); } else { if (this.tree.getComponentOrientation().isLeftToRight()) { BackgroundPaintingUtils.fillAndWatermark(g2d, this.tree, background, new Rectangle( paintBounds.x, bounds.y, paintBounds.width, bounds.height)); } else { BackgroundPaintingUtils.fillAndWatermark(g2d, this.tree, background, new Rectangle( paintBounds.x, bounds.y,
@Override public void paint(Graphics g, JComponent c) { BackgroundPaintingUtils.updateIfOpaque(g, c); }
BackgroundPaintingUtils.fillAndWatermark(g2d, this.list, rendererComponent.getBackground(), new Rectangle(cx, cy, cw, ch));
@Override public void update(Graphics g, JComponent c) { BackgroundPaintingUtils.update(g, this.monthView, false); this.paint(g, c); }
@Override public void update(Graphics g, JComponent c) { BackgroundPaintingUtils.updateIfOpaque(g, c); } else { if (this.tree.getComponentOrientation().isLeftToRight()) { BackgroundPaintingUtils.fillAndWatermark(g2d, this.tree, background, new Rectangle( paintBounds.x, bounds.y, paintBounds.width, bounds.height)); } else { BackgroundPaintingUtils.fillAndWatermark(g2d, this.tree, background, new Rectangle( paintBounds.x, bounds.y,
@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; }
BackgroundPaintingUtils.fillAndWatermark(g2d, this.table, rendererComponent.getBackground(), highlightCellRect);
/** * 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) { 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; }
BackgroundPaintingUtils.fillAndWatermark(g2d, this.table, rendererComponent.getBackground(), highlightCellRect);
/** * 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) { 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) { boolean isOpaque = SubstanceCoreUtilities.isOpaque(c); if (isOpaque) { BackgroundPaintingUtils.update(g, c, false); } else { super.update(g, c); } }