Class MarvinFxUtilities
- java.lang.Object
-
- ch.sahits.game.com.guigarage.marvfx.util.MarvinFxUtilities
-
public class MarvinFxUtilities extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MarvinFxUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javafx.scene.Node
findChildNodeById(javafx.scene.Parent parent, java.lang.String id)
static javafx.scene.Node
findNodeById(javafx.scene.Scene scene, java.lang.String id)
static javafx.geometry.Rectangle2D
getBoundsInWindow(javafx.scene.Scene scene)
static javafx.geometry.Rectangle2D
getBoundsOnScreen(javafx.scene.Scene scene)
static javafx.geometry.Rectangle2D
getBoundsOnScreen(javafx.stage.Window window)
static javafx.geometry.Point2D
getCenterOnParent(javafx.scene.Node node)
static javafx.geometry.Point2D
getCenterOnScene(javafx.scene.Node node)
private static double
getNodeHorizontalCenter(javafx.scene.Node node)
private static double
getNodeVerticalCenter(javafx.scene.Node node)
static javafx.geometry.Rectangle2D
getPrimaryScreenBounds()
static <T> T
runCallableInPlatformThread(java.util.concurrent.Callable<T> callable)
-
-
-
Method Detail
-
getPrimaryScreenBounds
public static javafx.geometry.Rectangle2D getPrimaryScreenBounds()
-
getBoundsOnScreen
public static javafx.geometry.Rectangle2D getBoundsOnScreen(javafx.stage.Window window)
-
getBoundsInWindow
public static javafx.geometry.Rectangle2D getBoundsInWindow(javafx.scene.Scene scene)
-
getBoundsOnScreen
public static javafx.geometry.Rectangle2D getBoundsOnScreen(javafx.scene.Scene scene)
-
getCenterOnParent
public static javafx.geometry.Point2D getCenterOnParent(javafx.scene.Node node)
-
getCenterOnScene
public static javafx.geometry.Point2D getCenterOnScene(javafx.scene.Node node)
-
getNodeHorizontalCenter
private static double getNodeHorizontalCenter(javafx.scene.Node node)
-
getNodeVerticalCenter
private static double getNodeVerticalCenter(javafx.scene.Node node)
-
findNodeById
public static javafx.scene.Node findNodeById(javafx.scene.Scene scene, java.lang.String id)
-
findChildNodeById
public static javafx.scene.Node findChildNodeById(javafx.scene.Parent parent, java.lang.String id)
-
runCallableInPlatformThread
public static <T> T runCallableInPlatformThread(java.util.concurrent.Callable<T> callable) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-