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.