Examples of AvatarConfigComponent


Examples of org.jdesktop.wonderland.modules.avatarbase.client.cell.AvatarConfigComponent

        super(cell);
        assert (cell != null);
        final Cell c = cell;

        // Listen for avatar configuration changes.
        AvatarConfigComponent comp = cell.getComponent(AvatarConfigComponent.class);
        comp.addAvatarConfigChangeListener(new AvatarChangeListener());

        // XXX NPC HACK XXX
        if (cell instanceof AvatarCell)
            username = ((AvatarCell) cell).getIdentity().getUsername();
        else
View Full Code Here

Examples of org.jdesktop.wonderland.modules.avatarbase.client.cell.AvatarConfigComponent

            }

            // If we have not creating the avatar yet, then look for the config
            // component on the cell. Fetch the avatar configuration.
            if (avatarCharacter == null) {
                AvatarConfigComponent configComp = cell.getComponent(AvatarConfigComponent.class);
                AvatarConfigInfo avatarConfigInfo = null;
                if (configComp != null) {
                    avatarConfigInfo = configComp.getAvatarConfigInfo();
                }
                logger.info("LOADING AVATAR FOR " + avatarConfigInfo);
                pendingAvatar = loadAvatar(avatarConfigInfo);
            }
            else {
View Full Code Here

Examples of org.jdesktop.wonderland.modules.avatarbase.client.cell.AvatarConfigComponent

    private void handleAvatarRendererChangeRequest(AvatarRendererChangeRequestEvent event) {
        switch (event.getQuality()) {
            case High :
                // Fetch the avatar configuration information and change to the
                // current avatar
                AvatarConfigComponent comp = cell.getComponent(AvatarConfigComponent.class);
                AvatarConfigInfo avatarConfigInfo = comp.getAvatarConfigInfo();
                changeAvatar(loadAvatar(avatarConfigInfo));
                break;
            case Medium :
                changeAvatar(loadAvatar(null));
                break;
View Full Code Here

Examples of org.jdesktop.wonderland.modules.avatarbase.client.cell.AvatarConfigComponent

        // the call to refresh() only happens once.
        isAvatarSet = false;
        newViewCell.addComponentChangeListener(new ComponentChangeListener() {
            public void componentChanged(Cell cell, ChangeType type,
                    CellComponent component) {
                AvatarConfigComponent c =
                        cell.getComponent(AvatarConfigComponent.class);
                if (type == ChangeType.ADDED && c != null) {
                    handleSetAvatar((ViewCell)cell);
                }
            }
View Full Code Here

Examples of org.jdesktop.wonderland.modules.avatarbase.client.cell.AvatarConfigComponent

     */
    public synchronized void refreshAvatarInUse(ViewCell viewCell, boolean isLocal) {

        // Once the avatar loader is ready and the primary view has been set,
        // we tell the avatar cell component to set it's avatar in use.
        AvatarConfigComponent configComponent = viewCell.getComponent(AvatarConfigComponent.class);
        AvatarRegistry registry = AvatarRegistry.getAvatarRegistry();
        AvatarSPI avatar = registry.getAvatarInUse();
        if (avatar != null) {
            ServerSessionManager session = viewCell.getCellCache().getSession().getSessionManager();
            AvatarConfigInfo configInfo = avatar.getAvatarConfigInfo(session);
            configComponent.requestAvatarConfigInfo(configInfo, isLocal);
        }
    }
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.