Package io.tlf.jme.jfx.injme
Interface JmeFxContainer
-
- All Known Subinterfaces:
JmeFxContainerInternal
- All Known Implementing Classes:
JmeFxContainerImpl
public interface JmeFxContainerThe interface to work with container of javaFX UI.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description CursorDisplayProvidergetCursorProvider()Gets the current cursor provider.javafx.scene.GroupgetRootNode()Gets the root UI node.javafx.scene.ScenegetScene()Gets the current scene.static JmeFxContainerinstall(com.jme3.app.Application application, com.jme3.scene.Node guiNode)Build the JavaFX container for the application.static JmeFxContainerinstall(com.jme3.app.Application application, com.jme3.scene.Node guiNode, CursorDisplayProvider cursorProvider)Build the JavaFX container for the application.booleanisNeedWriteToJme()Checks of existing waiting frames.voidsetScene(javafx.scene.Scene newScene, javafx.scene.Group rootNode)Set a new scene to this container.java.lang.VoidwriteToJme()Write javaFX frame to jME texture.
-
-
-
Method Detail
-
install
static JmeFxContainer install(com.jme3.app.Application application, com.jme3.scene.Node guiNode)
Build the JavaFX container for the application.- Parameters:
application- the application.guiNode- the GUI node.- Returns:
- the javaFX container.
-
install
static JmeFxContainer install(com.jme3.app.Application application, com.jme3.scene.Node guiNode, CursorDisplayProvider cursorProvider)
Build the JavaFX container for the application.- Parameters:
application- the application.guiNode- the GUI node.cursorProvider- the cursor provider.- Returns:
- the javaFX container.
-
isNeedWriteToJme
boolean isNeedWriteToJme()
Checks of existing waiting frames.- Returns:
- true if need to write javaFx frame.
-
writeToJme
java.lang.Void writeToJme()
Write javaFX frame to jME texture.
-
setScene
void setScene(javafx.scene.Scene newScene, javafx.scene.Group rootNode)Set a new scene to this container.- Parameters:
newScene- the new scene or null.rootNode- the new root of the scene.
-
getCursorProvider
CursorDisplayProvider getCursorProvider()
Gets the current cursor provider.- Returns:
- the current cursor provider.
-
getScene
javafx.scene.Scene getScene()
Gets the current scene.- Returns:
- the current scene.
-
getRootNode
javafx.scene.Group getRootNode()
Gets the root UI node.- Returns:
- the root UI node.
-
-