Package toxi.color.theory

Examples of toxi.color.theory.ColorTheoryStrategy


     * @param c
     * @return new color list or null, if the supplied strategy name is not
     *         mapped to a registered implementation.
     */
    public static final ColorList createUsingStrategy(String name, TColor c) {
        ColorTheoryStrategy strategy = ColorTheoryRegistry
                .getStrategyForName(name);
        ColorList list = null;
        if (strategy != null) {
            list = strategy.createListFromColor(c);
        }
        return list;
    }
View Full Code Here


    }

    public void testStrategyName() {
        ArrayList<String> names = ColorTheoryRegistry.getRegisteredNames();
        for (String name : names) {
            ColorTheoryStrategy strategy = ColorTheoryRegistry
                    .getStrategyForName(name);
            System.out.println(name);
            assertNotNull(strategy);
        }
    }
View Full Code Here

TOP

Related Classes of toxi.color.theory.ColorTheoryStrategy

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.