@Override public void paint(Graphics g, JComponent c) { int w = c.getWidth(); int bgw = backgroundImage.getWidth(); int bgh = backgroundImage.getHeight(); // left border g.drawImage(backgroundImage, 0, 0, c); // draw center for (int x = bgw; x < w; x += bgw - 6) { g.drawImage(backgroundImage, x, 0, x + bgw - 6, bgh, 3, 0, bgw - 3, bgh, c); } // draw right border g.drawImage(backgroundImage, w, 0, w - 2, bgh, bgw - 2, 0, bgw, bgh, c); super.paint(g, c); } }
@Override public void paint (Graphics g, JComponent c) { super.paint (MaterialDrawingUtils.getAliasedGraphics (g), c); } }
@Override public void paint(Graphics g, JComponent c) { // Repeat the graphic as much as needed, the graphic is designed for this, so the start fits to the end of the graphic for (int i = 0; i < c.getWidth(); i += backgroundImage.getWidth()) { g.drawImage(backgroundImage, i, 0, c); } BorderHelper.drawBorder(g, c, BORDER, BORDER_FACTOR); super.paint(g, c); }
private void superPaintSafe(final Graphics g, final ZoomableLabel label) { try { Icon textRenderingIcon = getTextRenderingIcon(label); if(textRenderingIcon != null) paintIcons(g, label, textRenderingIcon); else super.paint(g, label); } catch (ClassCastException e) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { label.setText(TextUtils.format("html_problem", label.getText())); } }); } }
@Override public void paint(Graphics gr, JComponent c) { Graphics2D g = (Graphics2D) gr; Object oldHints = PaletteUtilities.beginGraphics(g); // Paint background again so that the texture paint is drawn /* if (c.isOpaque()) { g.setPaint(PaintableColor.getPaint(c.getBackground(), c)); g.fillRect(0, 0, c.getWidth(), c.getHeight()); }*/ // Paint background border /* Border b = c.getBorder(); if (b != null && b instanceof BackgroundBorder) { ((BackgroundBorder) b).getBackgroundBorder().paintBorder(c, g, 0, 0, c.getWidth(), c.getHeight()); }*/ super.paint(g, c); PaletteUtilities.endGraphics(g, oldHints); }
@Override public void paint(Graphics g, JComponent c) { if (JideSwingUtilities.getOrientationOf(c) == SwingConstants.VERTICAL) { boolean clockwise = true; if (c instanceof JideLabel) { clockwise = ((JideLabel) c).isClockwise(); } paintVertically(g, c, clockwise); } else { super.paint(g, c); } }
orientation = Orientation.Horizontal; super.paint(g, c); } else { if (orientation != Orientation.Vertical) {
public void paint(Graphics g, JComponent c) { if (direction == Direction.RIGHT && ! mirror){ super.paint(g, c); return;
super.paint( g, c ); return;
int zone = btn.getZone(); if(zone == DockingConstants.INT_HIDE_TOP || zone == DockingConstants.INT_SPLIT_BOTTOM) { super.paint(g, comp); } else {