public abstract class

GlobalCursorManager

extends Object
java.lang.Object
   ↳ sun.awt.GlobalCursorManager

Class Overview

A stateless class which responds to native mouse moves, Component resizes, Component moves, showing and hiding of Components, minimizing and maximizing of top level Windows, addition and removal of Components, and calls to setCursor().

Summary

Protected Constructors
GlobalCursorManager()
Public Methods
void updateCursorImmediately(InputEvent e)
Should be called in response to Java MOUSE_MOVED events.
void updateCursorImmediately()
Should be called for any activity at the Java level which may affect the global cursor, except for Java MOUSE_MOVED events.
void updateCursorLater(Component heavy)
Should be called in response to a native mouse enter or native mouse button released message.
Protected Methods
abstract Component findComponentAt(Container con, int x, int y)
abstract Component findHeavyweightUnderCursor(boolean useCache)
Returns the most specific, visible, heavyweight Component under the cursor.
abstract void getCursorPos(Point p)
Returns the global cursor position, in screen coordinates.
abstract Point getLocationOnScreen(Component com)
abstract void setCursor(Component comp, Cursor cursor, boolean useCache)
Set the global cursor to the specified cursor.
void updateCursorOutOfJava()
[Expand]
Inherited Methods
From class java.lang.Object

Protected Constructors

protected GlobalCursorManager ()

Public Methods

public void updateCursorImmediately (InputEvent e)

Should be called in response to Java MOUSE_MOVED events. The update will be discarded if the InputEvent is outdated.

Parameters
e the InputEvent which triggered the cursor update.

public void updateCursorImmediately ()

Should be called for any activity at the Java level which may affect the global cursor, except for Java MOUSE_MOVED events.

public void updateCursorLater (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.

Protected Methods

protected abstract Component findComponentAt (Container con, int x, int y)

protected abstract Component findHeavyweightUnderCursor (boolean useCache)

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

Parameters
useCache If true, the implementation is free to use caching mechanisms because the Z-order, visibility, and enabled state of the Components has not changed. If false, the implementation should not make these assumptions.

protected abstract void getCursorPos (Point p)

Returns the global cursor position, in screen coordinates.

protected abstract Point getLocationOnScreen (Component com)

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

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.

protected void updateCursorOutOfJava ()