@Override protected void paintChildren(Graphics g) { paintingChildren = true; try { super.paintChildren(g); } finally { paintingChildren = false; } }
protected void paintChildren (Graphics g) { super.paintChildren(g); } }
public void paintChildren (Graphics g) { if ( !expanded ) return; super.paintChildren(g); }
public void paintChildren (Graphics g) { if ( !expanded ) return; super.paintChildren(g); }
@Override public void paintChildren( Graphics g ){ super.paintChildren( g ); }
protected void paintChildren (Graphics g) { super.paintChildren(g); } }
@Override protected void paintChildren(Graphics g) { Graphics2D g2d = (Graphics2D)g; Composite oldC = g2d.getComposite(); g2d.setComposite( AlphaComposite.getInstance( AlphaComposite.SRC_OVER, currentAlpha ) ); super.paintChildren(g); g2d.setComposite( oldC ); }
@Override protected void paintChildren(Graphics g) { if (isEnabled()) { super.paintChildren(g); } }
public void paintChildren(Graphics g) { super.paintChildren(g); if (componentVisible) { Rectangle b = component.getBounds(); g.drawImage(DRAG_TIP_IMAGE, b.x + b.width - 11, b.y + b.height - 11 + RESIZE_PANEL_SIZE.height, this); } }
private void paintChildren(final Graphics2D g2, final PaintingMode[] paintModes) { for(final PaintingMode paintingMode : paintModes){ this.paintingMode = paintingMode; switch(paintingMode){ case LINKS: if(HIDE_CONNECTORS != showConnectors) paintConnectors(g2); break; default: super.paintChildren(g2); } } }
public void paintChildren(Graphics g) { super.paintChildren(g); if (topBorder) { final Graphics2D g2 = (Graphics2D) g; final int w = getWidth(); g2.setPaint(pntTopBorder()); g2.fillRect(0, 0, w, 8); } } }
protected void paintChildren (Graphics g) { super.paintChildren (g); Graphics2D gr = (Graphics2D) g; gr.setColor (BORDER_COLOR); gr.draw (new RoundRectangle2D.Float (0, 0, getWidth () - 1, getHeight () - 1, 8, 8)); }
private void highlightEditor(final Graphics2D g2) { final Component editor = getComponent(0); if(editor instanceof NodeView) return; final java.awt.Shape oldClip = g2.getClip(); try{ g2.setClip(editor.getX(), editor.getY(), editor.getWidth(), editor.getHeight()); super.paintChildren(g2); } finally{ g2.setClip(oldClip); } }
@Override protected void paintChildren(Graphics g) { super.paintChildren(g); if(null != planetIcon) { Graphics2D gfx = (Graphics2D) g; final int width = getWidth(); final int offset = 6; gfx.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); Arc2D.Double arc = new Arc2D.Double(); gfx.setPaint(Color.BLACK); arc.setArcByCenter(width - 32 - offset, 32 + offset, 35, 0, 360, Arc2D.OPEN); gfx.fill(arc); gfx.setPaint(Color.WHITE); arc.setArcByCenter(width - 32 - offset, 32 + offset, 34, 0, 360, Arc2D.OPEN); gfx.fill(arc); gfx.drawImage(planetIcon, width - 64 - offset, offset, 64, 64, null); } }
@Override protected void paintChildren(Graphics g) { updateBaseHeight(); updateBaseWidth(); updateChildren(); super.paintChildren(g); }
protected void paintChildren(Graphics g) { if (canPaint.get()) { try { doPaintChildren(g); } catch (OutOfMemoryError e) { canPaint.set( false ); remove( imagePanel ); setLayout( new LabelLayout() ); add( myErrorComponent ); } } else { super.paintChildren(g); } }
/** * Uses the DividerPainter (if any) to paint each Divider that * overlaps the clip Rectangle. This is done after the call to * <code>super.paintChildren()</code> so that Dividers can be * rendered "on top of" the children. * <p/> * {@inheritDoc} */ protected void paintChildren(Graphics g) { super.paintChildren(g); DividerPainter dp = getDividerPainter(); Rectangle clipR = g.getClipBounds(); if ((dp != null) && (clipR != null)) { Graphics dpg = g.create(); try { MultiSplitLayout msl = getMultiSplitLayout(); for (Divider divider : msl.dividersThatOverlap(clipR)) { dp.paint(dpg, divider); } } finally { dpg.dispose(); } } }
private void doPaintChildren( Graphics g ) { super.paintChildren(g); int xOff = imagePanel.getX(); int yOff = imagePanel.getY(); g.setColor(Color.BLACK); int w = imagePanel.getWidth(), h = imagePanel.getHeight(); drawCross( g, xOff - 1, yOff -1); drawCross( g, xOff - 1, yOff + h + 1); drawCross( g, xOff + w + 1, yOff -1); drawCross( g, xOff + w + 1, yOff + h + 1); Rectangle2D clip = new Rectangle2D.Float( xOff, yOff, w, h); Rectangle visible = getVisibleRect(); if (visible != null) { clip = visible.createIntersection(clip); } g.setClip( clip); paintPanel(g, xOff, yOff); }
/** * Uses the DividerPainter (if any) to paint each Divider that * overlaps the clip Rectangle. This is done after the call to * <code>super.paintChildren()</code> so that Dividers can be * rendered "on top of" the children. * <p> * {@inheritDoc} */ @Override protected void paintChildren(Graphics g) { super.paintChildren(g); DividerPainter dp = getDividerPainter(); Rectangle clipR = g.getClipBounds(); if ((dp != null) && (clipR != null)) { MultiSplitLayout msl = getMultiSplitLayout(); if ( msl.hasModel()) { for(Divider divider : msl.dividersThatOverlap(clipR)) { Rectangle bounds = divider.getBounds(); Graphics cg = g.create( bounds.x, bounds.y, bounds.width, bounds.height ); try { dp.paint((Graphics2D)cg, divider, bounds.width, bounds.height ); } finally { cg.dispose(); } } } } }
protected void paintChildren(final Graphics g) { super.paintChildren(g); if (getLabelComponent().getParent() == null) return; final Rectangle textBounds = SwingUtilities.convertRectangle(getLabelComponent().getParent(), getLabelComponent().getBounds(), this); // Paint border around label if we got the focus if (isFocusOwner()) { g.setColor(UIUtil.getTreeSelectionBorderColor()); DrawUtil.drawDottedRectangle(g, textBounds.x, textBounds.y, textBounds.x + textBounds.width - 1, textBounds.y + textBounds.height - 1); } if (myOverlayedIcon == null) return; }