|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
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. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。