Package org.jdesktop.wonderland.modules.avatarbase.common.cell

Examples of org.jdesktop.wonderland.modules.avatarbase.common.cell.AvatarConfigInfo


            // 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);
View Full Code Here


        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

            // we set the URL in the AvatarConfigInfo to null, that should do
            // the trick. (Note that since we manually obtained the
            // AvatarLoaderFactorySPI, we don't need to update the factory
            // class name in the AvatarConfigInfo object, but we do anyway).
            String defaultClassName = factory.getClass().getName();
            AvatarConfigInfo defaultInfo =
                    new AvatarConfigInfo(null, defaultClassName);

            // Go ahead and load the default avatar
            ret = factory.getAvatarLoader().getAvatarCharacter(cell, username,
                    defaultInfo);
        }
View Full Code Here

        // Ask the configuration manager to the conversion to the server URL
        ImiAvatarConfigManager m = ImiAvatarConfigManager.getImiAvatarConfigManager();
        try {
            String url = m.getAvatarURL(session, this).toExternalForm();
            String className = ImiAvatarLoaderFactory.class.getName();
            return new AvatarConfigInfo(url, className);
        } catch (InterruptedException excp) {
            logger.log(Level.WARNING, "Fetch of avatar URL was interrupted", excp);
            return null;
        }
    }
View Full Code Here

        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

    /**
     * {@inheritDoc}
     */
    public AvatarConfigInfo getAvatarConfigInfo(ServerSessionManager session) {
        return new AvatarConfigInfo(avatarURL, BasicAvatarLoaderFactory.class.getName());
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.avatarbase.common.cell.AvatarConfigInfo

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.