Package io.tlf.jme.jfx.injme
Interface JmeFxContainerInternal
-
- All Superinterfaces:
JmeFxContainer
- All Known Implementing Classes:
JmeFxContainerImpl
public interface JmeFxContainerInternal extends JmeFxContainer
The internal interface to work with container of javaFX UI.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfitSceneToWindowSize()Fit scene to window size.com.jme3.app.ApplicationgetApplication()Gets the jME application.com.sun.javafx.stage.EmbeddedWindowgetEmbeddedWindow()Gets the embedded window.JmeFXInputListenergetInputListener()Gets the user input listener.com.jme3.system.JmeContextgetJmeContext()Gets the jME context.floatgetPixelScaleFactor()Gets the target pixel factor.intgetPositionX()Gets the X position.intgetPositionY()Gets the Y position.intgetSceneHeight()Gets the scene height.com.sun.javafx.embed.EmbeddedSceneInterfacegetSceneInterface()Gets the current scene interface.intgetSceneWidth()Gets the scene width.com.sun.javafx.embed.EmbeddedStageInterfacegetStageInterface()Gets the current stage interface.voidgrabFocus()Get focused.booleanisCovered(int x, int y)Checks the coordinates.booleanisFocused()voidloseFocus()Lose focused.voidmove(int positionX, int positionY)Moves the container to the new position.voidrequestEnabled(boolean enabled)Requests the status of enabled scene.booleanrequestFocus()Requests focus.voidrequestPreferredSize(int width, int height)Requests the preferred size for UI.voidrequestRedraw()Draw new frame of JavaFX to byte buffer.voidrequestShowingCursor(com.sun.javafx.cursor.CursorFrame cursorFrame)Request showing the cursor frame.voidsetEmbeddedWindow(com.sun.javafx.stage.EmbeddedWindow embeddedWindow)Sets the embedded window.voidsetPositionX(int positionX)Sets the X position.voidsetPositionY(int positionY)Sets the Y position.voidsetSceneHeight(int sceneHeight)Sets the scene height.voidsetSceneInterface(com.sun.javafx.embed.EmbeddedSceneInterface sceneInterface)Sets the current scene interface.voidsetSceneWidth(int sceneWidth)Sets the scene width.voidsetStageInterface(com.sun.javafx.embed.EmbeddedStageInterface stageInterface)Sets the current stage interface.-
Methods inherited from interface io.tlf.jme.jfx.injme.JmeFxContainer
getCursorProvider, getRootNode, getScene, isNeedWriteToJme, setScene, writeToJme
-
-
-
-
Method Detail
-
requestPreferredSize
void requestPreferredSize(int width, int height)Requests the preferred size for UI.- Parameters:
width- the preferred width.height- the preferred height.
-
requestFocus
boolean requestFocus()
Requests focus.- Returns:
- true if it was successful.
-
getApplication
com.jme3.app.Application getApplication()
Gets the jME application.- Returns:
- the jME application.
-
getJmeContext
com.jme3.system.JmeContext getJmeContext()
Gets the jME context.- Returns:
- the jME context.
-
getPositionX
int getPositionX()
Gets the X position.- Returns:
- the X position.
-
setPositionX
void setPositionX(int positionX)
Sets the X position.- Parameters:
positionX- the X position.
-
getPositionY
int getPositionY()
Gets the Y position.- Returns:
- the Y position.
-
setPositionY
void setPositionY(int positionY)
Sets the Y position.- Parameters:
positionY- the Y position.
-
getSceneHeight
int getSceneHeight()
Gets the scene height.- Returns:
- the scene height.
-
setSceneHeight
void setSceneHeight(int sceneHeight)
Sets the scene height.- Parameters:
sceneHeight- the scene height.
-
getSceneWidth
int getSceneWidth()
Gets the scene width.- Returns:
- the scene width.
-
setSceneWidth
void setSceneWidth(int sceneWidth)
Sets the scene width.- Parameters:
sceneWidth- the scene width.
-
getPixelScaleFactor
float getPixelScaleFactor()
Gets the target pixel factor.- Returns:
- the target pixel factor.
-
getSceneInterface
com.sun.javafx.embed.EmbeddedSceneInterface getSceneInterface()
Gets the current scene interface.- Returns:
- the current scene interface.
-
setSceneInterface
void setSceneInterface(com.sun.javafx.embed.EmbeddedSceneInterface sceneInterface)
Sets the current scene interface.- Parameters:
sceneInterface- the current scene interface.
-
getEmbeddedWindow
com.sun.javafx.stage.EmbeddedWindow getEmbeddedWindow()
Gets the embedded window.- Returns:
- the embedded window.
-
setEmbeddedWindow
void setEmbeddedWindow(com.sun.javafx.stage.EmbeddedWindow embeddedWindow)
Sets the embedded window.- Parameters:
embeddedWindow- the embedded window.
-
getStageInterface
com.sun.javafx.embed.EmbeddedStageInterface getStageInterface()
Gets the current stage interface.- Returns:
- the current stage interface.
-
setStageInterface
void setStageInterface(com.sun.javafx.embed.EmbeddedStageInterface stageInterface)
Sets the current stage interface.- Parameters:
stageInterface- the current stage interface.
-
fitSceneToWindowSize
void fitSceneToWindowSize()
Fit scene to window size.
-
move
void move(int positionX, int positionY)Moves the container to the new position.- Parameters:
positionX- the new X position.positionY- the new Y position.
-
isCovered
boolean isCovered(int x, int y)Checks the coordinates.- Parameters:
x- the X coordinate.y- the Y coordinate.- Returns:
- true if the coordinates is covered.
-
requestRedraw
void requestRedraw()
Draw new frame of JavaFX to byte buffer.
-
requestShowingCursor
void requestShowingCursor(com.sun.javafx.cursor.CursorFrame cursorFrame)
Request showing the cursor frame.- Parameters:
cursorFrame- the cursor frame.
-
requestEnabled
void requestEnabled(boolean enabled)
Requests the status of enabled scene.- Parameters:
enabled- the flag of enabling javaFX.
-
isFocused
boolean isFocused()
- Returns:
- true if the windows has focused.
-
grabFocus
void grabFocus()
Get focused.
-
loseFocus
void loseFocus()
Lose focused.
-
getInputListener
JmeFXInputListener getInputListener()
Gets the user input listener.- Returns:
- the user input listener.
-
-