public class PointerInfo extends Object
GraphicsDevicewhere the pointer is and the
Pointthat represents the coordinates of the pointer.
Instances of this class should be obtained via
PointerInfo instance is not updated dynamically
as the mouse moves. To get the updated location, you must call
|Modifier and Type||Method and Description|
public GraphicsDevice getDevice()
GraphicsDevicewhere the mouse pointer was at the moment this
GraphicsDevicecorresponding to the pointer
public Point getLocation()
Pointthat represents the coordinates of the pointer on the screen. See
MouseInfo.getPointerInfo()for more information about coordinate calculation for multiscreen systems.
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.