public class PointerInfo extends ObjectA class that describes the pointer position. It provides the
GraphicsDevicewhere the pointer is and the
Pointthat represents the coordinates of the pointer.
Instances of this class should be obtained via
PointerInfoinstance is not updated dynamically as the mouse moves. To get the updated location, you must call
- See Also:
public GraphicsDevice getDevice()Returns the
GraphicsDevicewhere the mouse pointer was at the moment this
GraphicsDevicecorresponding to the pointer
public Point getLocation()Returns the
Pointthat represents the coordinates of the pointer on the screen. See
MouseInfo.getPointerInfo()for more information about coordinate calculation for multiscreen systems.