fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / libjava / javax / swing / DebugGraphics.java
bloba3c3d39daa817d145b216b8ed12b48c922e032da
1 /* DebugGraphics.java --
2 Copyright (C) 2002, 2004 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 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;
51 /**
52 * DebugGraphics
53 * @author Andrew Selkirk
54 * @version 1.0
56 public class DebugGraphics extends Graphics {
58 //-------------------------------------------------------------
59 // Variables --------------------------------------------------
60 //-------------------------------------------------------------
62 /**
63 * graphics
65 Graphics graphics;
67 /**
68 * buffer
70 Image buffer;
72 /**
73 * debugOptions
75 int debugOptions;
77 /**
78 * graphicsID
80 int graphicsID;
82 /**
83 * xOffset
85 int xOffset;
87 /**
88 * yOffset
90 int yOffset;
92 /**
93 * LOG_OPTION
95 public static final int LOG_OPTION = 1;
97 /**
98 * FLASH_OPTION
100 public static final int FLASH_OPTION = 2;
103 * BUFFERED_OPTION
105 public static final int BUFFERED_OPTION = 4;
108 * NONE_OPTION
110 public static final int NONE_OPTION = -1;
113 //-------------------------------------------------------------
114 // Initialization ---------------------------------------------
115 //-------------------------------------------------------------
118 * Constructor DebugGraphics
120 public DebugGraphics() {
121 // TODO
122 } // DebugGraphics()
125 * Constructor DebugGraphics
126 * @param graphics TODO
127 * @param component TODO
129 public DebugGraphics(Graphics graphics, JComponent component) {
130 // TODO
131 } // DebugGraphics()
134 * Constructor DebugGraphics
135 * @param graphics TODO
137 public DebugGraphics(Graphics graphics) {
138 // TODO
139 } // DebugGraphics()
142 //-------------------------------------------------------------
143 // Methods ----------------------------------------------------
144 //-------------------------------------------------------------
147 * setColor
148 * @param value0 TODO
150 public void setColor(Color color) {
151 // TODO
152 } // setColor()
155 * create
156 * @returns Graphics
158 public Graphics create() {
159 return null; // TODO
160 } // create()
163 * create
164 * @param x TODO
165 * @param y TODO
166 * @param w TODO
167 * @param h TODO
168 * @returns Graphics
170 public Graphics create(int valx, int y, int w, int h) {
171 return null; // TODO
172 } // create()
175 * flashColor
176 * @returns Color
178 public static Color flashColor() {
179 return null; // TODO
180 } // flashColor()
183 * setFlashColor
184 * @param color TODO
186 public static void setFlashColor(Color color) {
187 // TODO
188 } // setFlashColor()
191 * flashTime
192 * @returns int
194 public static int flashTime() {
195 return 0; // TODO
196 } // flashTime()
199 * setFlashTime
200 * @param time TODO
202 public static void setFlashTime(int time) {
203 // TODO
204 } // setFlashTime()
207 * flashCount
208 * @returns int
210 public static int flashCount() {
211 return 0; // TODO
212 } // flashCount()
215 * setFlashCount
216 * @param count TODO
218 public static void setFlashCount(int count) {
219 // TODO
220 } // setFlashCount()
223 * logStream
224 * @returns PrintStream
226 public static PrintStream logStream() {
227 return null; // TODO
228 } // logStream()
231 * setLogStream
232 * @param stream TODO
234 public static void setLogStream(PrintStream stream) {
235 // TODO
236 } // setLogStream()
239 * getFont
240 * @returns Font
242 public Font getFont() {
243 return null; // TODO
244 } // getFont()
247 * setFont
248 * @param font TODO
250 public void setFont(Font font) {
251 // TODO
252 } // setFont()
255 * getColor
256 * @returns Color
258 public Color getColor() {
259 return null; // TODO
260 } // getColor()
263 * getFontMetrics
264 * @returns FontMetrics
266 public FontMetrics getFontMetrics() {
267 return null; // TODO
268 } // getFontMetrics()
271 * getFontMetrics
272 * @param font TODO
273 * @returns FontMetrics
275 public FontMetrics getFontMetrics(Font font) {
276 return null; // TODO
277 } // getFontMetrics()
280 * translate
281 * @param x TODO
282 * @param y TODO
284 public void translate(int x, int y) {
285 // TODO
286 } // translate()
289 * setPaintMode
291 public void setPaintMode() {
292 // TODO
293 } // setPaintMode()
296 * setXORMode
297 * @param color TODO
299 public void setXORMode(Color color) {
300 // TODO
301 } // setXORMode()
304 * getClipBounds
305 * @returns Rectangle
307 public Rectangle getClipBounds() {
308 return null; // TODO
309 } // getClipBounds()
312 * clipRect
313 * @param value0 TODO
314 * @param value1 TODO
315 * @param value2 TODO
316 * @param value3 TODO
318 public void clipRect(int value0, int value1, int value2, int value3) {
319 // TODO
320 } // clipRect()
323 * setClip
324 * @param x TODO
325 * @param y TODO
326 * @param w TODO
327 * @param h TODO
329 public void setClip(int x, int y, int w, int h) {
330 // TODO
331 } // setClip()
334 * getClip
335 * @returns Shape
337 public Shape getClip() {
338 return null; // TODO
339 } // getClip()
342 * setClip
343 * @param shape TODO
345 public void setClip(Shape shape) {
346 // TODO
347 } // setClip()
350 * drawRect
351 * @param x TODO
352 * @param y TODO
353 * @param w TODO
354 * @param valh TODO
356 public void drawRect(int x, int y, int w, int h) {
357 // TODO
358 } // drawRect()
361 * fillRect
362 * @param x TODO
363 * @param y TODO
364 * @param w TODO
365 * @param h TODO
367 public void fillRect(int x, int y, int w, int h) {
368 // TODO
369 } // fillRect()
372 * clearRect
373 * @param x TODO
374 * @param y TODO
375 * @param w TODO
376 * @param h TODO
378 public void clearRect(int x, int y, int w, int h) {
379 // TODO
380 } // clearRect()
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
391 public void drawRoundRect(int x, int y, int w, int h,
392 int arcWidth, int arcHeight) {
393 // TODO
394 } // drawRoundRect()
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
405 public void fillRoundRect(int x, int y, int w, int h,
406 int arcWidth, int arcHeight) {
407 // TODO
408 } // fillRoundRect()
411 * drawLine
412 * @param x1 TODO
413 * @param y1 TODO
414 * @param x2 TODO
415 * @param y2 TODO
417 public void drawLine(int x1, int y1, int x2, int y2) {
418 // TODO
419 } // drawLine()
422 * draw3DRect
423 * @param x TODO
424 * @param y TODO
425 * @param w TODO
426 * @param h TODO
427 * @param raised TODO
429 public void draw3DRect(int x, int y, int w, int h, boolean raised) {
430 // TODO
431 } // draw3DRect()
434 * fill3DRect
435 * @param x TODO
436 * @param y TODO
437 * @param w TODO
438 * @param h TODO
439 * @param raised TODO
441 public void fill3DRect(int x, int y, int w, int h, boolean raised) {
442 // TODO
443 } // fill3DRect()
446 * drawOval
447 * @param x TODO
448 * @param y TODO
449 * @param w TODO
450 * @param h TODO
452 public void drawOval(int x, int y, int w, int h) {
453 // TODO
454 } // drawOval()
457 * fillOval
458 * @param x TODO
459 * @param y TODO
460 * @param w TODO
461 * @param h TODO
463 public void fillOval(int x, int y, int w, int h) {
464 // TODO
465 } // fillOval()
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
476 public void drawArc(int x, int y, int w, int h,
477 int startAngle, int arcAngle) {
478 // TODO
479 } // drawArc()
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
490 public void fillArc(int x, int y, int w, int h,
491 int startAngle, int arcAngle) {
492 // TODO
493 } // fillArc()
496 * drawPolyline
497 * @param xpoints TODO
498 * @param ypoints TODO
499 * @param npoints TODO
501 public void drawPolyline(int[] xpoints, int[] ypoints, int npoints) {
502 // TODO
503 } // drawPolyline()
506 * drawPolygon
507 * @param xpoints TODO
508 * @param ypoints TODO
509 * @param npoints TODO
511 public void drawPolygon(int[] xpoints, int[] ypoints, int npoints) {
512 // TODO
513 } // drawPolygon()
516 * fillPolygon
517 * @param xpoints TODO
518 * @param ypoints TODO
519 * @param npoints TODO
521 public void fillPolygon(int[] xpoints, int[] ypoints, int npoints) {
522 // TODO
523 } // fillPolygon()
526 * drawString
527 * @param string TODO
528 * @param x TODO
529 * @param y TODO
531 public void drawString(String string, int s, int y) {
532 // TODO
533 } // drawString()
536 * drawString
537 * @param iterator TODO
538 * @param x TODO
539 * @param y TODO
541 public void drawString(AttributedCharacterIterator iterator,
542 int x, int y) {
543 // TODO
544 } // drawString()
547 * drawBytes
548 * @param data TODO
549 * @param offset TODO
550 * @param length TODO
551 * @param x TODO
552 * @param y TODO
554 public void drawBytes(byte[] data, int offset, int length,
555 int x, int y) {
556 // TODO
557 } // drawBytes()
560 * drawChars
561 * @param data TODO
562 * @param offset TODO
563 * @param length TODO
564 * @param value3 TODO
565 * @param value4 TODO
567 public void drawChars(char[] data, int offset, int value2,
568 int x, int y) {
569 // TODO
570 } // drawChars()
573 * drawImage
574 * @param image TODO
575 * @param x TODO
576 * @param y TODO
577 * @param observer TODO
578 * @returns boolean
580 public boolean drawImage(Image image, int x, int y,
581 ImageObserver observer) {
582 return false; // TODO
583 } // drawImage()
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
595 public boolean drawImage(Image image, int x, int y, int w,
596 int h, ImageObserver observer) {
597 return false; // TODO
598 } // drawImage()
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
609 public boolean drawImage(Image image, int x, int y,
610 Color background, ImageObserver observer) {
611 return false; // TODO
612 } // drawImage()
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
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()
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
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()
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
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()
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
680 public void copyArea(int x, int y, int w, int h,
681 int destx, int desty) {
682 // TODO
683 } // copyArea()
686 * dispose
688 public void dispose() {
689 // TODO
690 } // dispose()
693 * isDrawingBuffer
694 * @returns boolean
696 public boolean isDrawingBuffer() {
697 return false; // TODO
698 } // isDrawingBuffer()
701 * toShortString
702 * @returns String
704 String toShortString() {
705 return null; // TODO
706 } // toShortString()
709 * setDebugOptions
710 * @param options TODO
712 public void setDebugOptions(int options) {
713 // TODO
714 } // setDebugOptions()
717 * getDebugOptions
718 * @returns int
720 public int getDebugOptions() {
721 return 0; // TODO
722 } // getDebugOptions()
725 } // DebugGraphics