modules/graphics/src/test/java/test/javafx/scene/MouseTest.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -23,10 +23,11 @@
* questions.
*/
package test.javafx.scene;
+import com.sun.javafx.scene.SceneHelper;
import test.com.sun.javafx.test.MouseEventGenerator;
import static org.junit.Assert.*;
import javafx.event.EventHandler;
import javafx.scene.input.MouseEvent;
import javafx.scene.shape.Rectangle;
@@ -1580,15 +1581,15 @@
stage.setScene(scene);
stage.show();
}
public void processEvent(MouseEvent e) {
- scene.impl_processMouseEvent(e);
+ SceneHelper.processMouseEvent(scene, e);
}
public Object getCursorFrame() {
- return ((StubScene) scene.impl_getPeer()).getCursor();
+ return ((StubScene) SceneHelper.getPeer(scene)).getCursor();
}
public boolean wasMoused() {
return moused;
}
@@ -1789,16 +1790,16 @@
stage.setScene(scene);
stage.show();
}
public void processEvent(EventType<MouseEvent> type, double x, double y) {
- scene.impl_processMouseEvent(
+ SceneHelper.processMouseEvent(scene,
MouseEventGenerator.generateMouseEvent(type, x, y));
}
public Object getCursorFrame() {
- return ((StubScene) scene.impl_getPeer()).getCursor();
+ return ((StubScene) SceneHelper.getPeer(scene)).getCursor();
}
public EventHandler<MouseEvent> handler(final EventTarget target,
final double x, final double y) {