sun.lwawt.PlatformWindow Java Examples

The following examples show how to use sun.lwawt.PlatformWindow. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CEmbeddedFrame.java    From jdk8u_jdk with GNU General Public License v2.0 6 votes vote down vote up
public void handleMouseEvent(PlatformWindow platformWindow, int eventType, int modifierFlags, double pluginX,
                             double pluginY, int buttonNumber, int clickCount) {
    int x = (int)pluginX;
    int y = (int)pluginY;
    Point locationOnScreen = getLocationOnScreen();
    int screenX = locationOnScreen.x + x;
    int screenY = locationOnScreen.y + y;

    if (eventType == CocoaConstants.NPCocoaEventMouseEntered) {
        CCursorManager.nativeSetAllowsCursorSetInBackground(true);
    } else if (eventType == CocoaConstants.NPCocoaEventMouseExited) {
        CCursorManager.nativeSetAllowsCursorSetInBackground(false);
    }

    responder.handleMouseEvent(platformWindow, eventType, modifierFlags, buttonNumber,
                               clickCount, x, y, screenX, screenY);
}
 
Example #2
Source File: CViewPlatformEmbeddedFrame.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override // PlatformWindow
public void initialize(Window target, final LWWindowPeer peer, PlatformWindow owner) {
    this.peer = peer;
    this.target = (CViewEmbeddedFrame) target;
    responder = new CPlatformResponder(peer, false);

    view = new CPlatformView();
    view.initialize(peer, responder);

    CWrapper.NSView.addSubview(this.target.getEmbedderHandle(), view.getAWTView());
    view.setAutoResizable(true);
}
 
Example #3
Source File: CViewPlatformEmbeddedFrame.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
@Override // PlatformWindow
public void initialize(Window target, final LWWindowPeer peer, PlatformWindow owner) {
    this.peer = peer;
    this.target = (CViewEmbeddedFrame) target;
    responder = new CPlatformResponder(peer, false);

    view = new CPlatformView();
    view.initialize(peer, responder);

    CWrapper.NSView.addSubview(this.target.getEmbedderHandle(), view.getAWTView());
    view.setAutoResizable(true);
}
 
Example #4
Source File: CViewPlatformEmbeddedFrame.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override // PlatformWindow
public void initialize(Window target, final LWWindowPeer peer, PlatformWindow owner) {
    this.peer = peer;
    this.target = (CViewEmbeddedFrame) target;
    responder = new CPlatformResponder(peer, false);

    view = new CPlatformView();
    view.initialize(peer, responder);

    CWrapper.NSView.addSubview(this.target.getEmbedderHandle(), view.getAWTView());
    view.setAutoResizable(true);
}
 
Example #5
Source File: CViewPlatformEmbeddedFrame.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
@Override // PlatformWindow
public void initialize(Window target, final LWWindowPeer peer, PlatformWindow owner) {
    this.peer = peer;
    this.target = (CViewEmbeddedFrame) target;
    responder = new CPlatformResponder(peer, false);

    view = new CPlatformView();
    view.initialize(peer, responder);

    CWrapper.NSView.addSubview(this.target.getEmbedderHandle(), view.getAWTView());
    view.setAutoResizable(true);
}
 
Example #6
Source File: CViewPlatformEmbeddedFrame.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override // PlatformWindow
public void initialize(Window target, final LWWindowPeer peer, PlatformWindow owner) {
    this.peer = peer;
    this.target = (CViewEmbeddedFrame) target;
    responder = new CPlatformResponder(peer, false);

    view = new CPlatformView();
    view.initialize(peer, responder);

    CWrapper.NSView.addSubview(this.target.getEmbedderHandle(), view.getAWTView());
    view.setAutoResizable(true);
}
 
Example #7
Source File: CViewPlatformEmbeddedFrame.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override // PlatformWindow
public void initialize(Window target, final LWWindowPeer peer, PlatformWindow owner) {
    this.peer = peer;
    this.target = (CViewEmbeddedFrame) target;
    responder = new CPlatformResponder(peer, false);

    view = new CPlatformView();
    view.initialize(peer, responder);

    CWrapper.NSView.addSubview(this.target.getEmbedderHandle(), view.getAWTView());
    view.setAutoResizable(true);
}
 
Example #8
Source File: CViewPlatformEmbeddedFrame.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
@Override // PlatformWindow
public void initialize(Window target, final LWWindowPeer peer, PlatformWindow owner) {
    this.peer = peer;
    this.target = (CViewEmbeddedFrame) target;
    responder = new CPlatformResponder(peer, false);

    view = new CPlatformView();
    view.initialize(peer, responder);

    CWrapper.NSView.addSubview(this.target.getEmbedderHandle(), view.getAWTView());
    view.setAutoResizable(true);
}
 
Example #9
Source File: CViewPlatformEmbeddedFrame.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override // PlatformWindow
public void initialize(Window target, final LWWindowPeer peer, PlatformWindow owner) {
    this.peer = peer;
    this.target = (CViewEmbeddedFrame) target;
    responder = new CPlatformResponder(peer, false);

    view = new CPlatformView();
    view.initialize(peer, responder);

    CWrapper.NSView.addSubview(this.target.getEmbedderHandle(), view.getAWTView());
    view.setAutoResizable(true);
}
 
Example #10
Source File: CViewPlatformEmbeddedFrame.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
@Override // PlatformWindow
public void initialize(Window target, final LWWindowPeer peer, PlatformWindow owner) {
    this.peer = peer;
    this.target = (CViewEmbeddedFrame) target;
    responder = new CPlatformResponder(peer, false);

    view = new CPlatformView();
    view.initialize(peer, responder);

    CWrapper.NSView.addSubview(this.target.getEmbedderHandle(), view.getAWTView());
    view.setAutoResizable(true);
}
 
Example #11
Source File: CViewPlatformEmbeddedFrame.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override // PlatformWindow
public void initialize(Window target, final LWWindowPeer peer, PlatformWindow owner) {
    this.peer = peer;
    this.target = (CViewEmbeddedFrame) target;
    responder = new CPlatformResponder(peer, false);

    view = new CPlatformView();
    view.initialize(peer, responder);

    CWrapper.NSView.addSubview(this.target.getEmbedderHandle(), view.getAWTView());
    view.setAutoResizable(true);
}
 
Example #12
Source File: CViewPlatformEmbeddedFrame.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override // PlatformWindow
public void initialize(Window target, final LWWindowPeer peer, PlatformWindow owner) {
    this.peer = peer;
    this.target = (CViewEmbeddedFrame) target;
    responder = new CPlatformResponder(peer, false);

    view = new CPlatformView();
    view.initialize(peer, responder);

    CWrapper.NSView.addSubview(this.target.getEmbedderHandle(), view.getAWTView());
    view.setAutoResizable(true);
}
 
Example #13
Source File: CViewPlatformEmbeddedFrame.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
@Override // PlatformWindow
public void initialize(Window target, final LWWindowPeer peer, PlatformWindow owner) {
    this.peer = peer;
    this.target = (CViewEmbeddedFrame) target;
    responder = new CPlatformResponder(peer, false);

    view = new CPlatformView();
    view.initialize(peer, responder);

    CWrapper.NSView.addSubview(this.target.getEmbedderHandle(), view.getAWTView());
    view.setAutoResizable(true);
}
 
Example #14
Source File: CViewPlatformEmbeddedFrame.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override // PlatformWindow
public void initialize(Window target, final LWWindowPeer peer, PlatformWindow owner) {
    this.peer = peer;
    this.target = (CViewEmbeddedFrame) target;
    responder = new CPlatformResponder(peer, false);

    view = new CPlatformView();
    view.initialize(peer, responder);

    CWrapper.NSView.addSubview(this.target.getEmbedderHandle(), view.getAWTView());
    view.setAutoResizable(true);
}
 
Example #15
Source File: CPlatformEmbeddedFrame.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public PlatformWindow getTopmostPlatformWindowUnderMouse() { return null; }
 
Example #16
Source File: CPlatformEmbeddedFrame.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Override
public PlatformWindow getTopmostPlatformWindowUnderMouse() { return null; }
 
Example #17
Source File: CViewPlatformEmbeddedFrame.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public PlatformWindow getTopmostPlatformWindowUnderMouse() {
    return null;
}
 
Example #18
Source File: CPlatformEmbeddedFrame.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override // PlatformWindow
public void initialize(Window target, final LWWindowPeer peer, PlatformWindow owner) {
    this.peer = peer;
    this.windowLayer = new CGLLayer(peer);
    this.target = (CEmbeddedFrame)target;
}
 
Example #19
Source File: CPlatformEmbeddedFrame.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public PlatformWindow getTopmostPlatformWindowUnderMouse() { return null; }
 
Example #20
Source File: CPlatformLWWindow.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public PlatformWindow getTopmostPlatformWindowUnderMouse(){
    return null;
}
 
Example #21
Source File: CPlatformEmbeddedFrame.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public PlatformWindow getTopmostPlatformWindowUnderMouse() { return null; }
 
Example #22
Source File: CPlatformEmbeddedFrame.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override // PlatformWindow
public void initialize(Window target, final LWWindowPeer peer, PlatformWindow owner) {
    this.peer = peer;
    this.windowLayer = new CGLLayer(peer);
    this.target = (CEmbeddedFrame)target;
}
 
Example #23
Source File: CPlatformLWComponent.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void initialize(final PlatformWindow platformWindow) {
}
 
Example #24
Source File: CPlatformComponent.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void initialize(final PlatformWindow platformWindow) {
    this.platformWindow = platformWindow;
    setPtr(nativeCreateComponent(platformWindow.getLayerPtr()));
}
 
Example #25
Source File: CPlatformComponent.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void initialize(final PlatformWindow platformWindow) {
    this.platformWindow = platformWindow;
    setPtr(nativeCreateComponent(platformWindow.getLayerPtr()));
}
 
Example #26
Source File: CPlatformLWWindow.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Override
public PlatformWindow getTopmostPlatformWindowUnderMouse(){
    return null;
}
 
Example #27
Source File: CViewPlatformEmbeddedFrame.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public PlatformWindow getTopmostPlatformWindowUnderMouse() {
    return null;
}
 
Example #28
Source File: CPlatformLWComponent.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void initialize(final PlatformWindow platformWindow) {
}
 
Example #29
Source File: CViewPlatformEmbeddedFrame.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Override
public PlatformWindow getTopmostPlatformWindowUnderMouse() {
    return null;
}
 
Example #30
Source File: CPlatformEmbeddedFrame.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Override // PlatformWindow
public void initialize(Window target, final LWWindowPeer peer, PlatformWindow owner) {
    this.peer = peer;
    this.windowLayer = new CGLLayer(peer);
    this.target = (CEmbeddedFrame)target;
}