KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwt > awt > geom > AffineTransform


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9
10    $Log: AffineTransform.java,v $
11    Revision 1.3 2004/04/20 16:36:12 bobintetley
12    Code cleanup
13
14    Revision 1.2 2004/01/15 15:20:29 bobintetley
15    Java2D work
16
17    Revision 1.1 2003/12/15 16:22:13 bobintetley
18    awt.geom/print stubs
19
20
21 */

22
23 package swingwt.awt.geom;
24
25 import swingwt.awt.*;
26
27 public class AffineTransform implements Cloneable JavaDoc {
28
29     public static final int TYPE_IDENTITY = 0;
30     public static final int TYPE_TRANSLATION = 1;
31     public static final int TYPE_UNIFORM_SCALE = 2;
32     public static final int TYPE_GENERAL_SCALE = 4;
33     public static final int TYPE_MASK_SCALE = (TYPE_UNIFORM_SCALE |
34                            TYPE_GENERAL_SCALE);
35     public static final int TYPE_FLIP = 64;
36     public static final int TYPE_QUADRANT_ROTATION = 8;
37     public static final int TYPE_GENERAL_ROTATION = 16;
38     public static final int TYPE_MASK_ROTATION = (TYPE_QUADRANT_ROTATION |
39                           TYPE_GENERAL_ROTATION);
40
41     public static final int TYPE_GENERAL_TRANSFORM = 32;
42     
43     
44     public AffineTransform() {
45     }
46
47     public AffineTransform(AffineTransform Tx) {
48     }
49
50
51     public AffineTransform(float m00, float m10,
52                float m01, float m11,
53                float m02, float m12) {
54     }
55
56     public AffineTransform(float[] flatmatrix) {
57     }
58
59     public AffineTransform(double m00, double m10,
60                double m01, double m11,
61                double m02, double m12) {
62     }
63
64     public AffineTransform(double[] flatmatrix) {
65     }
66
67     public static AffineTransform getTranslateInstance(double tx, double ty) {
68     return null;
69     }
70
71     public static AffineTransform getRotateInstance(double theta) {
72         return null;
73     }
74
75     public static AffineTransform getRotateInstance(double theta,
76                             double x, double y) {
77     return null;
78     }
79     public static AffineTransform getScaleInstance(double sx, double sy) {
80     return null;
81     }
82
83     public static AffineTransform getShearInstance(double shx, double shy) {
84     return null;
85     }
86
87     public int getType() {
88     return 0;
89     }
90     
91     public double getDeterminant() {
92         return 0;
93     }
94     
95     public void getMatrix(double[] flatmatrix) {
96     }
97     
98     public double getScaleX() {
99     return 0;
100     }
101     public double getScaleY() {
102     return 0;
103     }
104     public double getShearX() {
105     return 0;
106     }
107     public double getShearY() {
108     return 0;
109     }
110     public double getTranslateX() {
111     return 0;
112     }
113
114     public double getTranslateY() {
115     return 0;
116     }
117
118     public void translate(double tx, double ty) {
119     }
120
121     public void rotate(double theta) {
122     }
123     
124     
125     public void rotate(double theta, double x, double y) {
126     }
127     
128     public void scale(double sx, double sy) {
129     }
130
131     public void shear(double shx, double shy) {
132     }
133
134     public void setToIdentity() {
135     }
136
137     public void setToTranslation(double tx, double ty) {
138     }
139     
140     public void setToRotation(double theta) {
141     }
142     
143     public void setToRotation(double theta, double x, double y) {
144     }
145     
146     public void setToScale(double sx, double sy) {
147     }
148
149     public void setToShear(double shx, double shy) {
150     }
151
152     public void setTransform(AffineTransform Tx) {
153     }
154
155     public void setTransform(double m00, double m10,
156                  double m01, double m11,
157                  double m02, double m12) {
158     }
159
160     public void concatenate(AffineTransform Tx) {
161     }
162     
163     public void preConcatenate(AffineTransform Tx) {
164     }
165     
166     public AffineTransform createInverse()
167     throws NoninvertibleTransformException
168     {
169         return null;
170     }
171     public Point2D transform(Point2D ptSrc, Point2D ptDst) {
172     return null;
173     }
174     
175     public void transform(Point2D[] ptSrc, int srcOff,
176               Point2D[] ptDst, int dstOff,
177               int numPts) {
178     }
179
180     public void transform(float[] srcPts, int srcOff,
181               float[] dstPts, int dstOff,
182               int numPts) {
183     }
184
185     public void transform(double[] srcPts, int srcOff,
186               double[] dstPts, int dstOff,
187               int numPts) {
188     
189     }
190     
191     public void transform(float[] srcPts, int srcOff,
192               double[] dstPts, int dstOff,
193               int numPts) {
194     }
195     public void transform(double[] srcPts, int srcOff,
196               float[] dstPts, int dstOff,
197               int numPts) {
198     
199     }
200     public Point2D inverseTransform(Point2D ptSrc, Point2D ptDst)
201     throws NoninvertibleTransformException
202     {
203         // FIXME: Implement
204
return null;
205     }
206     public void inverseTransform(double[] srcPts, int srcOff,
207                                  double[] dstPts, int dstOff,
208                                  int numPts)
209     throws NoninvertibleTransformException
210     {
211
212     }
213     public Point2D deltaTransform(Point2D ptSrc, Point2D ptDst) {
214
215         return null;
216     }
217     public void deltaTransform(double[] srcPts, int srcOff,
218                    double[] dstPts, int dstOff,
219                    int numPts) {
220     }
221     public Shape createTransformedShape(Shape pSrc) {
222         return null;
223     }
224     
225     public boolean isIdentity() {
226         return false;
227     }
228 }
229
Popular Tags