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