1 Clazz.declarePackage ("jssun.java2d");
2 Clazz.load (["java.awt.Graphics2D"], "jssun.java2d.SunGraphics2D", ["java.awt.geom.AffineTransform"], function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.transformState = 0;
5 this.foregroundColor = null;
6 this.backgroundColor = null;
7 this.$transform = null;
11 Clazz.instantialize (this, arguments);
12 }, jssun.java2d, "SunGraphics2D", java.awt.Graphics2D);
13 Clazz.defineMethod (c$, "clone",
15 return this.clone0 ();
17 Clazz.defineMethod (c$, "clone0",
22 g = Clazz.clone(this);
23 }g.$transform = new java.awt.geom.AffineTransform (this.$transform);
24 if (this.hints != null) {
25 g.hints = this.hints.clone ();
28 if (Clazz.exceptionOf (e, CloneNotSupportedException)) {
35 Clazz.defineMethod (c$, "create",
37 return this.clone0 ();
39 Clazz.defineStatics (c$,
40 "TRANSFORM_GENERIC", 4,
41 "TRANSFORM_TRANSLATESCALE", 3,
42 "TRANSFORM_ANY_TRANSLATE", 2,
43 "TRANSFORM_INT_TRANSLATE", 1,
44 "TRANSFORM_ISIDENT", 0);