APIdia Launch Partner
Top Fields Constructors Methods
sun.awt.X11

public final Class XGlobalCursorManager

extends GlobalCursorManager
Class Inheritance
Imports
java.awt.*, java.awt.peer.ComponentPeer, java.lang.ref.WeakReference, sun.awt.AWTAccessor, .GlobalCursorManager, .SunToolkit

Field Summary

Modifier and TypeField and Description
private static XGlobalCursorManager
manager

The XGlobalCursorManager is a singleton.

private WeakReference<Component>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Component
protected Component
findHeavyweightUnderCursor(boolean useCache)

Implements abstract sun.awt.GlobalCursorManager.findHeavyweightUnderCursor.

Returns the most specific, visible, heavyweight Component under the cursor.

private Cursor
pack-priv static long
pack-priv static GlobalCursorManager
protected void
getCursorPos(Point p)

Implements abstract sun.awt.GlobalCursorManager.getCursorPos.

Returns the global cursor position, in screen coordinates.

protected Point
pack-priv static void
nativeUpdateCursor(Component heavy)

Should be called in response to a native mouse enter or native mouse button released message.

protected void
setCursor(Component comp, Cursor cursor, boolean useCache)

Implements abstract sun.awt.GlobalCursorManager.setCursor.

Set the global cursor to the specified cursor.

pack-priv static void
setPData(Cursor c, long pData)

protected void
private static void
updateGrabbedCursor(Cursor cur)

Updates cursor on the grabber if it is window peer (i.e. current grab is for Swing, not for AWT.

Inherited from sun.awt.GlobalCursorManager:
updateCursorImmediatelyupdateCursorImmediatelyupdateCursorLater

Field Detail

managerback to summary
private static XGlobalCursorManager manager

The XGlobalCursorManager is a singleton.

nativeContainerback to summary
private WeakReference<Component> nativeContainer

Constructor Detail

XGlobalCursorManagerback to summary
public XGlobalCursorManager()

Method Detail

findHeavyweightUnderCursorback to summary
protected Component findHeavyweightUnderCursor()
findHeavyweightUnderCursorback to summary
protected Component findHeavyweightUnderCursor(boolean useCache)

Implements abstract sun.awt.GlobalCursorManager.findHeavyweightUnderCursor.

Doc from sun.awt.GlobalCursorManager.findHeavyweightUnderCursor.

Returns the most specific, visible, heavyweight Component under the cursor. This method should return null iff the cursor is not over any Java Window.

Annotations
@Override
getCapableCursorback to summary
private Cursor getCapableCursor(Component comp)
getCursorback to summary
pack-priv static long getCursor(Cursor c)
getCursorManagerback to summary
pack-priv static GlobalCursorManager getCursorManager()
getCursorPosback to summary
protected void getCursorPos(Point p)

Implements abstract sun.awt.GlobalCursorManager.getCursorPos.

Doc from sun.awt.GlobalCursorManager.getCursorPos.

Returns the global cursor position, in screen coordinates.

Annotations
@Override
getLocationOnScreenback to summary
protected Point getLocationOnScreen(Component c)

Implements abstract sun.awt.GlobalCursorManager.getLocationOnScreen.

Annotations
@Override
nativeUpdateCursorback to summary
pack-priv static void nativeUpdateCursor(Component heavy)

Should be called in response to a native mouse enter or native mouse button released message. Should not be called during a mouse drag.

setCursorback to summary
protected void setCursor(Component comp, Cursor cursor, boolean useCache)

Implements abstract sun.awt.GlobalCursorManager.setCursor.

Doc from sun.awt.GlobalCursorManager.setCursor.

Set the global cursor to the specified cursor. The component over which the Cursor current resides is provided as a convenience. Not all platforms may require the Component.

Annotations
@Override
setPDataback to summary
pack-priv static void setPData(Cursor c, long pData)
updateCursorOutOfJavaback to summary
protected void updateCursorOutOfJava()

Overrides sun.awt.GlobalCursorManager.updateCursorOutOfJava.

Annotations
@Override
updateGrabbedCursorback to summary
private static void updateGrabbedCursor(Cursor cur)

Updates cursor on the grabber if it is window peer (i.e. current grab is for Swing, not for AWT.