/** * {@inheritDoc} */ @Override public void paint(Graphics2D g, T component, int width, int height) { if (p != null) { p.paint(g, component, width, height); } } }
/** * {@inheritDoc} */ @Override public void paint(Graphics2D g, T component, int width, int height) { if (p != null) { p.paint(g, component, width, height); } } }
public void paint(Graphics g){ super.paint(g); for (Painter p : painters) { p.paint(g); } };
/** * {@inheritDoc} */ public void paint(Graphics2D g, T component, int width, int height) { if (p != null) { p.paint(g, component, width, height); } } }
/** * {@inheritDoc} */ @Override public void paint(Graphics2D g, T component, int width, int height) { if (p != null) { p.paint(g, component, width, height); } } }
@Override public void paint( Graphics g ) { int width = getWidth(); int height = getHeight(); //Loops through all the layers in the order they were added //And tells them to paint onto this panels graphic context for(Painter painter : layerPainters) { painter.paint(g,this,width,height); } }
public void paintIcon(Component c, Graphics g, int x, int y) { if (getPainter() != null && g instanceof Graphics2D) { g = g.create(); try { g.translate(x, y); getPainter().paint((Graphics2D) g, c, size.width, size.height); g.translate(-x, -y); } finally { g.dispose(); } } }
@Override public void paintIcon(Component c, Graphics g, int x, int y) { if (getPainter() != null && g instanceof Graphics2D) { g = g.create(); try { g.translate(x, y); getPainter().paint((Graphics2D) g, c, size.width, size.height); g.translate(-x, -y); } finally { g.dispose(); } } }
@Override public void paintIcon(Component c, Graphics g, int x, int y) { if (getPainter() != null && g instanceof Graphics2D) { g = g.create(); try { g.translate(x, y); getPainter().paint((Graphics2D) g, c, size.width, size.height); g.translate(-x, -y); } finally { g.dispose(); } } }
@Override public void paintIcon(Component c, Graphics g, int x, int y) { if (getPainter() != null && g instanceof Graphics2D) { g = g.create(); try { g.translate(x, y); getPainter().paint((Graphics2D) g, c, size.width, size.height); g.translate(-x, -y); } finally { g.dispose(); } } }
@Override public void paintIcon(Component c, Graphics g, int x, int y) { if (getPainter() != null && g instanceof Graphics2D) { g = g.create(); try { g.translate(x, y); getPainter().paint((Graphics2D) g, c, size.width, size.height); g.translate(-x, -y); } finally { g.dispose(); } } }
/** * {@inheritDoc} */ @Override public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g.create(); try { painter.paint(g2d, c, c.getWidth(), c.getHeight()); } finally { g2d.dispose(); } }
/** * {@inheritDoc} */ @Override public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g.create(); try { painter.paint(g2d, c, c.getWidth(), c.getHeight()); } finally { g2d.dispose(); } }
/** * {@inheritDoc} */ @Override public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g.create(); try { painter.paint(g2d, c, c.getWidth(), c.getHeight()); } finally { g2d.dispose(); } }
/** * {@inheritDoc} */ @Override public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g.create(); try { painter.paint(g2d, c, c.getWidth(), c.getHeight()); } finally { g2d.dispose(); } }
protected void paintComponent(Graphics gfx) { Graphics2D g = (Graphics2D)gfx; if(getPainter() != null) { for(JComponent target : targets) { Point offset = calcOffset(target); g.translate(offset.x,offset.y); getPainter().paint(g, target, target.getWidth(), target.getHeight()); g.translate(-offset.x,-offset.y); } } }
private void drawOverlays(final int zoom, final Graphics g, final Rectangle viewportBounds) { if (overlay != null) { overlay.paint((Graphics2D)g, this, getWidth(), getHeight()); } }
@SuppressWarnings("unused") private void drawOverlays(final int zoom, final Graphics g, final Rectangle viewportBounds) { if (overlay != null) { overlay.paint((Graphics2D) g, this, getWidth(), getHeight()); } }
/** * {@inheritDoc} */ @Override protected void doPaint(Graphics2D g, T component, int width, int height) { for (Painter<T> p : getPainters()) { Graphics2D temp = (Graphics2D) g.create(); try { p.paint(temp, component, width, height); if(isClipPreserved()) { g.setClip(temp.getClip()); } } finally { temp.dispose(); } } }
protected void paintComponentPatch(Graphics g) { Graphics2D g2 = (Graphics2D) g.create(); try { if (isPaintingBackground()) { g2.setColor(getBackground()); g2.fillRect(0, 0, getWidth(), getHeight()); } if (getBackgroundPainter() != null) { getBackgroundPainter().paint(g2, this, getWidth(), getHeight()); } fakeTransparent = true; getUI().update(g2, this); } finally { g2.dispose(); fakeTransparent = false; } }