001: /* ====================================================================
002: Licensed to the Apache Software Foundation (ASF) under one or more
003: contributor license agreements. See the NOTICE file distributed with
004: this work for additional information regarding copyright ownership.
005: The ASF licenses this file to You under the Apache License, Version 2.0
006: (the "License"); you may not use this file except in compliance with
007: the License. You may obtain a copy of the License at
008:
009: http://www.apache.org/licenses/LICENSE-2.0
010:
011: Unless required by applicable law or agreed to in writing, software
012: distributed under the License is distributed on an "AS IS" BASIS,
013: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: See the License for the specific language governing permissions and
015: limitations under the License.
016: ==================================================================== */
017:
018: package org.apache.poi.hssf.usermodel;
019:
020: import java.awt.*;
021: import java.awt.geom.AffineTransform;
022: import java.awt.image.BufferedImage;
023: import java.awt.image.BufferedImageOp;
024: import java.awt.image.ImageObserver;
025: import java.awt.image.RenderedImage;
026: import java.awt.image.renderable.RenderableImage;
027: import java.awt.font.GlyphVector;
028: import java.awt.font.FontRenderContext;
029: import java.util.Map;
030: import java.text.AttributedCharacterIterator;
031:
032: public class DummyGraphics2d extends Graphics2D {
033: BufferedImage img;
034: private Graphics2D g2D;
035:
036: public DummyGraphics2d() {
037: img = new BufferedImage(1000, 1000, 2);
038: g2D = (Graphics2D) img.getGraphics();
039: }
040:
041: public void addRenderingHints(Map hints) {
042: System.out.println("addRenderingHinds(Map):");
043: System.out.println(" hints = " + hints);
044: g2D.addRenderingHints(hints);
045: }
046:
047: public void clip(Shape s) {
048: System.out.println("clip(Shape):");
049: System.out.println(" s = " + s);
050: g2D.clip(s);
051: }
052:
053: public void draw(Shape s) {
054: System.out.println("draw(Shape):");
055: System.out.println("s = " + s);
056: g2D.draw(s);
057: }
058:
059: public void drawGlyphVector(GlyphVector g, float x, float y) {
060: System.out
061: .println("drawGlyphVector(GlyphVector, float, float):");
062: System.out.println("g = " + g);
063: System.out.println("x = " + x);
064: System.out.println("y = " + y);
065: g2D.drawGlyphVector(g, x, y);
066: }
067:
068: public void drawImage(BufferedImage img, BufferedImageOp op, int x,
069: int y) {
070: System.out
071: .println("drawImage(BufferedImage, BufferedImageOp, x, y):");
072: System.out.println("img = " + img);
073: System.out.println("op = " + op);
074: System.out.println("x = " + x);
075: System.out.println("y = " + y);
076: g2D.drawImage(img, op, x, y);
077: }
078:
079: public boolean drawImage(Image img, AffineTransform xform,
080: ImageObserver obs) {
081: System.out
082: .println("drawImage(Image,AfflineTransform,ImageObserver):");
083: System.out.println("img = " + img);
084: System.out.println("xform = " + xform);
085: System.out.println("obs = " + obs);
086: return g2D.drawImage(img, xform, obs);
087: }
088:
089: public void drawRenderableImage(RenderableImage img,
090: AffineTransform xform) {
091: System.out
092: .println("drawRenderableImage(RenderableImage, AfflineTransform):");
093: System.out.println("img = " + img);
094: System.out.println("xform = " + xform);
095: g2D.drawRenderableImage(img, xform);
096: }
097:
098: public void drawRenderedImage(RenderedImage img,
099: AffineTransform xform) {
100: System.out
101: .println("drawRenderedImage(RenderedImage, AffineTransform):");
102: System.out.println("img = " + img);
103: System.out.println("xform = " + xform);
104: g2D.drawRenderedImage(img, xform);
105: }
106:
107: public void drawString(AttributedCharacterIterator iterator,
108: float x, float y) {
109: System.out.println("drawString(AttributedCharacterIterator):");
110: System.out.println("iterator = " + iterator);
111: System.out.println("x = " + x);
112: System.out.println("y = " + y);
113: g2D.drawString(iterator, x, y);
114: }
115:
116: // public void drawString(AttributedCharacterIterator iterator,
117: // int x, int y)
118: // {
119: // g2D.drawString( iterator, x, y );
120: // }
121:
122: public void drawString(String s, float x, float y) {
123: System.out.println("drawString(s,x,y):");
124: System.out.println("s = " + s);
125: System.out.println("x = " + x);
126: System.out.println("y = " + y);
127: g2D.drawString(s, x, y);
128: }
129:
130: // public void drawString(String str, int x, int y)
131: // {
132: // g2D.drawString( str, x, y );
133: // }
134:
135: public void fill(Shape s) {
136: System.out.println("fill(Shape):");
137: System.out.println("s = " + s);
138: g2D.fill(s);
139: }
140:
141: // public void fill3DRect(int x, int y, int width, int height,
142: // boolean raised) {
143: // g2D.fill3DRect( x, y, width, height, raised );
144: // }
145:
146: public Color getBackground() {
147: System.out.println("getBackground():");
148: return g2D.getBackground();
149: }
150:
151: public Composite getComposite() {
152: System.out.println("getComposite():");
153: return g2D.getComposite();
154: }
155:
156: public GraphicsConfiguration getDeviceConfiguration() {
157: System.out.println("getDeviceConfiguration():");
158: return g2D.getDeviceConfiguration();
159: }
160:
161: public FontRenderContext getFontRenderContext() {
162: System.out.println("getFontRenderContext():");
163: return g2D.getFontRenderContext();
164: }
165:
166: public Paint getPaint() {
167: System.out.println("getPaint():");
168: return g2D.getPaint();
169: }
170:
171: public Object getRenderingHint(RenderingHints.Key hintKey) {
172: System.out.println("getRenderingHint(RenderingHints.Key):");
173: System.out.println("hintKey = " + hintKey);
174: return g2D.getRenderingHint(hintKey);
175: }
176:
177: public RenderingHints getRenderingHints() {
178: System.out.println("getRenderingHints():");
179: return g2D.getRenderingHints();
180: }
181:
182: public Stroke getStroke() {
183: System.out.println("getStroke():");
184: return g2D.getStroke();
185: }
186:
187: public AffineTransform getTransform() {
188: System.out.println("getTransform():");
189: return g2D.getTransform();
190: }
191:
192: public boolean hit(Rectangle rect, Shape s, boolean onStroke) {
193: System.out.println("hit(Rectangle, Shape, onStroke):");
194: System.out.println("rect = " + rect);
195: System.out.println("s = " + s);
196: System.out.println("onStroke = " + onStroke);
197: return g2D.hit(rect, s, onStroke);
198: }
199:
200: public void rotate(double theta) {
201: System.out.println("rotate(theta):");
202: System.out.println("theta = " + theta);
203: g2D.rotate(theta);
204: }
205:
206: public void rotate(double theta, double x, double y) {
207: System.out.println("rotate(double,double,double):");
208: System.out.println("theta = " + theta);
209: System.out.println("x = " + x);
210: System.out.println("y = " + y);
211: g2D.rotate(theta, x, y);
212: }
213:
214: public void scale(double sx, double sy) {
215: System.out.println("scale(double,double):");
216: System.out.println("sx = " + sx);
217: System.out.println("sy");
218: g2D.scale(sx, sy);
219: }
220:
221: public void setBackground(Color color) {
222: System.out.println("setBackground(Color):");
223: System.out.println("color = " + color);
224: g2D.setBackground(color);
225: }
226:
227: public void setComposite(Composite comp) {
228: System.out.println("setComposite(Composite):");
229: System.out.println("comp = " + comp);
230: g2D.setComposite(comp);
231: }
232:
233: public void setPaint(Paint paint) {
234: System.out.println("setPain(Paint):");
235: System.out.println("paint = " + paint);
236: g2D.setPaint(paint);
237: }
238:
239: public void setRenderingHint(RenderingHints.Key hintKey,
240: Object hintValue) {
241: System.out
242: .println("setRenderingHint(RenderingHints.Key, Object):");
243: System.out.println("hintKey = " + hintKey);
244: System.out.println("hintValue = " + hintValue);
245: g2D.setRenderingHint(hintKey, hintValue);
246: }
247:
248: public void setRenderingHints(Map hints) {
249: System.out.println("setRenderingHints(Map):");
250: System.out.println("hints = " + hints);
251: g2D.setRenderingHints(hints);
252: }
253:
254: public void setStroke(Stroke s) {
255: System.out.println("setStroke(Stoke):");
256: System.out.println("s = " + s);
257: g2D.setStroke(s);
258: }
259:
260: public void setTransform(AffineTransform Tx) {
261: System.out.println("setTransform():");
262: System.out.println("Tx = " + Tx);
263: g2D.setTransform(Tx);
264: }
265:
266: public void shear(double shx, double shy) {
267: System.out.println("shear(shx, dhy):");
268: System.out.println("shx = " + shx);
269: System.out.println("shy = " + shy);
270: g2D.shear(shx, shy);
271: }
272:
273: public void transform(AffineTransform Tx) {
274: System.out.println("transform(AffineTransform):");
275: System.out.println("Tx = " + Tx);
276: g2D.transform(Tx);
277: }
278:
279: public void translate(double tx, double ty) {
280: System.out.println("translate(double, double):");
281: System.out.println("tx = " + tx);
282: System.out.println("ty = " + ty);
283: g2D.translate(tx, ty);
284: }
285:
286: // public void translate(int x, int y)
287: // {
288: // g2D.translate( x, y );
289: // }
290:
291: public void clearRect(int x, int y, int width, int height) {
292: System.out.println("clearRect(int,int,int,int):");
293: System.out.println("x = " + x);
294: System.out.println("y = " + y);
295: System.out.println("width = " + width);
296: System.out.println("height = " + height);
297: g2D.clearRect(x, y, width, height);
298: }
299:
300: public void clipRect(int x, int y, int width, int height) {
301: System.out.println("clipRect(int, int, int, int):");
302: System.out.println("x = " + x);
303: System.out.println("y = " + y);
304: System.out.println("width = " + width);
305: System.out.println("height = " + height);
306: g2D.clipRect(x, y, width, height);
307: }
308:
309: public void copyArea(int x, int y, int width, int height, int dx,
310: int dy) {
311: System.out.println("copyArea(int,int,int,int):");
312: System.out.println("x = " + x);
313: System.out.println("y = " + y);
314: System.out.println("width = " + width);
315: System.out.println("height = " + height);
316: g2D.copyArea(x, y, width, height, dx, dy);
317: }
318:
319: public Graphics create() {
320: System.out.println("create():");
321: return g2D.create();
322: }
323:
324: public Graphics create(int x, int y, int width, int height) {
325: System.out.println("create(int,int,int,int):");
326: System.out.println("x = " + x);
327: System.out.println("y = " + y);
328: System.out.println("width = " + width);
329: System.out.println("height = " + height);
330: return g2D.create(x, y, width, height);
331: }
332:
333: public void dispose() {
334: System.out.println("dispose():");
335: g2D.dispose();
336: }
337:
338: public void draw3DRect(int x, int y, int width, int height,
339: boolean raised) {
340: System.out.println("draw3DRect(int,int,int,int,boolean):");
341: System.out.println("x = " + x);
342: System.out.println("y = " + y);
343: System.out.println("width = " + width);
344: System.out.println("height = " + height);
345: System.out.println("raised = " + raised);
346: g2D.draw3DRect(x, y, width, height, raised);
347: }
348:
349: public void drawArc(int x, int y, int width, int height,
350: int startAngle, int arcAngle) {
351: System.out.println("drawArc(int,int,int,int,int,int):");
352: System.out.println("x = " + x);
353: System.out.println("y = " + y);
354: System.out.println("width = " + width);
355: System.out.println("height = " + height);
356: System.out.println("startAngle = " + startAngle);
357: System.out.println("arcAngle = " + arcAngle);
358: g2D.drawArc(x, y, width, height, startAngle, arcAngle);
359: }
360:
361: public void drawBytes(byte data[], int offset, int length, int x,
362: int y) {
363: System.out.println("drawBytes(byte[],int,int,int,int):");
364: System.out.println("data = " + data);
365: System.out.println("offset = " + offset);
366: System.out.println("length = " + length);
367: System.out.println("x = " + x);
368: System.out.println("y = " + y);
369: g2D.drawBytes(data, offset, length, x, y);
370: }
371:
372: public void drawChars(char data[], int offset, int length, int x,
373: int y) {
374: System.out.println("drawChars(data,int,int,int,int):");
375: System.out.println("data = " + data.toString());
376: System.out.println("offset = " + offset);
377: System.out.println("length = " + length);
378: System.out.println("x = " + x);
379: System.out.println("y = " + y);
380: g2D.drawChars(data, offset, length, x, y);
381: }
382:
383: public boolean drawImage(Image img, int dx1, int dy1, int dx2,
384: int dy2, int sx1, int sy1, int sx2, int sy2,
385: ImageObserver observer) {
386: System.out
387: .println("drawImage(Image,int,int,int,int,int,int,int,int,ImageObserver):");
388: System.out.println("img = " + img);
389: System.out.println("dx1 = " + dx1);
390: System.out.println("dy1 = " + dy1);
391: System.out.println("dx2 = " + dx2);
392: System.out.println("dy2 = " + dy2);
393: System.out.println("sx1 = " + sx1);
394: System.out.println("sy1 = " + sy1);
395: System.out.println("sx2 = " + sx2);
396: System.out.println("sy2 = " + sy2);
397: System.out.println("observer = " + observer);
398: return g2D.drawImage(img, dx1, dy1, dx2, dy2, sx1, sy1, sx2,
399: sy2, observer);
400: }
401:
402: public boolean drawImage(Image img, int dx1, int dy1, int dx2,
403: int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor,
404: ImageObserver observer) {
405: System.out
406: .println("drawImage(Image,int,int,int,int,int,int,int,int,Color,ImageObserver):");
407: System.out.println("img = " + img);
408: System.out.println("dx1 = " + dx1);
409: System.out.println("dy1 = " + dy1);
410: System.out.println("dx2 = " + dx2);
411: System.out.println("dy2 = " + dy2);
412: System.out.println("sx1 = " + sx1);
413: System.out.println("sy1 = " + sy1);
414: System.out.println("sx2 = " + sx2);
415: System.out.println("sy2 = " + sy2);
416: System.out.println("bgcolor = " + bgcolor);
417: System.out.println("observer = " + observer);
418: return g2D.drawImage(img, dx1, dy1, dx2, dy2, sx1, sy1, sx2,
419: sy2, bgcolor, observer);
420: }
421:
422: public boolean drawImage(Image img, int x, int y, Color bgcolor,
423: ImageObserver observer) {
424: System.out
425: .println("drawImage(Image,int,int,Color,ImageObserver):");
426: System.out.println("img = " + img);
427: System.out.println("x = " + x);
428: System.out.println("y = " + y);
429: System.out.println("bgcolor = " + bgcolor);
430: System.out.println("observer = " + observer);
431: return g2D.drawImage(img, x, y, bgcolor, observer);
432: }
433:
434: public boolean drawImage(Image img, int x, int y,
435: ImageObserver observer) {
436: System.out.println("drawImage(Image,int,int,observer):");
437: System.out.println("img = " + img);
438: System.out.println("x = " + x);
439: System.out.println("y = " + y);
440: System.out.println("observer = " + observer);
441: return g2D.drawImage(img, x, y, observer);
442: }
443:
444: public boolean drawImage(Image img, int x, int y, int width,
445: int height, Color bgcolor, ImageObserver observer) {
446: System.out
447: .println("drawImage(Image,int,int,int,int,Color,ImageObserver):");
448: System.out.println("img = " + img);
449: System.out.println("x = " + x);
450: System.out.println("y = " + y);
451: System.out.println("width = " + width);
452: System.out.println("height = " + height);
453: System.out.println("bgcolor = " + bgcolor);
454: System.out.println("observer = " + observer);
455: return g2D.drawImage(img, x, y, width, height, bgcolor,
456: observer);
457: }
458:
459: public boolean drawImage(Image img, int x, int y, int width,
460: int height, ImageObserver observer) {
461: System.out
462: .println("drawImage(Image,int,int,width,height,observer):");
463: System.out.println("img = " + img);
464: System.out.println("x = " + x);
465: System.out.println("y = " + y);
466: System.out.println("width = " + width);
467: System.out.println("height = " + height);
468: System.out.println("observer = " + observer);
469: return g2D.drawImage(img, x, y, width, height, observer);
470: }
471:
472: public void drawLine(int x1, int y1, int x2, int y2) {
473: System.out.println("drawLine(int,int,int,int):");
474: System.out.println("x1 = " + x1);
475: System.out.println("y1 = " + y1);
476: System.out.println("x2 = " + x2);
477: System.out.println("y2 = " + y2);
478: g2D.drawLine(x1, y1, x2, y2);
479: }
480:
481: public void drawOval(int x, int y, int width, int height) {
482: System.out.println("drawOval(int,int,int,int):");
483: System.out.println("x = " + x);
484: System.out.println("y = " + y);
485: System.out.println("width = " + width);
486: System.out.println("height = " + height);
487: g2D.drawOval(x, y, width, height);
488: }
489:
490: public void drawPolygon(Polygon p) {
491: System.out.println("drawPolygon(Polygon):");
492: System.out.println("p = " + p);
493: g2D.drawPolygon(p);
494: }
495:
496: public void drawPolygon(int xPoints[], int yPoints[], int nPoints) {
497: System.out.println("drawPolygon(int[],int[],int):");
498: System.out.println("xPoints = " + xPoints);
499: System.out.println("yPoints = " + yPoints);
500: System.out.println("nPoints = " + nPoints);
501: g2D.drawPolygon(xPoints, yPoints, nPoints);
502: }
503:
504: public void drawPolyline(int xPoints[], int yPoints[], int nPoints) {
505: System.out.println("drawPolyline(int[],int[],int):");
506: System.out.println("xPoints = " + xPoints);
507: System.out.println("yPoints = " + yPoints);
508: System.out.println("nPoints = " + nPoints);
509: g2D.drawPolyline(xPoints, yPoints, nPoints);
510: }
511:
512: public void drawRect(int x, int y, int width, int height) {
513: System.out.println("drawRect(int,int,int,int):");
514: System.out.println("x = " + x);
515: System.out.println("y = " + y);
516: System.out.println("width = " + width);
517: System.out.println("height = " + height);
518: g2D.drawRect(x, y, width, height);
519: }
520:
521: public void drawRoundRect(int x, int y, int width, int height,
522: int arcWidth, int arcHeight) {
523: System.out.println("drawRoundRect(int,int,int,int,int,int):");
524: System.out.println("x = " + x);
525: System.out.println("y = " + y);
526: System.out.println("width = " + width);
527: System.out.println("height = " + height);
528: System.out.println("arcWidth = " + arcWidth);
529: System.out.println("arcHeight = " + arcHeight);
530: g2D.drawRoundRect(x, y, width, height, arcWidth, arcHeight);
531: }
532:
533: public void drawString(AttributedCharacterIterator iterator, int x,
534: int y) {
535: System.out
536: .println("drawString(AttributedCharacterIterator,int,int):");
537: System.out.println("iterator = " + iterator);
538: System.out.println("x = " + x);
539: System.out.println("y = " + y);
540: g2D.drawString(iterator, x, y);
541: }
542:
543: public void drawString(String str, int x, int y) {
544: System.out.println("drawString(str,int,int):");
545: System.out.println("str = " + str);
546: System.out.println("x = " + x);
547: System.out.println("y = " + y);
548: g2D.drawString(str, x, y);
549: }
550:
551: public void fill3DRect(int x, int y, int width, int height,
552: boolean raised) {
553: System.out.println("fill3DRect(int,int,int,int,boolean):");
554: System.out.println("x = " + x);
555: System.out.println("y = " + y);
556: System.out.println("width = " + width);
557: System.out.println("height = " + height);
558: System.out.println("raised = " + raised);
559: g2D.fill3DRect(x, y, width, height, raised);
560: }
561:
562: public void fillArc(int x, int y, int width, int height,
563: int startAngle, int arcAngle) {
564: System.out.println("fillArc(int,int,int,int,int,int):");
565: System.out.println("x = " + x);
566: System.out.println("y = " + y);
567: System.out.println("width = " + width);
568: System.out.println("height = " + height);
569: System.out.println("startAngle = " + startAngle);
570: System.out.println("arcAngle = " + arcAngle);
571: g2D.fillArc(x, y, width, height, startAngle, arcAngle);
572: }
573:
574: public void fillOval(int x, int y, int width, int height) {
575: System.out.println("fillOval(int,int,int,int):");
576: System.out.println("x = " + x);
577: System.out.println("y = " + y);
578: System.out.println("width = " + width);
579: System.out.println("height = " + height);
580: g2D.fillOval(x, y, width, height);
581: }
582:
583: public void fillPolygon(Polygon p) {
584: System.out.println("fillPolygon(Polygon):");
585: System.out.println("p = " + p);
586: g2D.fillPolygon(p);
587: }
588:
589: public void fillPolygon(int xPoints[], int yPoints[], int nPoints) {
590: System.out.println("fillPolygon(int[],int[],int):");
591: System.out.println("xPoints = " + xPoints);
592: System.out.println("yPoints = " + yPoints);
593: System.out.println("nPoints = " + nPoints);
594: g2D.fillPolygon(xPoints, yPoints, nPoints);
595: }
596:
597: public void fillRect(int x, int y, int width, int height) {
598: System.out.println("fillRect(int,int,int,int):");
599: System.out.println("x = " + x);
600: System.out.println("y = " + y);
601: System.out.println("width = " + width);
602: System.out.println("height = " + height);
603: g2D.fillRect(x, y, width, height);
604: }
605:
606: public void fillRoundRect(int x, int y, int width, int height,
607: int arcWidth, int arcHeight) {
608: System.out.println("fillRoundRect(int,int,int,int,int,int):");
609: System.out.println("x = " + x);
610: System.out.println("y = " + y);
611: System.out.println("width = " + width);
612: System.out.println("height = " + height);
613: g2D.fillRoundRect(x, y, width, height, arcWidth, arcHeight);
614: }
615:
616: public void finalize() {
617: System.out.println("finalize():");
618: g2D.finalize();
619: }
620:
621: public Shape getClip() {
622: System.out.println("getClip():");
623: return g2D.getClip();
624: }
625:
626: public Rectangle getClipBounds() {
627: System.out.println("getClipBounds():");
628: return g2D.getClipBounds();
629: }
630:
631: public Rectangle getClipBounds(Rectangle r) {
632: System.out.println("getClipBounds(Rectangle):");
633: System.out.println("r = " + r);
634: return g2D.getClipBounds(r);
635: }
636:
637: public Rectangle getClipRect() {
638: System.out.println("getClipRect():");
639: return g2D.getClipRect();
640: }
641:
642: public Color getColor() {
643: System.out.println("getColor():");
644: return g2D.getColor();
645: }
646:
647: public Font getFont() {
648: System.out.println("getFont():");
649: return g2D.getFont();
650: }
651:
652: public FontMetrics getFontMetrics() {
653: System.out.println("getFontMetrics():");
654: return g2D.getFontMetrics();
655: }
656:
657: public FontMetrics getFontMetrics(Font f) {
658: System.out.println("getFontMetrics():");
659: return g2D.getFontMetrics(f);
660: }
661:
662: public boolean hitClip(int x, int y, int width, int height) {
663: System.out.println("hitClip(int,int,int,int):");
664: System.out.println("x = " + x);
665: System.out.println("y = " + y);
666: System.out.println("width = " + width);
667: System.out.println("height = " + height);
668: return g2D.hitClip(x, y, width, height);
669: }
670:
671: public void setClip(Shape clip) {
672: System.out.println("setClip(Shape):");
673: System.out.println("clip = " + clip);
674: g2D.setClip(clip);
675: }
676:
677: public void setClip(int x, int y, int width, int height) {
678: System.out.println("setClip(int,int,int,int):");
679: System.out.println("x = " + x);
680: System.out.println("y = " + y);
681: System.out.println("width = " + width);
682: System.out.println("height = " + height);
683: g2D.setClip(x, y, width, height);
684: }
685:
686: public void setColor(Color c) {
687: System.out.println("setColor():");
688: System.out.println("c = " + c);
689: g2D.setColor(c);
690: }
691:
692: public void setFont(Font font) {
693: System.out.println("setFont(Font):");
694: System.out.println("font = " + font);
695: g2D.setFont(font);
696: }
697:
698: public void setPaintMode() {
699: System.out.println("setPaintMode():");
700: g2D.setPaintMode();
701: }
702:
703: public void setXORMode(Color c1) {
704: System.out.println("setXORMode(Color):");
705: System.out.println("c1 = " + c1);
706: g2D.setXORMode(c1);
707: }
708:
709: public String toString() {
710: System.out.println("toString():");
711: return g2D.toString();
712: }
713:
714: public void translate(int x, int y) {
715: System.out.println("translate(int,int):");
716: System.out.println("x = " + x);
717: System.out.println("y = " + y);
718: g2D.translate(x, y);
719: }
720: }
|