Interface JmeFxContainerInternal

    • 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.