< prev index next >

modules/web/src/main/java/com/sun/javafx/webkit/CursorManagerImpl.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 23,32 **** --- 23,33 ---- * questions. */ package com.sun.javafx.webkit; + import com.sun.javafx.tk.Toolkit; import com.sun.webkit.CursorManager; import com.sun.webkit.graphics.WCGraphicsManager; import com.sun.webkit.graphics.WCImage; import java.util.HashMap; import java.util.Locale;
*** 42,52 **** private final Map<String, Cursor> map = new HashMap<String, Cursor>(); private ResourceBundle bundle; @Override protected Cursor getCustomCursor(WCImage image, int hotspotX, int hotspotY) { return new ImageCursor( ! Image.impl_fromPlatformImage( WCGraphicsManager.getGraphicsManager().toPlatformImage(image)), hotspotX, hotspotY); } @Override protected Cursor getPredefinedCursor(int type) { --- 43,53 ---- private final Map<String, Cursor> map = new HashMap<String, Cursor>(); private ResourceBundle bundle; @Override protected Cursor getCustomCursor(WCImage image, int hotspotX, int hotspotY) { return new ImageCursor( ! Toolkit.getImageAccessor().fromPlatformImage( WCGraphicsManager.getGraphicsManager().toPlatformImage(image)), hotspotX, hotspotY); } @Override protected Cursor getPredefinedCursor(int type) {
< prev index next >