本文整理汇总了Java中java.awt.peer.MouseInfoPeer类的典型用法代码示例。如果您正苦于以下问题:Java MouseInfoPeer类的具体用法?Java MouseInfoPeer怎么用?Java MouseInfoPeer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MouseInfoPeer类属于java.awt.peer包,在下文中一共展示了MouseInfoPeer类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testMouseInfoPeer
import java.awt.peer.MouseInfoPeer; //导入依赖的package包/类
private static void testMouseInfoPeer() {
Toolkit toolkit = Toolkit.getDefaultToolkit();
if (toolkit instanceof ComponentFactory) {
ComponentFactory componentFactory = (ComponentFactory) toolkit;
MouseInfoPeer mouseInfoPeer = componentFactory.getMouseInfoPeer();
mouseInfoPeer.fillPointWithCoords(new Point());
Window win = new Window(null);
win.setSize(300, 300);
win.setVisible(true);
mouseInfoPeer.isWindowUnderMouse(win);
win.dispose();
}
}
示例2: getMouseInfoPeer
import java.awt.peer.MouseInfoPeer; //导入依赖的package包/类
protected MouseInfoPeer getMouseInfoPeer()
{
return new GtkMouseInfoPeer();
}
示例3: getMouseInfoPeer
import java.awt.peer.MouseInfoPeer; //导入依赖的package包/类
protected java.awt.peer.MouseInfoPeer getMouseInfoPeer() {
return new MouseInfoPeer() {
};
}
示例4: getMouseInfoPeer
import java.awt.peer.MouseInfoPeer; //导入依赖的package包/类
@Override
protected MouseInfoPeer getMouseInfoPeer() {
return new GMouseInfoPeer();
}
示例5: getMouseInfoPeer
import java.awt.peer.MouseInfoPeer; //导入依赖的package包/类
/**
* Returns a MouseInfoPeer.
* The default implementation of this method throws
* UnsupportedOperationException.
*
* Toolkit implementations should overload this if possible, however.
*/
protected MouseInfoPeer getMouseInfoPeer()
{
throw new UnsupportedOperationException("No mouse info peer.");
}
示例6: getMouseInfoPeer
import java.awt.peer.MouseInfoPeer; //导入依赖的package包/类
/**
* Returns a MouseInfoPeer.
* The default implementation of this method throws
* UnsupportedOperationException.
*
* Toolkit implementations should overload this if possible, however.
*/
protected MouseInfoPeer getMouseInfoPeer()
{
throw new UnsupportedOperationException("No mouse info peer.");
}