| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.PointerInfo
public class PointerInfo
A class that describes the pointer position.
 It provides the GraphicsDevice where the
 pointer is and the Point that represents
 the coordinates of the pointer.
 
 Instances of this class should be obtained via
 MouseInfo.getPointerInfo().
 The PointerInfo instance is not updated dynamically
 as the mouse moves. To get the updated location, you must call
 MouseInfo.getPointerInfo() again.
MouseInfo.getPointerInfo()| Method Summary | |
|---|---|
|  GraphicsDevice | getDevice()Returns the GraphicsDevicewhere the mouse pointer
 was at the moment thisPointerInfowas created. | 
|  Point | getLocation()Returns the Pointthat represents the coordinates
 of the pointer on the screen. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public GraphicsDevice getDevice()
GraphicsDevice where the mouse pointer
 was at the moment this PointerInfo was created.
GraphicsDevice corresponding to the pointerpublic Point getLocation()
Point that represents the coordinates
 of the pointer on the screen. See MouseInfo.getPointerInfo()
 for more information about coordinate calculation for multiscreen
 systems.
MouseInfo, 
MouseInfo.getPointerInfo()| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.