OSDN Git Service

2004-01-28 Michael Koch <konqueror@gmx.de>
[pf3gnuchains/gcc-fork.git] / libjava / javax / swing / DebugGraphics.java
1 /* DebugGraphics.java --
2    Copyright (C) 2002, 2004 Free Software Foundation, Inc.
3
4 This file is part of GNU Classpath.
5
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.
10
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.
15
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.
20
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.
25
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. */
37
38 package javax.swing;
39
40 import java.awt.Color;
41 import java.awt.Font;
42 import java.awt.FontMetrics;
43 import java.awt.Graphics;
44 import java.awt.Image;
45 import java.awt.Rectangle;
46 import java.awt.Shape;
47 import java.awt.image.ImageObserver;
48 import java.io.PrintStream;
49 import java.text.AttributedCharacterIterator;
50
51 /**
52  * DebugGraphics
53  * @author      Andrew Selkirk
54  * @version     1.0
55  */
56 public class DebugGraphics extends Graphics {
57
58         //-------------------------------------------------------------
59         // Variables --------------------------------------------------
60         //-------------------------------------------------------------
61
62         /**
63          * graphics
64          */
65         Graphics graphics;
66
67         /**
68          * buffer
69          */
70         Image buffer;
71
72         /**
73          * debugOptions
74          */
75         int debugOptions;
76
77         /**
78          * graphicsID
79          */
80         int graphicsID;
81
82         /**
83          * xOffset
84          */
85         int xOffset;
86
87         /**
88          * yOffset
89          */
90         int yOffset;
91
92         /**
93          * LOG_OPTION
94          */
95         public static final int LOG_OPTION = 1;
96
97         /**
98          * FLASH_OPTION
99          */
100         public static final int FLASH_OPTION = 2;
101
102         /**
103          * BUFFERED_OPTION
104          */
105         public static final int BUFFERED_OPTION = 4;
106
107         /**
108          * NONE_OPTION
109          */
110         public static final int NONE_OPTION = -1;
111
112
113         //-------------------------------------------------------------
114         // Initialization ---------------------------------------------
115         //-------------------------------------------------------------
116
117         /**
118          * Constructor DebugGraphics
119          */
120         public DebugGraphics() {
121                 // TODO
122         } // DebugGraphics()
123
124         /**
125          * Constructor DebugGraphics
126          * @param graphics TODO
127          * @param component TODO
128          */
129         public DebugGraphics(Graphics graphics, JComponent component) {
130                 // TODO
131         } // DebugGraphics()
132
133         /**
134          * Constructor DebugGraphics
135          * @param graphics TODO
136          */
137         public DebugGraphics(Graphics graphics) {
138                 // TODO
139         } // DebugGraphics()
140
141
142         //-------------------------------------------------------------
143         // Methods ----------------------------------------------------
144         //-------------------------------------------------------------
145
146         /**
147          * setColor
148          * @param value0 TODO
149          */
150         public void setColor(Color color) {
151                 // TODO
152         } // setColor()
153
154         /**
155          * create
156          * @returns Graphics
157          */
158         public Graphics create() {
159                 return null; // TODO
160         } // create()
161
162         /**
163          * create
164          * @param x TODO
165          * @param y TODO
166          * @param w TODO
167          * @param h TODO
168          * @returns Graphics
169          */
170         public Graphics create(int valx, int y, int w, int h) {
171                 return null; // TODO
172         } // create()
173
174         /**
175          * flashColor
176          * @returns Color
177          */
178         public static Color flashColor() {
179                 return null; // TODO
180         } // flashColor()
181
182         /**
183          * setFlashColor
184          * @param color TODO
185          */
186         public static void setFlashColor(Color color) {
187                 // TODO
188         } // setFlashColor()
189
190         /**
191          * flashTime
192          * @returns int
193          */
194         public static int flashTime() {
195                 return 0; // TODO
196         } // flashTime()
197
198         /**
199          * setFlashTime
200          * @param time TODO
201          */
202         public static void setFlashTime(int time) {
203                 // TODO
204         } // setFlashTime()
205
206         /**
207          * flashCount
208          * @returns int
209          */
210         public static int flashCount() {
211                 return 0; // TODO
212         } // flashCount()
213
214         /**
215          * setFlashCount
216          * @param count TODO
217          */
218         public static void setFlashCount(int count) {
219                 // TODO
220         } // setFlashCount()
221
222         /**
223          * logStream
224          * @returns PrintStream
225          */
226         public static PrintStream logStream() {
227                 return null; // TODO
228         } // logStream()
229
230         /**
231          * setLogStream
232          * @param stream TODO
233          */
234         public static void setLogStream(PrintStream stream) {
235                 // TODO
236         } // setLogStream()
237
238         /**
239          * getFont
240          * @returns Font
241          */
242         public Font getFont() {
243                 return null; // TODO
244         } // getFont()
245
246         /**
247          * setFont
248          * @param font TODO
249          */
250         public void setFont(Font font) {
251                 // TODO
252         } // setFont()
253
254         /**
255          * getColor
256          * @returns Color
257          */
258         public Color getColor() {
259                 return null; // TODO
260         } // getColor()
261
262         /**
263          * getFontMetrics
264          * @returns FontMetrics
265          */
266         public FontMetrics getFontMetrics() {
267                 return null; // TODO
268         } // getFontMetrics()
269
270         /**
271          * getFontMetrics
272          * @param font TODO
273          * @returns FontMetrics
274          */
275         public FontMetrics getFontMetrics(Font font) {
276                 return null; // TODO
277         } // getFontMetrics()
278
279         /**
280          * translate
281          * @param x TODO
282          * @param y TODO
283          */
284         public void translate(int x, int y) {
285                 // TODO
286         } // translate()
287
288         /**
289          * setPaintMode
290          */
291         public void setPaintMode() {
292                 // TODO
293         } // setPaintMode()
294
295         /**
296          * setXORMode
297          * @param color TODO
298          */
299         public void setXORMode(Color color) {
300                 // TODO
301         } // setXORMode()
302
303         /**
304          * getClipBounds
305          * @returns Rectangle
306          */
307         public Rectangle getClipBounds() {
308                 return null; // TODO
309         } // getClipBounds()
310
311         /**
312          * clipRect
313          * @param value0 TODO
314          * @param value1 TODO
315          * @param value2 TODO
316          * @param value3 TODO
317          */
318         public void clipRect(int value0, int value1, int value2, int value3) {
319                 // TODO
320         } // clipRect()
321
322         /**
323          * setClip
324          * @param x TODO
325          * @param y TODO
326          * @param w TODO
327          * @param h TODO
328          */
329         public void setClip(int x, int y, int w, int h) {
330                 // TODO
331         } // setClip()
332
333         /**
334          * getClip
335          * @returns Shape
336          */
337         public Shape getClip() {
338                 return null; // TODO
339         } // getClip()
340
341         /**
342          * setClip
343          * @param shape TODO
344          */
345         public void setClip(Shape shape) {
346                 // TODO
347         } // setClip()
348
349         /**
350          * drawRect
351          * @param x TODO
352          * @param y TODO
353          * @param w TODO
354          * @param valh TODO
355          */
356         public void drawRect(int x, int y, int w, int h) {
357                 // TODO
358         } // drawRect()
359
360         /**
361          * fillRect
362          * @param x TODO
363          * @param y TODO
364          * @param w TODO
365          * @param h TODO
366          */
367         public void fillRect(int x, int y, int w, int h) {
368                 // TODO
369         } // fillRect()
370
371         /**
372          * clearRect
373          * @param x TODO
374          * @param y TODO
375          * @param w TODO
376          * @param h TODO
377          */
378         public void clearRect(int x, int y, int w, int h) {
379                 // TODO
380         } // clearRect()
381
382         /**
383          * drawRoundRect
384          * @param x TODO
385          * @param y TODO
386          * @param w TODO
387          * @param h TODO
388          * @param arcWidth TODO
389          * @param arcHeight TODO
390          */
391         public void drawRoundRect(int x, int y, int w, int h, 
392                         int arcWidth, int arcHeight) {
393                 // TODO
394         } // drawRoundRect()
395
396         /**
397          * fillRoundRect
398          * @param x TODO
399          * @param y TODO
400          * @param w TODO
401          * @param h TODO
402          * @param arcWidth TODO
403          * @param arcHeight TODO
404          */
405         public void fillRoundRect(int x, int y, int w, int h, 
406                         int arcWidth, int arcHeight) {
407                 // TODO
408         } // fillRoundRect()
409
410         /**
411          * drawLine
412          * @param x1 TODO
413          * @param y1 TODO
414          * @param x2 TODO
415          * @param y2 TODO
416          */
417         public void drawLine(int x1, int y1, int x2, int y2) {
418                 // TODO
419         } // drawLine()
420
421         /**
422          * draw3DRect
423          * @param x TODO
424          * @param y TODO
425          * @param w TODO
426          * @param h TODO
427          * @param raised TODO
428          */
429         public void draw3DRect(int x, int y, int w, int h, boolean raised) {
430                 // TODO
431         } // draw3DRect()
432
433         /**
434          * fill3DRect
435          * @param x TODO
436          * @param y TODO
437          * @param w TODO
438          * @param h TODO
439          * @param raised TODO
440          */
441         public void fill3DRect(int x, int y, int w, int h, boolean raised) {
442                 // TODO
443         } // fill3DRect()
444
445         /**
446          * drawOval
447          * @param x TODO
448          * @param y TODO
449          * @param w TODO
450          * @param h TODO
451          */
452         public void drawOval(int x, int y, int w, int h) {
453                 // TODO
454         } // drawOval()
455
456         /**
457          * fillOval
458          * @param x TODO
459          * @param y TODO
460          * @param w TODO
461          * @param h TODO
462          */
463         public void fillOval(int x, int y, int w, int h) {
464                 // TODO
465         } // fillOval()
466
467         /**
468          * drawArc
469          * @param x TODO
470          * @param y TODO
471          * @param w TODO
472          * @param h TODO
473          * @param startAngle TODO
474          * @param arcAngle TODO
475          */
476         public void drawArc(int x, int y, int w, int h, 
477                         int startAngle, int arcAngle) {
478                 // TODO
479         } // drawArc()
480
481         /**
482          * fillArc
483          * @param x TODO
484          * @param y TODO
485          * @param w TODO
486          * @param h TODO
487          * @param startAngle TODO
488          * @param arcAngle TODO
489          */
490         public void fillArc(int x, int y, int w, int h, 
491                         int startAngle, int arcAngle) {
492                 // TODO
493         } // fillArc()
494
495         /**
496          * drawPolyline
497          * @param xpoints TODO
498          * @param ypoints TODO
499          * @param npoints TODO
500          */
501         public void drawPolyline(int[] xpoints, int[] ypoints, int npoints) {
502                 // TODO
503         } // drawPolyline()
504
505         /**
506          * drawPolygon
507          * @param xpoints TODO
508          * @param ypoints TODO
509          * @param npoints TODO
510          */
511         public void drawPolygon(int[] xpoints, int[] ypoints, int npoints) {
512                 // TODO
513         } // drawPolygon()
514
515         /**
516          * fillPolygon
517          * @param xpoints TODO
518          * @param ypoints TODO
519          * @param npoints TODO
520          */
521         public void fillPolygon(int[] xpoints, int[] ypoints, int npoints) {
522                 // TODO
523         } // fillPolygon()
524
525         /**
526          * drawString
527          * @param string TODO
528          * @param x TODO
529          * @param y TODO
530          */
531         public void drawString(String string, int s, int y) {
532                 // TODO
533         } // drawString()
534
535         /**
536          * drawString
537          * @param iterator TODO
538          * @param x TODO
539          * @param y TODO
540          */
541         public void drawString(AttributedCharacterIterator iterator,
542                         int x, int y) {
543                 // TODO
544         } // drawString()
545
546         /**
547          * drawBytes
548          * @param data TODO
549          * @param offset TODO
550          * @param length TODO
551          * @param x TODO
552          * @param y TODO
553          */
554         public void drawBytes(byte[] data, int offset, int length,
555                         int x, int y) {
556                 // TODO
557         } // drawBytes()
558
559         /**
560          * drawChars
561          * @param data TODO
562          * @param offset TODO
563          * @param length TODO
564          * @param value3 TODO
565          * @param value4 TODO
566          */
567         public void drawChars(char[] data, int offset, int value2, 
568                         int x, int y) {
569                 // TODO
570         } // drawChars()
571
572         /**
573          * drawImage
574          * @param image TODO
575          * @param x TODO
576          * @param y TODO
577          * @param observer TODO
578          * @returns boolean
579          */
580         public boolean drawImage(Image image, int x, int y,
581                         ImageObserver observer) {
582                 return false; // TODO
583         } // drawImage()
584
585         /**
586          * drawImage
587          * @param image TODO
588          * @param x TODO
589          * @param y TODO
590          * @param w TODO
591          * @param h TODO
592          * @param observer TODO
593          * @returns boolean
594          */
595         public boolean drawImage(Image image, int x, int y, int w, 
596                         int h, ImageObserver observer) {
597                 return false; // TODO
598         } // drawImage()
599
600         /**
601          * drawImage
602          * @param image TODO
603          * @param x TODO
604          * @param y TODO
605          * @param background TODO
606          * @param observer TODO
607          * @returns boolean
608          */
609         public boolean drawImage(Image image, int x, int y, 
610                         Color background, ImageObserver observer) {
611                 return false; // TODO
612         } // drawImage()
613
614         /**
615          * drawImage
616          * @param image TODO
617          * @param x TODO
618          * @param y TODO
619          * @param w TODO
620          * @param h TODO
621          * @param background TODO
622          * @param observer TODO
623          * @returns boolean
624          */
625         public boolean drawImage(Image image, int x, int y, int w, int h, 
626                         Color background, ImageObserver observer) {
627                 return false; // TODO
628         } // drawImage()
629
630         /**
631          * drawImage
632          * @param image TODO
633          * @param dx1 TODO
634          * @param dy1 TODO
635          * @param dx2 TODO
636          * @param dy2 TODO
637          * @param sx1 TODO
638          * @param sy1 TODO
639          * @param sx2 TODO
640          * @param sy2 TODO
641          * @param observer TODO
642          * @returns boolean
643          */
644         public boolean drawImage(Image image, int dx1, int dy1,
645                         int dx2, int dy2, int sx1, int sy1, int sx2, int sy2,
646                         ImageObserver observer) {
647                 return false; // TODO
648         } // drawImage()
649
650         /**
651          * drawImage
652          * @param image TODO
653          * @param dx1 TODO
654          * @param dy1 TODO
655          * @param dx2 TODO
656          * @param dy2 TODO
657          * @param sx1 TODO
658          * @param sy1 TODO
659          * @param sx2 TODO
660          * @param sy2 TODO
661          * @param background TODO
662          * @param observer TODO
663          * @returns boolean
664          */
665         public boolean drawImage(Image image, int dx1, int dy1,
666                         int dx2, int dy2, int sx1, int sy1, int sx2, int sy2,
667                         Color background, ImageObserver observer) {
668                 return false; // TODO
669         } // drawImage()
670
671         /**
672          * copyArea
673          * @param x TODO
674          * @param y TODO
675          * @param w TODO
676          * @param h TODO
677          * @param destx TODO
678          * @param desty TODO
679          */
680         public void copyArea(int x, int y, int w, int h, 
681                         int destx, int desty) {
682                 // TODO
683         } // copyArea()
684
685         /**
686          * dispose
687          */
688         public void dispose() {
689                 // TODO
690         } // dispose()
691
692         /**
693          * isDrawingBuffer
694          * @returns boolean
695          */
696         public boolean isDrawingBuffer() {
697                 return false; // TODO
698         } // isDrawingBuffer()
699
700         /**
701          * toShortString
702          * @returns String
703          */
704         String toShortString() {
705                 return null; // TODO
706         } // toShortString()
707
708         /**
709          * setDebugOptions
710          * @param options TODO
711          */
712         public void setDebugOptions(int options) {
713                 // TODO
714         } // setDebugOptions()
715
716         /**
717          * getDebugOptions
718          * @returns int
719          */
720         public int getDebugOptions() {
721                 return 0; // TODO
722         } // getDebugOptions()
723
724
725 } // DebugGraphics