source: trunk/gcc/libjava/javax/swing/DebugGraphics.java

Last change on this file was 1389, checked in by bird, 21 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 13.3 KB
Line 
1/* DebugGraphics.java --
2 Copyright (C) 2002 Free Software Foundation, Inc.
3
4This file is part of GNU Classpath.
5
6GNU Classpath is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11GNU Classpath is distributed in the hope that it will be useful, but
12WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU Classpath; see the file COPYING. If not, write to the
18Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
1902111-1307 USA.
20
21Linking this library statically or dynamically with other modules is
22making a combined work based on this library. Thus, the terms and
23conditions of the GNU General Public License cover the whole
24combination.
25
26As a special exception, the copyright holders of this library give you
27permission to link this library with independent modules to produce an
28executable, regardless of the license terms of these independent
29modules, and to copy and distribute the resulting executable under
30terms of your choice, provided that you also meet, for each linked
31independent module, the terms and conditions of the license of that
32module. An independent module is a module which is not derived from
33or based on this library. If you modify this library, you may extend
34this exception to your version of the library, but you are not
35obligated to do so. If you do not wish to do so, delete this
36exception statement from your version. */
37
38package javax.swing;
39
40// Imports
41import java.awt.*;
42import java.awt.image.*;
43import java.io.*;
44import java.text.*;
45
46/**
47 * DebugGraphics
48 * @author Andrew Selkirk
49 * @version 1.0
50 */
51public class DebugGraphics extends Graphics {
52
53 //-------------------------------------------------------------
54 // Variables --------------------------------------------------
55 //-------------------------------------------------------------
56
57 /**
58 * graphics
59 */
60 Graphics graphics;
61
62 /**
63 * buffer
64 */
65 Image buffer;
66
67 /**
68 * debugOptions
69 */
70 int debugOptions;
71
72 /**
73 * graphicsID
74 */
75 int graphicsID;
76
77 /**
78 * xOffset
79 */
80 int xOffset;
81
82 /**
83 * yOffset
84 */
85 int yOffset;
86
87 /**
88 * LOG_OPTION
89 */
90 public static final int LOG_OPTION = 1;
91
92 /**
93 * FLASH_OPTION
94 */
95 public static final int FLASH_OPTION = 2;
96
97 /**
98 * BUFFERED_OPTION
99 */
100 public static final int BUFFERED_OPTION = 4;
101
102 /**
103 * NONE_OPTION
104 */
105 public static final int NONE_OPTION = -1;
106
107
108 //-------------------------------------------------------------
109 // Initialization ---------------------------------------------
110 //-------------------------------------------------------------
111
112 /**
113 * Constructor DebugGraphics
114 */
115 public DebugGraphics() {
116 // TODO
117 } // DebugGraphics()
118
119 /**
120 * Constructor DebugGraphics
121 * @param graphics TODO
122 * @param component TODO
123 */
124 public DebugGraphics(Graphics graphics, JComponent component) {
125 // TODO
126 } // DebugGraphics()
127
128 /**
129 * Constructor DebugGraphics
130 * @param graphics TODO
131 */
132 public DebugGraphics(Graphics graphics) {
133 // TODO
134 } // DebugGraphics()
135
136
137 //-------------------------------------------------------------
138 // Methods ----------------------------------------------------
139 //-------------------------------------------------------------
140
141 /**
142 * setColor
143 * @param value0 TODO
144 */
145 public void setColor(Color color) {
146 // TODO
147 } // setColor()
148
149 /**
150 * create
151 * @returns Graphics
152 */
153 public Graphics create() {
154 return null; // TODO
155 } // create()
156
157 /**
158 * create
159 * @param x TODO
160 * @param y TODO
161 * @param w TODO
162 * @param h TODO
163 * @returns Graphics
164 */
165 public Graphics create(int valx, int y, int w, int h) {
166 return null; // TODO
167 } // create()
168
169 /**
170 * flashColor
171 * @returns Color
172 */
173 public static Color flashColor() {
174 return null; // TODO
175 } // flashColor()
176
177 /**
178 * setFlashColor
179 * @param color TODO
180 */
181 public static void setFlashColor(Color color) {
182 // TODO
183 } // setFlashColor()
184
185 /**
186 * flashTime
187 * @returns int
188 */
189 public static int flashTime() {
190 return 0; // TODO
191 } // flashTime()
192
193 /**
194 * setFlashTime
195 * @param time TODO
196 */
197 public static void setFlashTime(int time) {
198 // TODO
199 } // setFlashTime()
200
201 /**
202 * flashCount
203 * @returns int
204 */
205 public static int flashCount() {
206 return 0; // TODO
207 } // flashCount()
208
209 /**
210 * setFlashCount
211 * @param count TODO
212 */
213 public static void setFlashCount(int count) {
214 // TODO
215 } // setFlashCount()
216
217 /**
218 * logStream
219 * @returns PrintStream
220 */
221 public static PrintStream logStream() {
222 return null; // TODO
223 } // logStream()
224
225 /**
226 * setLogStream
227 * @param stream TODO
228 */
229 public static void setLogStream(PrintStream stream) {
230 // TODO
231 } // setLogStream()
232
233 /**
234 * getFont
235 * @returns Font
236 */
237 public Font getFont() {
238 return null; // TODO
239 } // getFont()
240
241 /**
242 * setFont
243 * @param font TODO
244 */
245 public void setFont(Font font) {
246 // TODO
247 } // setFont()
248
249 /**
250 * getColor
251 * @returns Color
252 */
253 public Color getColor() {
254 return null; // TODO
255 } // getColor()
256
257 /**
258 * getFontMetrics
259 * @returns FontMetrics
260 */
261 public FontMetrics getFontMetrics() {
262 return null; // TODO
263 } // getFontMetrics()
264
265 /**
266 * getFontMetrics
267 * @param font TODO
268 * @returns FontMetrics
269 */
270 public FontMetrics getFontMetrics(Font font) {
271 return null; // TODO
272 } // getFontMetrics()
273
274 /**
275 * translate
276 * @param x TODO
277 * @param y TODO
278 */
279 public void translate(int x, int y) {
280 // TODO
281 } // translate()
282
283 /**
284 * setPaintMode
285 */
286 public void setPaintMode() {
287 // TODO
288 } // setPaintMode()
289
290 /**
291 * setXORMode
292 * @param color TODO
293 */
294 public void setXORMode(Color color) {
295 // TODO
296 } // setXORMode()
297
298 /**
299 * getClipBounds
300 * @returns Rectangle
301 */
302 public Rectangle getClipBounds() {
303 return null; // TODO
304 } // getClipBounds()
305
306 /**
307 * clipRect
308 * @param value0 TODO
309 * @param value1 TODO
310 * @param value2 TODO
311 * @param value3 TODO
312 */
313 public void clipRect(int value0, int value1, int value2, int value3) {
314 // TODO
315 } // clipRect()
316
317 /**
318 * setClip
319 * @param x TODO
320 * @param y TODO
321 * @param w TODO
322 * @param h TODO
323 */
324 public void setClip(int x, int y, int w, int h) {
325 // TODO
326 } // setClip()
327
328 /**
329 * getClip
330 * @returns Shape
331 */
332 public Shape getClip() {
333 return null; // TODO
334 } // getClip()
335
336 /**
337 * setClip
338 * @param shape TODO
339 */
340 public void setClip(Shape shape) {
341 // TODO
342 } // setClip()
343
344 /**
345 * drawRect
346 * @param x TODO
347 * @param y TODO
348 * @param w TODO
349 * @param valh TODO
350 */
351 public void drawRect(int x, int y, int w, int h) {
352 // TODO
353 } // drawRect()
354
355 /**
356 * fillRect
357 * @param x TODO
358 * @param y TODO
359 * @param w TODO
360 * @param h TODO
361 */
362 public void fillRect(int x, int y, int w, int h) {
363 // TODO
364 } // fillRect()
365
366 /**
367 * clearRect
368 * @param x TODO
369 * @param y TODO
370 * @param w TODO
371 * @param h TODO
372 */
373 public void clearRect(int x, int y, int w, int h) {
374 // TODO
375 } // clearRect()
376
377 /**
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
385 */
386 public void drawRoundRect(int x, int y, int w, int h,
387 int arcWidth, int arcHeight) {
388 // TODO
389 } // drawRoundRect()
390
391 /**
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
399 */
400 public void fillRoundRect(int x, int y, int w, int h,
401 int arcWidth, int arcHeight) {
402 // TODO
403 } // fillRoundRect()
404
405 /**
406 * drawLine
407 * @param x1 TODO
408 * @param y1 TODO
409 * @param x2 TODO
410 * @param y2 TODO
411 */
412 public void drawLine(int x1, int y1, int x2, int y2) {
413 // TODO
414 } // drawLine()
415
416 /**
417 * draw3DRect
418 * @param x TODO
419 * @param y TODO
420 * @param w TODO
421 * @param h TODO
422 * @param raised TODO
423 */
424 public void draw3DRect(int x, int y, int w, int h, boolean raised) {
425 // TODO
426 } // draw3DRect()
427
428 /**
429 * fill3DRect
430 * @param x TODO
431 * @param y TODO
432 * @param w TODO
433 * @param h TODO
434 * @param raised TODO
435 */
436 public void fill3DRect(int x, int y, int w, int h, boolean raised) {
437 // TODO
438 } // fill3DRect()
439
440 /**
441 * drawOval
442 * @param x TODO
443 * @param y TODO
444 * @param w TODO
445 * @param h TODO
446 */
447 public void drawOval(int x, int y, int w, int h) {
448 // TODO
449 } // drawOval()
450
451 /**
452 * fillOval
453 * @param x TODO
454 * @param y TODO
455 * @param w TODO
456 * @param h TODO
457 */
458 public void fillOval(int x, int y, int w, int h) {
459 // TODO
460 } // fillOval()
461
462 /**
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
470 */
471 public void drawArc(int x, int y, int w, int h,
472 int startAngle, int arcAngle) {
473 // TODO
474 } // drawArc()
475
476 /**
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
484 */
485 public void fillArc(int x, int y, int w, int h,
486 int startAngle, int arcAngle) {
487 // TODO
488 } // fillArc()
489
490 /**
491 * drawPolyline
492 * @param xpoints TODO
493 * @param ypoints TODO
494 * @param npoints TODO
495 */
496 public void drawPolyline(int[] xpoints, int[] ypoints, int npoints) {
497 // TODO
498 } // drawPolyline()
499
500 /**
501 * drawPolygon
502 * @param xpoints TODO
503 * @param ypoints TODO
504 * @param npoints TODO
505 */
506 public void drawPolygon(int[] xpoints, int[] ypoints, int npoints) {
507 // TODO
508 } // drawPolygon()
509
510 /**
511 * fillPolygon
512 * @param xpoints TODO
513 * @param ypoints TODO
514 * @param npoints TODO
515 */
516 public void fillPolygon(int[] xpoints, int[] ypoints, int npoints) {
517 // TODO
518 } // fillPolygon()
519
520 /**
521 * drawString
522 * @param string TODO
523 * @param x TODO
524 * @param y TODO
525 */
526 public void drawString(String string, int s, int y) {
527 // TODO
528 } // drawString()
529
530 /**
531 * drawString
532 * @param iterator TODO
533 * @param x TODO
534 * @param y TODO
535 */
536 public void drawString(AttributedCharacterIterator iterator,
537 int x, int y) {
538 // TODO
539 } // drawString()
540
541 /**
542 * drawBytes
543 * @param data TODO
544 * @param offset TODO
545 * @param length TODO
546 * @param x TODO
547 * @param y TODO
548 */
549 public void drawBytes(byte[] data, int offset, int length,
550 int x, int y) {
551 // TODO
552 } // drawBytes()
553
554 /**
555 * drawChars
556 * @param data TODO
557 * @param offset TODO
558 * @param length TODO
559 * @param value3 TODO
560 * @param value4 TODO
561 */
562 public void drawChars(char[] data, int offset, int value2,
563 int x, int y) {
564 // TODO
565 } // drawChars()
566
567 /**
568 * drawImage
569 * @param image TODO
570 * @param x TODO
571 * @param y TODO
572 * @param observer TODO
573 * @returns boolean
574 */
575 public boolean drawImage(Image image, int x, int y,
576 ImageObserver observer) {
577 return false; // TODO
578 } // drawImage()
579
580 /**
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
589 */
590 public boolean drawImage(Image image, int x, int y, int w,
591 int h, ImageObserver observer) {
592 return false; // TODO
593 } // drawImage()
594
595 /**
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
603 */
604 public boolean drawImage(Image image, int x, int y,
605 Color background, ImageObserver observer) {
606 return false; // TODO
607 } // drawImage()
608
609 /**
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
619 */
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()
624
625 /**
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
638 */
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()
644
645 /**
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
659 */
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()
665
666 /**
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
674 */
675 public void copyArea(int x, int y, int w, int h,
676 int destx, int desty) {
677 // TODO
678 } // copyArea()
679
680 /**
681 * dispose
682 */
683 public void dispose() {
684 // TODO
685 } // dispose()
686
687 /**
688 * isDrawingBuffer
689 * @returns boolean
690 */
691 public boolean isDrawingBuffer() {
692 return false; // TODO
693 } // isDrawingBuffer()
694
695 /**
696 * toShortString
697 * @returns String
698 */
699 String toShortString() {
700 return null; // TODO
701 } // toShortString()
702
703 /**
704 * setDebugOptions
705 * @param options TODO
706 */
707 public void setDebugOptions(int options) {
708 // TODO
709 } // setDebugOptions()
710
711 /**
712 * getDebugOptions
713 * @returns int
714 */
715 public int getDebugOptions() {
716 return 0; // TODO
717 } // getDebugOptions()
718
719
720} // DebugGraphics
Note: See TracBrowser for help on using the repository browser.