Package org.jdesktop.wonderland.modules.avatarbase.client.jme.cellrenderer

Examples of org.jdesktop.wonderland.modules.avatarbase.client.jme.cellrenderer.AvatarNameEvent


     * Post an avatar name event, which will update the view of this avatar.
     * @param info the PresenceInfo that changed
     * @param type the type of change
     */
    private void fireAvatarNameEvent(PresenceInfo info, EventType type) {
        InputManager.inputManager().postEvent(new AvatarNameEvent(
                type, info.getUserID().getUsername(), info.getUsernameAlias()));
    }
View Full Code Here


    private void changeUsernameAlias(ChangeUsernameAliasMessage msg) {
        PresenceInfo info = msg.getPresenceInfo();

        pm.changeUsernameAlias(info, info.getUsernameAlias());

        AvatarNameEvent avatarNameEvent = new AvatarNameEvent(
                EventType.CHANGE_NAME, info.getUserID().getUsername(),
                info.getUsernameAlias());

        InputManager.inputManager().postEvent(avatarNameEvent);
    }
View Full Code Here

            return;
        }

        pm.setEnteredConeOfSilence(info, msg.entered());

        AvatarNameEvent avatarNameEvent;

        if (msg.entered()) {
            COSName = msg.getCOSName();

            avatarNameEvent = new AvatarNameEvent(
                    EventType.ENTERED_CONE_OF_SILENCE,
                    info.getUserID().getUsername(), info.getUsernameAlias());
        } else {
            COSName = null;

            avatarNameEvent = new AvatarNameEvent(
                    EventType.EXITED_CONE_OF_SILENCE,
                    info.getUserID().getUsername(), info.getUsernameAlias());
        }

        InputManager.inputManager().postEvent(avatarNameEvent);
View Full Code Here

            return;
        }

        pm.setMute(info, msg.isMuted());

        AvatarNameEvent avatarNameEvent;

        if (msg.isMuted()) {
            avatarNameEvent = new AvatarNameEvent(EventType.MUTE,
                    info.getUserID().getUsername(), info.getUsernameAlias());
        } else {
            avatarNameEvent = new AvatarNameEvent(EventType.UNMUTE,
                    info.getUserID().getUsername(), info.getUsernameAlias());
        }

        InputManager.inputManager().postEvent(avatarNameEvent);
    }
View Full Code Here

        logger.fine("Speaking " + msg.isSpeaking() + " " + info);

        pm.setSpeaking(info, msg.isSpeaking());

        AvatarNameEvent avatarNameEvent;

        if (msg.isSpeaking()) {
            avatarNameEvent = new AvatarNameEvent(EventType.STARTED_SPEAKING,
                    info.getUserID().getUsername(), info.getUsernameAlias());
        } else {
            avatarNameEvent = new AvatarNameEvent(EventType.STOPPED_SPEAKING,
                    info.getUserID().getUsername(), info.getUsernameAlias());
        }

        InputManager.inputManager().postEvent(avatarNameEvent);
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.avatarbase.client.jme.cellrenderer.AvatarNameEvent

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.