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(); } };
} 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,
} 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,
BackgroundPaintingUtils.fillAndWatermark(g, c, c .getBackground(), corner.getBounds());
BackgroundPaintingUtils.fillAndWatermark(g2d, this.list, rendererComponent.getBackground(), new Rectangle(cx, cy, cw, ch));
BackgroundPaintingUtils.fillAndWatermark(g2d, this.list, rendererComponent.getBackground(), new Rectangle(cx, cy, cw, ch));
BackgroundPaintingUtils.fillAndWatermark(g, c, c .getBackground(), corner.getBounds());
BackgroundPaintingUtils.fillAndWatermark(g2d, this.table, rendererComponent.getBackground(), highlightCellRect);
BackgroundPaintingUtils.fillAndWatermark(g2d, this.table, rendererComponent.getBackground(), highlightCellRect);