< prev index next >
modules/javafx.graphics/src/main/java/javafx/scene/Scene.java
Print this page
rev 10859 : 8195788: Remove obsolete javafx.jmx module
Reviewed-by:
@@ -36,11 +36,10 @@
import com.sun.javafx.event.EventQueue;
import com.sun.javafx.geom.PickRay;
import com.sun.javafx.geom.Vec3d;
import com.sun.javafx.geom.transform.BaseTransform;
import com.sun.javafx.perf.PerformanceTracker;
-import com.sun.javafx.runtime.SystemProperties;
import com.sun.javafx.scene.CssFlags;
import com.sun.javafx.scene.LayoutFlags;
import com.sun.javafx.scene.SceneEventDispatcher;
import com.sun.javafx.scene.SceneHelper;
import com.sun.javafx.scene.input.DragboardHelper;
@@ -408,30 +407,20 @@
public void setWindow(Scene scene, Window window) {
scene.setWindow(window);
}
@Override
- public TKPulseListener getScenePulseListener(Scene scene) {
- return scene.getScenePulseListener();
- }
-
- @Override
public TKScene getPeer(Scene scene) {
return scene.getPeer();
}
@Override
public void setAllowPGAccess(boolean flag) {
Scene.setAllowPGAccess(flag);
}
@Override
- public void setPaused(boolean paused) {
- Scene.paused = paused;
- }
-
- @Override
public void parentEffectiveOrientationInvalidated(
final Scene scene) {
scene.parentEffectiveOrientationInvalidated();
}
@@ -479,13 +468,10 @@
private static boolean inSynchronizer = false;
private static boolean inMousePick = false;
private static boolean allowPGAccess = false;
private static int pgAccessCount = 0;
- // Flag set by the Toolkit when we are paused for JMX debugging
- private static boolean paused = false;
-
/**
* Used for debugging purposes. Returns true if we are in either the
* mouse event code (picking) or the synchronizer, or if the scene is
* not yet initialized,
*
@@ -606,17 +592,10 @@
/**
* The scene pulse listener that gets called on toolkit pulses
*/
ScenePulseListener scenePulseListener = new ScenePulseListener();
- TKPulseListener getScenePulseListener() {
- if (SystemProperties.isDebug()) {
- return scenePulseListener;
- }
- return null;
- }
-
private List<Runnable> preLayoutPulseListeners;
private List<Runnable> postLayoutPulseListeners;
/**
* Adds a new scene pre layout pulse listener to this scene. Every time a pulse occurs,
@@ -1281,11 +1260,10 @@
// we do not need pulse in the snapshot code
// because this scene can be stage-less
doLayoutPass();
- if (!paused) {
getRoot().updateBounds();
if (peer != null) {
peer.waitForRenderingToComplete();
peer.waitForSynchronization();
try {
@@ -1295,11 +1273,10 @@
peer.releaseSynchronization(false);
}
} else {
scenePulseListener.synchronizeSceneNodes();
}
- }
}
// Shared method for Scene.snapshot and Node.snapshot. It is static because
// we might be doing a Node snapshot with a null scene
@@ -1478,13 +1455,11 @@
*
* @return the rendered image
* @since JavaFX 2.2
*/
public WritableImage snapshot(WritableImage image) {
- if (!paused) {
Toolkit.getToolkit().checkFxUserThread();
- }
return doSnapshot(image);
}
/**
< prev index next >