code: public void setCursor (Cursor cursor) {
      Element rootElement = graphics.rootElement;
      if (cursor == null) rootElement.getStyle().setProperty("cursor", "none");
      else rootElement.getStyle().setCursor(cursor);
    }
docs: Sets the {@code cursor} CSS property.
  
  @param cursor the {@link Cursor} to use, or null to hide the cursor.