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
| Modifier and Type | Field and Description |
|---|---|
| private final GraphicsDevice | |
| private final Point |
| Access | Constructor and Description |
|---|---|
| pack-priv | PointerInfo(final GraphicsDevice device, final Point location)
Package-private constructor to prevent instantiation. |
| Modifier and Type | Method and Description |
|---|---|
| public GraphicsDevice | Returns: GraphicsDevice corresponding to the pointerReturns the |
| public Point | Returns: coordinates of mouse pointerReturns the |
| device | back to summary |
|---|---|
| private final GraphicsDevice device | |
| location | back to summary |
|---|---|
| private final Point location | |
| PointerInfo | back to summary |
|---|---|
| pack-priv PointerInfo(final GraphicsDevice device, final Point location) Package-private constructor to prevent instantiation. | |
| getDevice | back to summary |
|---|---|
| public GraphicsDevice getDevice() Returns the
| |
| getLocation | back to summary |
|---|---|
| public Point getLocation() Returns the
| |