2362N/A * Copyright (c) 2002, 2008, Oracle and/or its affiliates. All rights reserved. 430N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 430N/A * This code is free software; you can redistribute it and/or modify it 430N/A * under the terms of the GNU General Public License version 2 only, as 430N/A * published by the Free Software Foundation. 430N/A * This code is distributed in the hope that it will be useful, but WITHOUT 430N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 430N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 430N/A * version 2 for more details (a copy is included in the LICENSE file that 430N/A * accompanied this code). 430N/A * You should have received a copy of the GNU General Public License version 430N/A * 2 along with this work; if not, write to the Free Software Foundation, 430N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 430N/A * @bug 4678208 4771101 6328481 6588884 430N/A * @summary verify the pixelization of degenerate polylines and polygons 430N/A * @run main PolyVertTest 430N/A setBackground(Color.white); 430N/A setForeground(Color.black); 430N/A // void polygon (no points) 430N/A 10,
0,
1,
1,
15,
0,
1,
1,
430N/A 20,
0,
1,
1,
25,
0,
1,
1 },
430N/A {
0,
5,
5 }, {
0,
0,
5 },
430N/A {
0,
0,
6,
1,
5,
1,
1,
5,
430N/A 10,
0,
6,
1,
15,
1,
1,
5,
11,
1,
1,
1,
430N/A 12,
2,
1,
1,
13,
3,
1,
1,
14,
4,
1,
1,
430N/A 20,
0,
6,
1,
25,
1,
1,
5,
21,
1,
1,
1,
430N/A 22,
2,
1,
1,
23,
3,
1,
1,
24,
4,
1,
1 },
430N/A {
0,
0,
6,
1,
5,
1,
1,
5,
430N/A 10,
0,
6,
1,
15,
1,
1,
5,
11,
1,
1,
1,
430N/A 12,
2,
1,
1,
13,
3,
1,
1,
14,
4,
1,
1,
430N/A 20,
0,
6,
1,
25,
1,
1,
5,
21,
1,
1,
1,
430N/A 22,
2,
1,
1,
23,
3,
1,
1,
24,
4,
1,
1 },
430N/A {
0,
5,
5,
0 }, {
0,
0,
5,
0 },
430N/A {
0,
0,
6,
1,
5,
1,
1,
5,
1,
1,
1,
1,
430N/A 2,
2,
1,
1,
3,
3,
1,
1,
4,
4,
1,
1,
430N/A 10,
0,
6,
1,
15,
1,
1,
5,
11,
1,
1,
1,
430N/A 12,
2,
1,
1,
13,
3,
1,
1,
14,
4,
1,
1,
430N/A 20,
0,
6,
1,
25,
1,
1,
5,
21,
1,
1,
1,
430N/A 22,
2,
1,
1,
23,
3,
1,
1,
24,
4,
1,
1 },
430N/A {
1,
0,
5,
1,
5,
1,
1,
5,
1,
1,
1,
1,
430N/A 2,
2,
1,
1,
3,
3,
1,
1,
4,
4,
1,
1,
430N/A 10,
0,
6,
1,
15,
1,
1,
5,
11,
1,
1,
1,
430N/A 12,
2,
1,
1,
13,
3,
1,
1,
14,
4,
1,
1,
430N/A 20,
0,
6,
1,
25,
1,
1,
5,
21,
1,
1,
1,
430N/A 22,
2,
1,
1,
23,
3,
1,
1,
24,
4,
1,
1 },
430N/A {
0,
0,
0 }, {
0,
0,
0 },
430N/A "print this usage summary");
430N/A "run all tests and accumulate error counts");
430N/A "force at least one error in each test");
430N/A "draw a yellow fringe around problems");
430N/A "display results window for tests with problems");
430N/A "display results window for all tests");
430N/A "only run test cases reported in bug reports");
430N/A "run full suite of test cases for a 'unit test'");
430N/A "only run tests for screen and VolatileImage");
430N/A // Prevents premature exit by the WindowAdapter if the user 430N/A // closes the last visible results window before we've 430N/A for (
int y =
10; y <
50; y +=
10) {