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.shape;
27
28 import static com.sun.javafx.test.TestHelper.assertSimilar;
29 import static com.sun.javafx.test.TestHelper.box;
30 import static org.junit.Assert.assertEquals;
31
32 import org.junit.Test;
33
34 public class BoundsTest {
35
36 /***************************************************************************
37 * *
38 * Simple Bounds Sanity Tests *
39 * *
40 * These are simple tests that basic geometry works. These are simple *
41 * tests for the basic primitives in the scene graph to make sure that *
42 * they all compute their geometric bounds properly. *
43 * *
44 /**************************************************************************/
45 /*
46 @Test
47 public void testBoundsForArc() {
48 Arc arc = new Arc(0, 0, 25, 25, 90, 90);
49 arc.setType(ArcType.ROUND);
|
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.shape;
27
28 import javafx.scene.shape.ArcTo;
29 import javafx.scene.shape.HLineTo;
30 import javafx.scene.shape.LineTo;
31 import javafx.scene.shape.MoveTo;
32 import javafx.scene.shape.Path;
33 import javafx.scene.shape.QuadCurveTo;
34 import static test.com.sun.javafx.test.TestHelper.assertSimilar;
35 import static test.com.sun.javafx.test.TestHelper.box;
36 import static org.junit.Assert.assertEquals;
37
38 import org.junit.Test;
39
40 public class BoundsTest {
41
42 /***************************************************************************
43 * *
44 * Simple Bounds Sanity Tests *
45 * *
46 * These are simple tests that basic geometry works. These are simple *
47 * tests for the basic primitives in the scene graph to make sure that *
48 * they all compute their geometric bounds properly. *
49 * *
50 /**************************************************************************/
51 /*
52 @Test
53 public void testBoundsForArc() {
54 Arc arc = new Arc(0, 0, 25, 25, 90, 90);
55 arc.setType(ArcType.ROUND);
|