Package org.jdesktop.wonderland.client.hud

Examples of org.jdesktop.wonderland.client.hud.HUD.createComponent()


                chart.setSampleSize(200);
                chart.setMaxValue(desiredFrameRate);
                chart.setPreferredSize(new Dimension(200, 34));

                // create HUD control panel
                fpsComponent = mainHUD.createComponent(chart);
                fpsComponent.setDecoratable(false);
                fpsComponent.setPreferredLocation(Layout.SOUTHEAST);

                // add HUD control panel to HUD
                mainHUD.addComponent(fpsComponent);
View Full Code Here


        // create affordances Swing control
        affordanceHUDPanel = new AffordanceHUDPanel();

        // create HUD control
        affordanceHUD = mainHUD.createComponent(affordanceHUDPanel);
        affordanceHUDPanel.setHUDComponent(affordanceHUD);
        affordanceHUD.setName(BUNDLE.getString("Edit_Object_None_Selected"));
        affordanceHUD.setPreferredLocation(Layout.SOUTH);
        affordanceHUD.addEventListener(new HUDEventListener() {
            public void HUDObjectChanged(HUDEvent event) {
View Full Code Here

        sizeSlider.setLabelTable(labels);

        // Create the Details frame for later use.
        HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD("main");
        positionHUDPanel = new PositionHUDPanel();
        positionHUD = mainHUD.createComponent(positionHUDPanel);
        positionHUD.setName("Details");
        positionHUD.setPreferredLocation(Layout.SOUTHEAST);

        // add affordances HUD panel to main HUD
        mainHUD.addComponent(positionHUD);
View Full Code Here

                        new AssetMeterJPanel(AssetMeterClientPlugin.this);

                // Now create the HUD component
                HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD("main");
                assetMeterHUDComponent =
                        mainHUD.createComponent(assetMeterJPanel);
                assetMeterHUDComponent.setPreferredTransparency(0.0f);
                assetMeterHUDComponent.setPreferredLocation(Layout.SOUTHEAST);
                assetMeterHUDComponent.setName(
                        BUNDLE.getString("Downloading"));
                mainHUD.addComponent(assetMeterHUDComponent);
View Full Code Here

        // create affordances Swing control
        hudCellPalette = new HUDCellPalette();

        // create HUD control
        paletteHUD = mainHUD.createComponent(hudCellPalette);
        paletteHUD.setName(BUNDLE.getString("Shortcuts"));
        paletteHUD.setPreferredLocation(Layout.NORTHEAST);

        // add affordances HUD panel to main HUD
        mainHUD.addComponent(paletteHUD);
View Full Code Here

     */
    private HUDComponent createTextChatHUD() {

        // Create a new HUD Panel. It still isn't visible.
        HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD("main");
        HUDComponent hudComponent = mainHUD.createComponent(chatContainerPane);
        hudComponent.setIcon(new ImageIcon(getClass().getResource(
                "/org/jdesktop/wonderland/modules/textchat/client/resources/" +
                "UserListChatText32x32.png")));
        hudComponent.setPreferredLocation(Layout.SOUTHWEST);
        mainHUD.addComponent(hudComponent);
View Full Code Here

                myPresenceInfo, myPresenceInfo, group, Mode.ADD);

  addHUDPanel.setPrivacy(addUserPanel.getPrivacy());

        HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD("main");
        addModeAddHUDComponent = mainHUD.createComponent(addHUDPanel);
        addHUDPanel.setHUDComponent(addModeAddHUDComponent);

        addModeAddHUDComponent.setName("Add to Voice Chat");

        addHUDPanel.setPreferredLocation(Layout.EAST);
View Full Code Here

        logger.info("Sent join accepted message");

        AddHUDPanel addHUDPanel = new AddHUDPanel(client, session, myPresenceInfo, caller, group, Mode.IN_PROGRESS);

        HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD("main");
        addComponent = mainHUD.createComponent(addHUDPanel);
        addComponent.setIcon(new ImageIcon(getClass().getResource("/org/jdesktop/wonderland/modules/audiomanager/client/resources/UserListChatVoice32x32.png")));
  addComponent.setName("Voice Chat");

        addHUDPanel.setHUDComponent(addComponent);
View Full Code Here

        AddHUDPanel addPanel = new AddHUDPanel(
                this, session, presenceInfo, presenceInfo, Mode.INITIATE);

        HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD("main");

        final HUDComponent addComponent = mainHUD.createComponent(addPanel);
        addPanel.setHUDComponent(addComponent);
        addComponent.setPreferredLocation(Layout.CENTER);
        addComponent.setName(BUNDLE.getString("Voice_Chat"));
        addComponent.setIcon(voiceChatIcon);
        mainHUD.addComponent(addComponent);
View Full Code Here

        if (vuMeterMiniComponent == null) {
            final VuMeterMiniPanel vuMeterPanel = new VuMeterMiniPanel(this);

            HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD("main");

            vuMeterMiniComponent = mainHUD.createComponent(vuMeterPanel);
            vuMeterMiniComponent.setPreferredLocation(Layout.SOUTHEAST);
            vuMeterMiniComponent.setName(BUNDLE.getString("Microphone_Level"));
            vuMeterMiniComponent.setIcon(voiceChatIcon);
            vuMeterMiniComponent.setDecoratable(false);
            vuMeterMiniComponent.addEventListener(audioMeterListener);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.