home *** CD-ROM | disk | FTP | other *** search
- package netscape.application;
-
- import java.awt.Graphics;
-
- class GraphicsState implements Cloneable {
- Graphics awtGraphics;
- Font font;
- Color color;
- Rect clipRect;
- Rect absoluteClipRect;
- int xOffset;
- int yOffset;
- Color xorColor;
- int debugOptions;
- static final int LOG_OPTION = 1;
- static final int FLASH_OPTION = 2;
- static final int BUFFERED_OPTION = 4;
- static final int NONE_OPTION = -1;
-
- public Object clone() {
- GraphicsState var1 = null;
-
- try {
- var1 = (GraphicsState)super.clone();
- } catch (Exception var2) {
- }
-
- if (var1 != null) {
- var1.clipRect = null;
- var1.absoluteClipRect = null;
- var1.awtGraphics = null;
- }
-
- return var1;
- }
-
- public String toString() {
- StringBuffer var1 = new StringBuffer();
- var1.append("Font: " + this.font + ", ");
- var1.append("Color: " + this.color + ", ");
- var1.append("Translation: (" + this.xOffset + ", " + this.yOffset + "), ");
- var1.append("xor: " + this.xorColor + ", ");
- var1.append("absoluteClipRect: " + this.absoluteClipRect + ", ");
- var1.append("debugOption: " + this.debugOptions);
- return var1.toString();
- }
-
- boolean debugLog() {
- return (this.debugOptions & 1) == 1;
- }
-
- boolean debugFlash() {
- return (this.debugOptions & 2) == 2;
- }
-
- boolean debugBuffered() {
- return (this.debugOptions & 4) == 4;
- }
- }
-