Package org.jdesktop.wonderland.modules.avatarbase.client.imi.WonderlandCharacterParams

Examples of org.jdesktop.wonderland.modules.avatarbase.client.imi.WonderlandCharacterParams.ConfigElement


        WorldManager wm = ClientContextJME.getWorldManager();
        WlAvatarCharacter wlc = new WlAvatarCharacter.WlAvatarCharacterBuilder(cp, wm).addEntity(false).build();

        // We need to manually apply all of the colors if they are present
        ConfigElement ce = params.getElement(ConfigType.HAIR_COLOR);
        if (ce != null) {
            float r = ((ColorConfigElement)ce).getR();
            float g = ((ColorConfigElement)ce).getG();
            float b = ((ColorConfigElement)ce).getB();
            Manipulator.setHairColor(wlc, new Color(r, g, b));
View Full Code Here


     *
     * @param type The configuration element type
     * @return The index in the list of all elements
     */
    public int getElementIndex(ConfigType type) {
        ConfigElement ce = getElement(type);
        List<ConfigElement> el = getElements(type);
        return el.indexOf(ce);
    }
View Full Code Here

        return el.get(index);
    }

    public void setElement(ConfigType type, int index) {
        List<ConfigElement> el = getElements(type);
        ConfigElement ce = el.get(index);
        elements.put(type, ce);
    }
View Full Code Here

        // Sort based upon the description of the present (rather than the name)
        // since it is the description that appears in the list.
        Comparator comparator = new Comparator() {
            public int compare(Object o1, Object o2) {
                ConfigElement c1 = (ConfigElement) o1;
                ConfigElement c2 = (ConfigElement) o2;
                return c1.getDescription().compareTo(c2.getDescription());
            }
        };

        // Attempt to load the configuration file, upon error log and return
        ConfigList config = null;
View Full Code Here

                return false;
            }
            if (getClass() != obj.getClass()) {
                return false;
            }
            final ConfigElement other = (ConfigElement) obj;
            if ((this.name == null) ? (other.name != null) : !this.name.equals(other.name)) {
                return false;
            }
            return true;
        }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.avatarbase.client.imi.WonderlandCharacterParams.ConfigElement

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.