-
Enhancement
-
Resolution: Unresolved
-
P4
-
8u77
-
x86
-
other
A DESCRIPTION OF THE REQUEST :
It would be nice to have a public interface that can tell us whether a stage is occluded by another scene or if one node occludes another node. If a stage has many controls that, for example, poll data from a server, when the stage is occluded by another stage it would be nice to have a listener inform the app that it can sleep and not send more server requests to update the data.
This is actually done behind the scenes by JavaFX in the scene graph, however there is no way for the application to tell when JavaFX has internally made this decision. This is useful, as I described, not for just skipping draw calls, but also for skipping heavy client work.
JUSTIFICATION :
This was and still is possible in Java Swing because the methods for determining occlusion are public. Those methods are public in Swing because the application can render its own controls, where in JavaFX this is done completely internally and changed through stlyesheets.
It would be nice to have a public interface that can tell us whether a stage is occluded by another scene or if one node occludes another node. If a stage has many controls that, for example, poll data from a server, when the stage is occluded by another stage it would be nice to have a listener inform the app that it can sleep and not send more server requests to update the data.
This is actually done behind the scenes by JavaFX in the scene graph, however there is no way for the application to tell when JavaFX has internally made this decision. This is useful, as I described, not for just skipping draw calls, but also for skipping heavy client work.
JUSTIFICATION :
This was and still is possible in Java Swing because the methods for determining occlusion are public. Those methods are public in Swing because the application can render its own controls, where in JavaFX this is done completely internally and changed through stlyesheets.