Class JfxInput

  • All Implemented Interfaces:
    com.jme3.input.Input
    Direct Known Subclasses:
    JfxKeyInput, JfxMouseInput

    public class JfxInput
    extends java.lang.Object
    implements com.jme3.input.Input
    The base implementation of the Input for using in the ImageView.
    • Field Detail

      • listener

        protected com.jme3.input.RawInputListener listener
        The raw listener.
      • node

        protected javafx.scene.Node node
        The input node.
      • scene

        protected javafx.scene.Scene scene
        The scene.
      • initialized

        protected boolean initialized
        The flag of initializing this.
    • Method Detail

      • hasNode

        protected boolean hasNode()
        Checks of existing the node.
        Returns:
        true if the node is exist.
      • getNode

        protected javafx.scene.Node getNode()
        Gets the bound node.
        Returns:
        the bound node.
      • getListener

        protected com.jme3.input.RawInputListener getListener()
        Gets the raw listener.
        Returns:
        the raw listener.
      • bind

        public void bind​(javafx.scene.Node node)
        Bind this input to the node.
        Parameters:
        node - the node.
      • unbind

        public void unbind()
        Unbind.
      • initialize

        public void initialize()
        Specified by:
        initialize in interface com.jme3.input.Input
      • initializeImpl

        protected void initializeImpl()
        Initialize.
      • update

        public void update()
        Specified by:
        update in interface com.jme3.input.Input
      • updateImpl

        protected void updateImpl()
        Update.
      • destroy

        public void destroy()
        Specified by:
        destroy in interface com.jme3.input.Input
      • isInitialized

        public boolean isInitialized()
        Specified by:
        isInitialized in interface com.jme3.input.Input
      • setInputListener

        public void setInputListener​(com.jme3.input.RawInputListener listener)
        Specified by:
        setInputListener in interface com.jme3.input.Input
      • getInputTimeNanos

        public long getInputTimeNanos()
        Specified by:
        getInputTimeNanos in interface com.jme3.input.Input