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.effect;
27
28 import static com.sun.javafx.test.TestHelper.box;
29 import static org.junit.Assert.assertEquals;
30 import static org.junit.Assert.assertNull;
31 import javafx.beans.property.DoubleProperty;
32 import javafx.beans.property.SimpleDoubleProperty;
33 import javafx.scene.paint.Color;
34
35 import org.junit.Before;
36 import org.junit.Test;
37
38 import com.sun.scenario.effect.AbstractShadow.ShadowMode;
39 import com.sun.scenario.effect.Color4f;
40
41 public class InnerShadowTest extends EffectsTestBase {
42 private InnerShadow effect;
43 private static final Color4f red = new Color4f(
44 (float) Color.RED.getRed(),
45 (float) Color.RED.getGreen(),
46 (float) Color.RED.getBlue(),
47 (float) Color.RED.getOpacity()
48 );
49 private static final Color4f black = new Color4f(
50 (float) Color.BLACK.getRed(),
51 (float) Color.BLACK.getGreen(),
52 (float) Color.BLACK.getBlue(),
53 (float) Color.BLACK.getOpacity()
54 );
55
56 @Before
57 public void setUp() {
58 effect = new InnerShadow();
59 setupTest(effect);
|
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.effect;
27
28 import static test.com.sun.javafx.test.TestHelper.box;
29 import static org.junit.Assert.assertEquals;
30 import static org.junit.Assert.assertNull;
31 import javafx.beans.property.DoubleProperty;
32 import javafx.beans.property.SimpleDoubleProperty;
33 import javafx.scene.paint.Color;
34
35 import org.junit.Before;
36 import org.junit.Test;
37
38 import com.sun.scenario.effect.AbstractShadow.ShadowMode;
39 import com.sun.scenario.effect.Color4f;
40 import javafx.scene.effect.BlurType;
41 import javafx.scene.effect.BoxBlur;
42 import javafx.scene.effect.InnerShadow;
43
44 public class InnerShadowTest extends EffectsTestBase {
45 private InnerShadow effect;
46 private static final Color4f red = new Color4f(
47 (float) Color.RED.getRed(),
48 (float) Color.RED.getGreen(),
49 (float) Color.RED.getBlue(),
50 (float) Color.RED.getOpacity()
51 );
52 private static final Color4f black = new Color4f(
53 (float) Color.BLACK.getRed(),
54 (float) Color.BLACK.getGreen(),
55 (float) Color.BLACK.getBlue(),
56 (float) Color.BLACK.getOpacity()
57 );
58
59 @Before
60 public void setUp() {
61 effect = new InnerShadow();
62 setupTest(effect);
|