6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javafx.scene.transform;
27
28 import com.sun.javafx.geom.transform.Affine2D;
29 import com.sun.javafx.geom.transform.Affine3D;
30 import com.sun.javafx.geom.transform.BaseTransform;
31 import com.sun.javafx.geom.transform.Identity;
32 import com.sun.javafx.geom.transform.Translate2D;
33 import java.util.Arrays;
34 import java.util.Collection;
35 import com.sun.javafx.test.TransformHelper;
36 import javafx.geometry.Point3D;
37 import org.junit.Test;
38 import org.junit.runner.RunWith;
39 import org.junit.runners.Parameterized;
40 import org.junit.runners.Parameterized.Parameters;
41
42 import static org.junit.Assert.*;
43
44 @RunWith(Parameterized.class)
45 public class TransformDeriveTest {
46
47 private static final Identity identity = new Identity();
48 private static final Translate2D translate2d = new Translate2D(10, 20);
49 private static final Affine2D affine2d = new Affine2D();
50 static { affine2d.scale(2, 4); }
51 private static final Affine3D affine3d = new Affine3D();
52 static { affine3d.scale(2, 4, 8); }
53
54 private static final Translate translate_identity = new Translate();
55 private static final Translate translate_translate2d = new Translate(10, 20);
56 private static final Translate translate_translate3d = new Translate(10, 20, 30);
|
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package test.javafx.scene.transform;
27
28 import com.sun.javafx.geom.transform.Affine2D;
29 import com.sun.javafx.geom.transform.Affine3D;
30 import com.sun.javafx.geom.transform.BaseTransform;
31 import com.sun.javafx.geom.transform.Identity;
32 import com.sun.javafx.geom.transform.Translate2D;
33 import java.util.Arrays;
34 import java.util.Collection;
35 import test.com.sun.javafx.test.TransformHelper;
36 import javafx.geometry.Point3D;
37 import javafx.scene.transform.Affine;
38 import javafx.scene.transform.Rotate;
39 import javafx.scene.transform.Scale;
40 import javafx.scene.transform.Shear;
41 import javafx.scene.transform.Transform;
42 import javafx.scene.transform.Translate;
43 import org.junit.Test;
44 import org.junit.runner.RunWith;
45 import org.junit.runners.Parameterized;
46 import org.junit.runners.Parameterized.Parameters;
47
48 import static org.junit.Assert.*;
49
50 @RunWith(Parameterized.class)
51 public class TransformDeriveTest {
52
53 private static final Identity identity = new Identity();
54 private static final Translate2D translate2d = new Translate2D(10, 20);
55 private static final Affine2D affine2d = new Affine2D();
56 static { affine2d.scale(2, 4); }
57 private static final Affine3D affine3d = new Affine3D();
58 static { affine3d.scale(2, 4, 8); }
59
60 private static final Translate translate_identity = new Translate();
61 private static final Translate translate_translate2d = new Translate(10, 20);
62 private static final Translate translate_translate3d = new Translate(10, 20, 30);
|