2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libjava / javax / swing / DebugGraphics.java
blob9a4c6592d23deca1a1a75ae7e00b5a76042a836a
1 /* DebugGraphics.java --
2 Copyright (C) 2002 Free Software Foundation, Inc.
4 This file is part of GNU Classpath.
6 GNU Classpath is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 GNU Classpath is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Classpath; see the file COPYING. If not, write to the
18 Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 02111-1307 USA.
21 Linking this library statically or dynamically with other modules is
22 making a combined work based on this library. Thus, the terms and
23 conditions of the GNU General Public License cover the whole
24 combination.
26 As a special exception, the copyright holders of this library give you
27 permission to link this library with independent modules to produce an
28 executable, regardless of the license terms of these independent
29 modules, and to copy and distribute the resulting executable under
30 terms of your choice, provided that you also meet, for each linked
31 independent module, the terms and conditions of the license of that
32 module. An independent module is a module which is not derived from
33 or based on this library. If you modify this library, you may extend
34 this exception to your version of the library, but you are not
35 obligated to do so. If you do not wish to do so, delete this
36 exception statement from your version. */
38 package javax.swing;
40 // Imports
41 import java.awt.*;
42 import java.awt.image.*;
43 import java.io.*;
44 import java.text.*;
46 /**
47 * DebugGraphics
48 * @author Andrew Selkirk
49 * @version 1.0
51 public class DebugGraphics extends Graphics {
53 //-------------------------------------------------------------
54 // Variables --------------------------------------------------
55 //-------------------------------------------------------------
57 /**
58 * graphics
60 Graphics graphics;
62 /**
63 * buffer
65 Image buffer;
67 /**
68 * debugOptions
70 int debugOptions;
72 /**
73 * graphicsID
75 int graphicsID;
77 /**
78 * xOffset
80 int xOffset;
82 /**
83 * yOffset
85 int yOffset;
87 /**
88 * LOG_OPTION
90 public static final int LOG_OPTION = 1;
92 /**
93 * FLASH_OPTION
95 public static final int FLASH_OPTION = 2;
97 /**
98 * BUFFERED_OPTION
100 public static final int BUFFERED_OPTION = 4;
103 * NONE_OPTION
105 public static final int NONE_OPTION = -1;
108 //-------------------------------------------------------------
109 // Initialization ---------------------------------------------
110 //-------------------------------------------------------------
113 * Constructor DebugGraphics
115 public DebugGraphics() {
116 // TODO
117 } // DebugGraphics()
120 * Constructor DebugGraphics
121 * @param graphics TODO
122 * @param component TODO
124 public DebugGraphics(Graphics graphics, JComponent component) {
125 // TODO
126 } // DebugGraphics()
129 * Constructor DebugGraphics
130 * @param graphics TODO
132 public DebugGraphics(Graphics graphics) {
133 // TODO
134 } // DebugGraphics()
137 //-------------------------------------------------------------
138 // Methods ----------------------------------------------------
139 //-------------------------------------------------------------
142 * setColor
143 * @param value0 TODO
145 public void setColor(Color color) {
146 // TODO
147 } // setColor()
150 * create
151 * @returns Graphics
153 public Graphics create() {
154 return null; // TODO
155 } // create()
158 * create
159 * @param x TODO
160 * @param y TODO
161 * @param w TODO
162 * @param h TODO
163 * @returns Graphics
165 public Graphics create(int valx, int y, int w, int h) {
166 return null; // TODO
167 } // create()
170 * flashColor
171 * @returns Color
173 public static Color flashColor() {
174 return null; // TODO
175 } // flashColor()
178 * setFlashColor
179 * @param color TODO
181 public static void setFlashColor(Color color) {
182 // TODO
183 } // setFlashColor()
186 * flashTime
187 * @returns int
189 public static int flashTime() {
190 return 0; // TODO
191 } // flashTime()
194 * setFlashTime
195 * @param time TODO
197 public static void setFlashTime(int time) {
198 // TODO
199 } // setFlashTime()
202 * flashCount
203 * @returns int
205 public static int flashCount() {
206 return 0; // TODO
207 } // flashCount()
210 * setFlashCount
211 * @param count TODO
213 public static void setFlashCount(int count) {
214 // TODO
215 } // setFlashCount()
218 * logStream
219 * @returns PrintStream
221 public static PrintStream logStream() {
222 return null; // TODO
223 } // logStream()
226 * setLogStream
227 * @param stream TODO
229 public static void setLogStream(PrintStream stream) {
230 // TODO
231 } // setLogStream()
234 * getFont
235 * @returns Font
237 public Font getFont() {
238 return null; // TODO
239 } // getFont()
242 * setFont
243 * @param font TODO
245 public void setFont(Font font) {
246 // TODO
247 } // setFont()
250 * getColor
251 * @returns Color
253 public Color getColor() {
254 return null; // TODO
255 } // getColor()
258 * getFontMetrics
259 * @returns FontMetrics
261 public FontMetrics getFontMetrics() {
262 return null; // TODO
263 } // getFontMetrics()
266 * getFontMetrics
267 * @param font TODO
268 * @returns FontMetrics
270 public FontMetrics getFontMetrics(Font font) {
271 return null; // TODO
272 } // getFontMetrics()
275 * translate
276 * @param x TODO
277 * @param y TODO
279 public void translate(int x, int y) {
280 // TODO
281 } // translate()
284 * setPaintMode
286 public void setPaintMode() {
287 // TODO
288 } // setPaintMode()
291 * setXORMode
292 * @param color TODO
294 public void setXORMode(Color color) {
295 // TODO
296 } // setXORMode()
299 * getClipBounds
300 * @returns Rectangle
302 public Rectangle getClipBounds() {
303 return null; // TODO
304 } // getClipBounds()
307 * clipRect
308 * @param value0 TODO
309 * @param value1 TODO
310 * @param value2 TODO
311 * @param value3 TODO
313 public void clipRect(int value0, int value1, int value2, int value3) {
314 // TODO
315 } // clipRect()
318 * setClip
319 * @param x TODO
320 * @param y TODO
321 * @param w TODO
322 * @param h TODO
324 public void setClip(int x, int y, int w, int h) {
325 // TODO
326 } // setClip()
329 * getClip
330 * @returns Shape
332 public Shape getClip() {
333 return null; // TODO
334 } // getClip()
337 * setClip
338 * @param shape TODO
340 public void setClip(Shape shape) {
341 // TODO
342 } // setClip()
345 * drawRect
346 * @param x TODO
347 * @param y TODO
348 * @param w TODO
349 * @param valh TODO
351 public void drawRect(int x, int y, int w, int h) {
352 // TODO
353 } // drawRect()
356 * fillRect
357 * @param x TODO
358 * @param y TODO
359 * @param w TODO
360 * @param h TODO
362 public void fillRect(int x, int y, int w, int h) {
363 // TODO
364 } // fillRect()
367 * clearRect
368 * @param x TODO
369 * @param y TODO
370 * @param w TODO
371 * @param h TODO
373 public void clearRect(int x, int y, int w, int h) {
374 // TODO
375 } // clearRect()
378 * drawRoundRect
379 * @param x TODO
380 * @param y TODO
381 * @param w TODO
382 * @param h TODO
383 * @param arcWidth TODO
384 * @param arcHeight TODO
386 public void drawRoundRect(int x, int y, int w, int h,
387 int arcWidth, int arcHeight) {
388 // TODO
389 } // drawRoundRect()
392 * fillRoundRect
393 * @param x TODO
394 * @param y TODO
395 * @param w TODO
396 * @param h TODO
397 * @param arcWidth TODO
398 * @param arcHeight TODO
400 public void fillRoundRect(int x, int y, int w, int h,
401 int arcWidth, int arcHeight) {
402 // TODO
403 } // fillRoundRect()
406 * drawLine
407 * @param x1 TODO
408 * @param y1 TODO
409 * @param x2 TODO
410 * @param y2 TODO
412 public void drawLine(int x1, int y1, int x2, int y2) {
413 // TODO
414 } // drawLine()
417 * draw3DRect
418 * @param x TODO
419 * @param y TODO
420 * @param w TODO
421 * @param h TODO
422 * @param raised TODO
424 public void draw3DRect(int x, int y, int w, int h, boolean raised) {
425 // TODO
426 } // draw3DRect()
429 * fill3DRect
430 * @param x TODO
431 * @param y TODO
432 * @param w TODO
433 * @param h TODO
434 * @param raised TODO
436 public void fill3DRect(int x, int y, int w, int h, boolean raised) {
437 // TODO
438 } // fill3DRect()
441 * drawOval
442 * @param x TODO
443 * @param y TODO
444 * @param w TODO
445 * @param h TODO
447 public void drawOval(int x, int y, int w, int h) {
448 // TODO
449 } // drawOval()
452 * fillOval
453 * @param x TODO
454 * @param y TODO
455 * @param w TODO
456 * @param h TODO
458 public void fillOval(int x, int y, int w, int h) {
459 // TODO
460 } // fillOval()
463 * drawArc
464 * @param x TODO
465 * @param y TODO
466 * @param w TODO
467 * @param h TODO
468 * @param startAngle TODO
469 * @param arcAngle TODO
471 public void drawArc(int x, int y, int w, int h,
472 int startAngle, int arcAngle) {
473 // TODO
474 } // drawArc()
477 * fillArc
478 * @param x TODO
479 * @param y TODO
480 * @param w TODO
481 * @param h TODO
482 * @param startAngle TODO
483 * @param arcAngle TODO
485 public void fillArc(int x, int y, int w, int h,
486 int startAngle, int arcAngle) {
487 // TODO
488 } // fillArc()
491 * drawPolyline
492 * @param xpoints TODO
493 * @param ypoints TODO
494 * @param npoints TODO
496 public void drawPolyline(int[] xpoints, int[] ypoints, int npoints) {
497 // TODO
498 } // drawPolyline()
501 * drawPolygon
502 * @param xpoints TODO
503 * @param ypoints TODO
504 * @param npoints TODO
506 public void drawPolygon(int[] xpoints, int[] ypoints, int npoints) {
507 // TODO
508 } // drawPolygon()
511 * fillPolygon
512 * @param xpoints TODO
513 * @param ypoints TODO
514 * @param npoints TODO
516 public void fillPolygon(int[] xpoints, int[] ypoints, int npoints) {
517 // TODO
518 } // fillPolygon()
521 * drawString
522 * @param string TODO
523 * @param x TODO
524 * @param y TODO
526 public void drawString(String string, int s, int y) {
527 // TODO
528 } // drawString()
531 * drawString
532 * @param iterator TODO
533 * @param x TODO
534 * @param y TODO
536 public void drawString(AttributedCharacterIterator iterator,
537 int x, int y) {
538 // TODO
539 } // drawString()
542 * drawBytes
543 * @param data TODO
544 * @param offset TODO
545 * @param length TODO
546 * @param x TODO
547 * @param y TODO
549 public void drawBytes(byte[] data, int offset, int length,
550 int x, int y) {
551 // TODO
552 } // drawBytes()
555 * drawChars
556 * @param data TODO
557 * @param offset TODO
558 * @param length TODO
559 * @param value3 TODO
560 * @param value4 TODO
562 public void drawChars(char[] data, int offset, int value2,
563 int x, int y) {
564 // TODO
565 } // drawChars()
568 * drawImage
569 * @param image TODO
570 * @param x TODO
571 * @param y TODO
572 * @param observer TODO
573 * @returns boolean
575 public boolean drawImage(Image image, int x, int y,
576 ImageObserver observer) {
577 return false; // TODO
578 } // drawImage()
581 * drawImage
582 * @param image TODO
583 * @param x TODO
584 * @param y TODO
585 * @param w TODO
586 * @param h TODO
587 * @param observer TODO
588 * @returns boolean
590 public boolean drawImage(Image image, int x, int y, int w,
591 int h, ImageObserver observer) {
592 return false; // TODO
593 } // drawImage()
596 * drawImage
597 * @param image TODO
598 * @param x TODO
599 * @param y TODO
600 * @param background TODO
601 * @param observer TODO
602 * @returns boolean
604 public boolean drawImage(Image image, int x, int y,
605 Color background, ImageObserver observer) {
606 return false; // TODO
607 } // drawImage()
610 * drawImage
611 * @param image TODO
612 * @param x TODO
613 * @param y TODO
614 * @param w TODO
615 * @param h TODO
616 * @param background TODO
617 * @param observer TODO
618 * @returns boolean
620 public boolean drawImage(Image image, int x, int y, int w, int h,
621 Color background, ImageObserver observer) {
622 return false; // TODO
623 } // drawImage()
626 * drawImage
627 * @param image TODO
628 * @param dx1 TODO
629 * @param dy1 TODO
630 * @param dx2 TODO
631 * @param dy2 TODO
632 * @param sx1 TODO
633 * @param sy1 TODO
634 * @param sx2 TODO
635 * @param sy2 TODO
636 * @param observer TODO
637 * @returns boolean
639 public boolean drawImage(Image image, int dx1, int dy1,
640 int dx2, int dy2, int sx1, int sy1, int sx2, int sy2,
641 ImageObserver observer) {
642 return false; // TODO
643 } // drawImage()
646 * drawImage
647 * @param image TODO
648 * @param dx1 TODO
649 * @param dy1 TODO
650 * @param dx2 TODO
651 * @param dy2 TODO
652 * @param sx1 TODO
653 * @param sy1 TODO
654 * @param sx2 TODO
655 * @param sy2 TODO
656 * @param background TODO
657 * @param observer TODO
658 * @returns boolean
660 public boolean drawImage(Image image, int dx1, int dy1,
661 int dx2, int dy2, int sx1, int sy1, int sx2, int sy2,
662 Color background, ImageObserver observer) {
663 return false; // TODO
664 } // drawImage()
667 * copyArea
668 * @param x TODO
669 * @param y TODO
670 * @param w TODO
671 * @param h TODO
672 * @param destx TODO
673 * @param desty TODO
675 public void copyArea(int x, int y, int w, int h,
676 int destx, int desty) {
677 // TODO
678 } // copyArea()
681 * dispose
683 public void dispose() {
684 // TODO
685 } // dispose()
688 * isDrawingBuffer
689 * @returns boolean
691 public boolean isDrawingBuffer() {
692 return false; // TODO
693 } // isDrawingBuffer()
696 * toShortString
697 * @returns String
699 String toShortString() {
700 return null; // TODO
701 } // toShortString()
704 * setDebugOptions
705 * @param options TODO
707 public void setDebugOptions(int options) {
708 // TODO
709 } // setDebugOptions()
712 * getDebugOptions
713 * @returns int
715 public int getDebugOptions() {
716 return 0; // TODO
717 } // getDebugOptions()
720 } // DebugGraphics