public void paint(Graphics g) { super.paint(g); // paintNumWaitingGC(g); } };
public void paint(Graphics g) { super.paint(g); // paintNumWaitingGC(g); } };
@Override public void paint(Graphics g) { if (g instanceof Graphics2D) { Graphics2D g2d = (Graphics2D) g; g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); } super.paint(g); }
public void paint(Graphics _g) { BuLib.setAntialiasing(this,_g); super.paint(_g); }
public void paint(Graphics _g) { BuLib.setAntialiasing(this,_g); super.paint(_g); }
public void paint(Graphics _g) { BuLib.setAntialiasing(this,_g); super.paint(_g); }
public void paint(Graphics g) { super.paint(g); // Draw the arrow int w = getSize().width; int h = getSize().height; int size = Math.min((h - 4) / 3, (w - 4) / 3); size = Math.max(size, 2); paintTriangle(g, (w - size) / 2 + 1, (h - size) / 2 + 1, size); }
@Override public void paint(Graphics g) { g = transparency.setup(g); super.paint(g); transparency.cleanup(g); }
@Override public void paint(Graphics g) { super.paint(g); if (value != null) { g.setColor(value); Rectangle r = getBounds(); r.grow(-5, -5); g.fill3DRect(r.x, r.y, r.width, r.height, true); } } };
@Override public void paint(Graphics g) { super.paint(g); if (value != null) { g.setColor(value); Rectangle r = getBounds(); r.grow(-5, -5); g.fill3DRect(r.x, r.y, r.width, r.height, true); } } };
public BufferedImage getSnapshot() { if (snapshot == null) { snapshot = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice() .getDefaultConfiguration().createCompatibleImage(getWidth(), getHeight()); if (log) { PropUtils.log(ButtonPanel.class, "Created " + snapshot + " custom editor button backing image"); } if (snapshot.getAlphaRaster() == null) { //Alpha not supported, could cause corruption (issue //39280) - use a bufferedImage which will support alpha, //although less efficient to blit snapshot = new BufferedImage(getWidth(), getHeight(), BufferedImage.TYPE_INT_ARGB); } Graphics g = snapshot.getGraphics(); super.paint(g); } return snapshot; } }
@Override public void paint(Graphics g) { super.paint(g); if( underline && isEnabled() ) { Font f = getFont(); FontMetrics fm = getFontMetrics(f); int iconWidth = 0; if( null != getIcon() ) { iconWidth = getIcon().getIconWidth()+getIconTextGap(); } int x1 = iconWidth; int y1 = fm.getHeight(); int x2 = fm.stringWidth(getText()) + iconWidth; if( getText().length() > 0 ) g.drawLine(x1, y1, x2, y1); } }
@Override public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g.create(); int componentFontSize = SubstanceSizeUtils.getComponentFontSize(this); int width = getWidth(); int height = getHeight(); int clipDelta = (int) SubstanceSizeUtils .getBorderStrokeWidth(componentFontSize); if (this.getComponentOrientation().isLeftToRight()) { g2d.clipRect(clipDelta, 0, width - clipDelta, height); } else { g2d.clipRect(0, 0, width - clipDelta, height); } super.paint(g2d); g2d.dispose(); } }
@Override public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g.create(); int componentFontSize = SubstanceSizeUtils.getComponentFontSize(this); int width = getWidth(); int height = getHeight(); int clipDelta = (int) SubstanceSizeUtils .getBorderStrokeWidth(componentFontSize); if (this.getComponentOrientation().isLeftToRight()) { g2d.clipRect(clipDelta, 0, width - clipDelta, height); } else { g2d.clipRect(0, 0, width - clipDelta, height); } super.paint(g2d); g2d.dispose(); } }
@Override public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g.create(); int componentFontSize = SubstanceSizeUtils.getComponentFontSize(this); int width = getWidth(); int height = getHeight(); int clipDelta = (int) SubstanceSizeUtils .getBorderStrokeWidth(componentFontSize); if (this.getComponentOrientation().isLeftToRight()) { g2d.clipRect(clipDelta, 0, width - clipDelta, height); } else { g2d.clipRect(0, 0, width - clipDelta, height); } super.paint(g2d); g2d.dispose(); } }
@Override public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g.create(); int componentFontSize = SubstanceSizeUtils.getComponentFontSize(this); int width = getWidth(); int height = getHeight(); int clipDelta = (int) SubstanceSizeUtils .getBorderStrokeWidth(componentFontSize); if (this.getComponentOrientation().isLeftToRight()) { g2d.clipRect(clipDelta, 0, width - clipDelta, height); } else { g2d.clipRect(0, 0, width - clipDelta, height); } super.paint(g2d); g2d.dispose(); } }
public void paint (Graphics g) { if (PropUtils.useOptimizedCustomButtonPainting() && !hasFocus()) { if (log) { PropUtils.log (ButtonPanel.class, "Blitting custom editor "+ "button backing store for button at " + getBounds() + " in " + (getParent() == null ? " null parent" : getParent() + "editor=" + inplace)); //NOI18N } ((Graphics2D)g).drawRenderedImage(getSnapshot(), at); } else { if (log) { PropUtils.log (ButtonPanel.class, "Painting unoptimized custom editor "+ "button button at " + getBounds() + " in " + (getParent() == null ? " null parent" : getParent() + "editor=" + inplace)); //NOI18N } super.paint(g); } }
public void paint(Graphics g) { if (PropUtils.useOptimizedCustomButtonPainting() && !hasFocus()) { if (log) { PropUtils.log( ButtonPanel.class, "Blitting custom editor " + "button backing store for button at " + getBounds() + " in " + ((getParent() == null) ? " null parent" : (getParent() + "editor=" + inplace)) ); //NOI18N } ((Graphics2D) g).drawRenderedImage(getSnapshot(), at); } else { if (log) { PropUtils.log( ButtonPanel.class, "Painting unoptimized custom editor " + "button button at " + getBounds() + " in " + ((getParent() == null) ? " null parent" : (getParent() + "editor=" + inplace)) ); //NOI18N } super.paint(g); } }
public void paint (Graphics g) { if (PropUtils.useOptimizedCustomButtonPainting() && !hasFocus()) { if (log) { PropUtils.log (ButtonPanel.class, "Blitting custom editor "+ "button backing store for button at " + getBounds() + " in " + (getParent() == null ? " null parent" : getParent() + "editor=" + inplace)); //NOI18N } ((Graphics2D)g).drawRenderedImage(getSnapshot(), at); } else { if (log) { PropUtils.log (ButtonPanel.class, "Painting unoptimized custom editor "+ "button button at " + getBounds() + " in " + (getParent() == null ? " null parent" : getParent() + "editor=" + inplace)); //NOI18N } super.paint(g); } }