Class JmeCursorProvider

  • All Implemented Interfaces:
    CursorDisplayProvider

    public class JmeCursorProvider
    extends java.lang.Object
    implements CursorDisplayProvider
    http://www.rw-designer.com/cursor-set/proton by juanello
    A cursorProvider that simulates the native JFX one and tries to behave similar,
    using native cursors and 2D surface logic.
    • Constructor Summary

      Constructors 
      Constructor Description
      JmeCursorProvider​(com.jme3.app.Application application, com.jme3.asset.AssetManager assetManager, com.jme3.input.InputManager inputManager)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void prepare​(com.sun.javafx.cursor.CursorType cursorType)
      This method will be called on initializing javaFX container to prepare an image for the cursor type.
      void show​(com.sun.javafx.cursor.CursorFrame cursorFrame)
      Shows an image for the cursor frame.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JmeCursorProvider

        public JmeCursorProvider​(com.jme3.app.Application application,
                                 com.jme3.asset.AssetManager assetManager,
                                 com.jme3.input.InputManager inputManager)
    • Method Detail

      • prepare

        public void prepare​(com.sun.javafx.cursor.CursorType cursorType)
        Description copied from interface: CursorDisplayProvider
        This method will be called on initializing javaFX container to prepare an image for the cursor type.
        Specified by:
        prepare in interface CursorDisplayProvider
        Parameters:
        cursorType - the cursor type.
      • show

        public void show​(com.sun.javafx.cursor.CursorFrame cursorFrame)
        Description copied from interface: CursorDisplayProvider
        Shows an image for the cursor frame.
        Specified by:
        show in interface CursorDisplayProvider
        Parameters:
        cursorFrame - the cursor frame.