Lines Matching refs:graphics

33  * Graphics subclass supporting graphics debugging. Overrides most methods
50 Graphics graphics;
58 /** Log graphics operations. */
60 /** Flash graphics operations. */
64 /** Don't debug graphics operations. */
72 * Constructs a new debug graphics context that supports slowed
82 * Constructs a debug graphics context from an existing graphics
85 * @param graphics the Graphics context to slow down
88 public DebugGraphics(Graphics graphics, JComponent component) {
89 this(graphics);
94 * Constructs a debug graphics context from an existing graphics
97 * @param graphics the Graphics context to slow down
99 public DebugGraphics(Graphics graphics) {
101 this.graphics = graphics;
111 debugGraphics.graphics = graphics.create();
125 debugGraphics.graphics = graphics.create(x, y, width, height);
202 graphics.setFont(aFont);
209 return graphics.getFont();
218 graphics.setColor(aColor);
225 return graphics.getColor();
237 return graphics.getFontMetrics();
244 return graphics.getFontMetrics(f);
257 graphics.translate(x, y);
267 graphics.setPaintMode();
277 graphics.setXORMode(aColor);
284 return graphics.getClipBounds();
291 graphics.clipRect(x, y, width, height);
295 " New clipRect: " + graphics.getClip());
303 graphics.setClip(x, y, width, height);
306 " Setting new clipRect: " + graphics.getClip());
314 return graphics.getClip();
321 graphics.setClip(clip);
324 " Setting new clipRect: " + graphics.getClip());
352 graphics.setColor((i % 2) == 0 ? info.flashColor : oldColor);
353 graphics.drawRect(x, y, width, height);
357 graphics.setColor(oldColor);
359 graphics.drawRect(x, y, width, height);
386 graphics.setColor((i % 2) == 0 ? info.flashColor : oldColor);
387 graphics.fillRect(x, y, width, height);
391 graphics.setColor(oldColor);
393 graphics.fillRect(x, y, width, height);
420 graphics.setColor((i % 2) == 0 ? info.flashColor : oldColor);
421 graphics.clearRect(x, y, width, height);
425 graphics.setColor(oldColor);
427 graphics.clearRect(x, y, width, height);
457 graphics.setColor((i % 2) == 0 ? info.flashColor : oldColor);
458 graphics.drawRoundRect(x, y, width, height,
463 graphics.setColor(oldColor);
465 graphics.drawRoundRect(x, y, width, height, arcWidth, arcHeight);
495 graphics.setColor((i % 2) == 0 ? info.flashColor : oldColor);
496 graphics.fillRoundRect(x, y, width, height,
501 graphics.setColor(oldColor);
503 graphics.fillRoundRect(x, y, width, height, arcWidth, arcHeight);
530 graphics.setColor((i % 2) == 0 ? info.flashColor : oldColor);
531 graphics.drawLine(x1, y1, x2, y2);
535 graphics.setColor(oldColor);
537 graphics.drawLine(x1, y1, x2, y2);
565 graphics.setColor((i % 2) == 0 ? info.flashColor : oldColor);
566 graphics.draw3DRect(x, y, width, height, raised);
570 graphics.setColor(oldColor);
572 graphics.draw3DRect(x, y, width, height, raised);
600 graphics.setColor((i % 2) == 0 ? info.flashColor : oldColor);
601 graphics.fill3DRect(x, y, width, height, raised);
605 graphics.setColor(oldColor);
607 graphics.fill3DRect(x, y, width, height, raised);
633 graphics.setColor((i % 2) == 0 ? info.flashColor : oldColor);
634 graphics.drawOval(x, y, width, height);
638 graphics.setColor(oldColor);
640 graphics.drawOval(x, y, width, height);
666 graphics.setColor((i % 2) == 0 ? info.flashColor : oldColor);
667 graphics.fillOval(x, y, width, height);
671 graphics.setColor(oldColor);
673 graphics.fillOval(x, y, width, height);
703 graphics.setColor((i % 2) == 0 ? info.flashColor : oldColor);
704 graphics.drawArc(x, y, width, height, startAngle, arcAngle);
708 graphics.setColor(oldColor);
710 graphics.drawArc(x, y, width, height, startAngle, arcAngle);
740 graphics.setColor((i % 2) == 0 ? info.flashColor : oldColor);
741 graphics.fillArc(x, y, width, height, startAngle, arcAngle);
745 graphics.setColor(oldColor);
747 graphics.fillArc(x, y, width, height, startAngle, arcAngle);
775 graphics.setColor((i % 2) == 0 ? info.flashColor : oldColor);
776 graphics.drawPolyline(xPoints, yPoints, nPoints);
780 graphics.setColor(oldColor);
782 graphics.drawPolyline(xPoints, yPoints, nPoints);
810 graphics.setColor((i % 2) == 0 ? info.flashColor : oldColor);
811 graphics.drawPolygon(xPoints, yPoints, nPoints);
815 graphics.setColor(oldColor);
817 graphics.drawPolygon(xPoints, yPoints, nPoints);
845 graphics.setColor((i % 2) == 0 ? info.flashColor : oldColor);
846 graphics.fillPolygon(xPoints, yPoints, nPoints);
850 graphics.setColor(oldColor);
852 graphics.fillPolygon(xPoints, yPoints, nPoints);
879 graphics.setColor((i % 2) == 0 ? info.flashColor
881 graphics.drawString(aString, x, y);
885 graphics.setColor(oldColor);
887 graphics.drawString(aString, x, y);
914 graphics.setColor((i % 2) == 0 ? info.flashColor
916 graphics.drawString(iterator, x, y);
920 graphics.setColor(oldColor);
922 graphics.drawString(iterator, x, y);
931 Font font = graphics.getFont();
950 graphics.setColor((i % 2) == 0 ? info.flashColor
952 graphics.drawBytes(data, offset, length, x, y);
956 graphics.setColor(oldColor);
958 graphics.drawBytes(data, offset, length, x, y);
967 Font font = graphics.getFont();
986 graphics.setColor((i % 2) == 0 ? info.flashColor
988 graphics.drawChars(data, offset, length, x, y);
992 graphics.setColor(oldColor);
994 graphics.drawChars(data, offset, length, x, y);
1032 graphics.drawImage(imageToDraw, x, y,
1038 return graphics.drawImage(img, x, y, observer);
1076 graphics.drawImage(imageToDraw, x, y,
1082 return graphics.drawImage(img, x, y, width, height, observer);
1122 graphics.drawImage(imageToDraw, x, y,
1128 return graphics.drawImage(img, x, y, bgcolor, observer);
1169 graphics.drawImage(imageToDraw, x, y,
1175 return graphics.drawImage(img, x, y, width, height, bgcolor, observer);
1217 graphics.drawImage(imageToDraw,
1224 return graphics.drawImage(img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2,
1269 graphics.drawImage(imageToDraw,
1276 return graphics.drawImage(img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2,
1296 graphics.copyArea(x, y, width, height, destX, destY);
1310 graphics.dispose();
1311 graphics = null;
1332 /** Enables/disables diagnostic information about every graphics