Package com.threerings.media.image

Examples of com.threerings.media.image.ColorPository


    protected Object[] computeZations (String[] zations, int index)
    {
        if (zations.length <= index || StringUtil.isBlank(zations[index])) {
            return null;
        }
        ColorPository cpos = _ctx.getColorPository();
        ColorRecord[] crecs = cpos.enumerateColors(zations[index]);
        if (crecs == null) {
            return null;
        }
        Object[] czations = new Object[crecs.length + 1];
        czations[0] = new ZationChoice(0, "<none>");
View Full Code Here


            model.removeAllElements();
            if (cclass == null) {
                return;
            }

            ColorPository cpos = _ctx.getColorPository();

            String noChoice = "<none>";
            String choice = noChoice;

            ColorPository.ClassRecord classRec = cpos.getClassRecord(cclass);
            int pick = _scene.getDefaultColor(classRec.classId);

            ColorPository.ColorRecord[] colors = cpos.enumerateColors(cclass);
            ComparableArrayList<String> list = new ComparableArrayList<String>();
            for (ColorRecord color : colors) {
                list.insertSorted(color.name);
                if (color.colorId == pick) {
                    choice = color.name;
View Full Code Here

        String cclass = (String) _colorClasses.getSelectedItem();
        if (cclass == null) {
            return;
        }

        ColorPository cpos = _ctx.getColorPository();
        ColorPository.ClassRecord classRec = cpos.getClassRecord(cclass);
        ColorPository.ColorRecord[] colors = cpos.enumerateColors(cclass);
        Object selected = _colorIds.getSelectedItem();
        int pick = -1;

        for (ColorRecord color : colors) {
            if (color.name.equals(selected)) {
View Full Code Here

TOP

Related Classes of com.threerings.media.image.ColorPository

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.