Package org.jdesktop.wonderland.modules.appbase.client.swing

Examples of org.jdesktop.wonderland.modules.appbase.client.swing.WindowSwing$EventHook


            frame.showHUDButton(false);
        }

        try {
            // create a window
            WindowSwing frameWindow = app.createWindow(frameSize.width, frameSize.height, Window2D.Type.PRIMARY, false, WonderlandHUD.HUD_SCALE, name);
            frameWindow.setComponent(frameImpl);
            frame.setWindow(frameWindow);
            frame.setTitle(getTitle());

            // create a view
            frameView = hudDisplayer.createView(frameWindow);
            frameWindow.addView(frameView);

            // set view properties
            frameView.setPixelScaleOrtho(WonderlandHUD.HUD_SCALE, false);
            frameView.setSizeApp(new Dimension((int) (frameWindow.getWidth()), frameWindow.getHeight()), false);
            frameView.setLocationOrtho(new Vector2f(0.0f, (float) (WonderlandHUD.HUD_SCALE.y * getWindow().getHeight() / 2 + WonderlandHUD.HUD_SCALE.y * frameImpl.getPreferredSize().height / 2)), false);
            frameView.setOrtho(true, false);

            // register listeners for events on the frame
            frameImpl.addMouseMotionListener(frame);
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.appbase.client.swing.WindowSwing$EventHook

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.