Java 类java.awt.peer.MouseInfoPeer 实例源码

项目:openjdk-jdk10    文件:PointerInfoCrashTest.java   
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();
    }
}
项目:openjdk9    文件:PointerInfoCrashTest.java   
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();
    }
}
项目:javify    文件:GtkToolkit.java   
protected MouseInfoPeer getMouseInfoPeer()
{
  return new GtkMouseInfoPeer();
}
项目:jvm-stm    文件:GtkToolkit.java   
protected MouseInfoPeer getMouseInfoPeer()
{
  return new GtkMouseInfoPeer();
}
项目:cn1    文件:Toolkit.java   
protected java.awt.peer.MouseInfoPeer getMouseInfoPeer() {
    return new MouseInfoPeer() {
    };
}
项目:JamVM-PH    文件:GtkToolkit.java   
protected MouseInfoPeer getMouseInfoPeer()
{
  return new GtkMouseInfoPeer();
}
项目:GhostAWT    文件:GhostToolkit.java   
@Override
protected MouseInfoPeer getMouseInfoPeer() {
    return new GMouseInfoPeer();
}
项目:classpath    文件:GtkToolkit.java   
protected MouseInfoPeer getMouseInfoPeer()
{
  return new GtkMouseInfoPeer();
}
项目:freeVM    文件:Toolkit.java   
protected java.awt.peer.MouseInfoPeer getMouseInfoPeer() {
    return new MouseInfoPeer() {
    };
}
项目:freeVM    文件:Toolkit.java   
protected java.awt.peer.MouseInfoPeer getMouseInfoPeer() {
    return new MouseInfoPeer() {
    };
}
项目:javify    文件:Toolkit.java   
/**
 * 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.");
}
项目:jvm-stm    文件:Toolkit.java   
/**
 * 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.");
}
项目:JamVM-PH    文件:Toolkit.java   
/**
 * 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.");
}
项目:classpath    文件:Toolkit.java   
/**
 * 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.");
}