This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
java.awt
class PointerInfo
public class PointerInfo
extends Object
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
{@link MouseInfo#getPointerInfo}.
The PointerInfo
instance is not updated dynamically
as the mouse moves. To get the updated location, you must call
{@link MouseInfo#getPointerInfo} again.
Method Summary |
GraphicsDevice |
Returns the GraphicsDevice where the mouse pointer
was at the moment this PointerInfo was created.
|
Point |
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 |
getDevice
public GraphicsDevice getDevice()
-
Returns the
GraphicsDevice
where the mouse pointer
was at the moment this PointerInfo
was created.
- Returns:
GraphicsDevice
corresponding to the pointer
getLocation
public Point getLocation()
-
Returns the
Point
that represents the coordinates
of the pointer on the screen. See {@link MouseInfo#getPointerInfo}
for more information about coordinate calculation for multiscreen
systems.
- Returns:
- coordinates of mouse pointer
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.