|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.awt.PointerInfo
public class PointerInfo
描述指針位置的類別。它提供指針所在的 GraphicsDevice,以及表示指針坐標的 Point。
此類別的實例應該通過 MouseInfo.getPointerInfo() 來獲得。PointerInfo 實例不隨鼠標的移動而動態更新。為了獲取更新後的位置,必須再次調用 MouseInfo.getPointerInfo()。
MouseInfo.getPointerInfo()| 方法摘要 | |
|---|---|
GraphicsDevice |
getDevice()
返回在創建此 PointerInfo 時鼠標指針所在的 GraphicsDevice。 |
Point |
getLocation()
返回在螢幕上表示指針坐標的 Point。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 方法詳細資訊 |
|---|
public GraphicsDevice getDevice()
PointerInfo 時鼠標指針所在的 GraphicsDevice。
GraphicsDevicepublic Point getLocation()
Point。有關多螢幕系統坐標計算的更多資訊,請參見 MouseInfo.getPointerInfo()。
MouseInfo,
MouseInfo.getPointerInfo()
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。