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.