Please note that this translation of the specification is the result of a java.net community project ( https://jdk5-api-pt-br.dev.java.net/ ). The official version of the specification is the US English language version which can be found at http://java.sun.com/j2se/1.5.0/docs/api/. In case of disputes, the authoritative version of the specification is the original, English document.
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 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 GraphicsDevice where the mouse pointer
was at the moment this PointerInfo was created. |
Point |
getLocation()
Returns the Point that 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()
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 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.
Copyright 2006 Sun Microsystems, Inc. Todos os direitos reservados. O uso está sujeito aos termos da licensa.