public class PointerInfo extends Object
GraphicsDevice在指针和指针的坐标表示的
Point。
这个类的实例可以通过MouseInfo.getPointerInfo()。的PointerInfo实例不是随着鼠标的移动而动态更新。获取最新的位置,你必须调用MouseInfo.getPointerInfo()再次。
MouseInfo.getPointerInfo()
| Modifier and Type | Method and Description |
|---|---|
GraphicsDevice |
getDevice()
返回
GraphicsDevice鼠标指针在哪里是目前这
PointerInfo创建。
|
Point |
getLocation()
返回表示该指针在屏幕上的坐标
Point。
|
public GraphicsDevice getDevice()
GraphicsDevice鼠标指针在哪里是目前这
PointerInfo创建。
GraphicsDevice
public Point getLocation()
Point。更多信息请看关于多屏系统坐标计算
MouseInfo.getPointerInfo()。
MouseInfo,
MouseInfo.getPointerInfo()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.