/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
// cached nativeContainer
/**
* The XGlobalCursorManager is a singleton.
*/
manager = new XGlobalCursorManager();
}
return manager;
}
/**
* Should be called in response to a native mouse enter or native mouse
* button released message. Should not be called during a mouse drag.
*/
}
return;
}
if (useCache) {
synchronized (this) {
}
} else {
}
if (nc_peer instanceof XComponentPeer) {
synchronized (this) {
}
//6431076. A subcomponents (a XTextArea in particular)
//may want to override the cursor over some of their parts.
// in case of grab we do for Swing we need to update keep cursor updated
// (we don't need this in case of AWT menus). Window Manager consider
// the grabber as a current window and use its cursor. So we need to
// change cursor on the grabber too.
}
}
}
/**
* Updates cursor on the grabber if it is window peer (i.e. current grab is for
* Swing, not for AWT.
*/
if (target instanceof XWindowPeer) {
}
}
protected void updateCursorOutOfJava() {
// in case we have grabbed input for Swing we need to reset cursor
// when mouse pointer is out of any java toplevel.
// let's use default cursor for this.
}
try {
} finally {
}
}
}
return XAwtState.getComponentMouseEntered();
}
/*
* two native methods to call corresponding methods in Container and
* Component
*/
return con.findComponentAt(x,y);
}
return c.getLocationOnScreen();
}
return findHeavyweightUnderCursor();
}
&& compAccessor.isEnabled(c)
&& compAccessor.isVisible(c)
&& compAccessor.isDisplayable(c))
{
c = compAccessor.getParent(c);
}
if (c instanceof Window) {
return (compAccessor.isEnabled(c)
&& compAccessor.isVisible(c)
&& compAccessor.isDisplayable(c)
?
:
} else if (c == null) {
return null;
}
}
/* This methods needs to be called from within XToolkit.awtLock / XToolkit.awtUnlock section. */
long pData = 0;
int type = 0;
try {
}
catch (Exception e)
{
e.printStackTrace();
}
int cursorType = 0;
switch (type) {
case Cursor.DEFAULT_CURSOR:
break;
case Cursor.CROSSHAIR_CURSOR:
break;
case Cursor.TEXT_CURSOR:
break;
case Cursor.WAIT_CURSOR:
break;
case Cursor.SW_RESIZE_CURSOR:
break;
case Cursor.NW_RESIZE_CURSOR:
break;
case Cursor.SE_RESIZE_CURSOR:
break;
case Cursor.NE_RESIZE_CURSOR:
break;
case Cursor.S_RESIZE_CURSOR:
break;
case Cursor.N_RESIZE_CURSOR:
break;
case Cursor.W_RESIZE_CURSOR:
break;
case Cursor.E_RESIZE_CURSOR:
break;
case Cursor.HAND_CURSOR:
break;
case Cursor.MOVE_CURSOR:
break;
}
try {
}
finally {
}
return pData;
}
try {
}
catch (Exception e)
{
e.printStackTrace();
}
}
}