java.awt
Class PointerInfo

java.lang.Object
  extended by java.awt.PointerInfo

public class PointerInfo
extends Object

PointerInfo represents information about the mouse pointer, i.e. its GraphicsDevice and location. PointerInfo objects cannot be instantiated directly, but are retrieved from MouseInfo.getPointerInfo(). PointerInfo objects are immutable and will not be updated for future mouse motions.

Since:
1.5

Method Summary
 GraphicsDevice getDevice()
          Returns the GraphicsDevice on which the mouse pointer was located
 Point getLocation()
          Returns the coordinates of the mouse pointer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDevice

public GraphicsDevice getDevice()
Returns the GraphicsDevice on which the mouse pointer was located

Returns:
a GraphicsDevice object.

getLocation

public Point getLocation()
Returns the coordinates of the mouse pointer.

Returns:
a Point object containing the pointer coordinates.