Package org.jdesktop.wonderland.modules.appbase.client.cell.view

Examples of org.jdesktop.wonderland.modules.appbase.client.cell.view.View2DCellFactory


        return pixelScale;
    }

    /** Returns the view cell factory */
    private View2DCellFactory getViewFactory() {
        View2DCellFactory vFactory = view2DCellFactory;
        if (vFactory == null) {
            vFactory = App2D.getView2DCellFactory();
        }

        if (vFactory == null) {
View Full Code Here


        // TODO: later on we might allow the default view factory to be overridden by the user,
        // via a config file or property.

        ClassLoader classLoader = getClass().getClassLoader();
        View2DCellFactory view2DCellFactory = null;
        try {
            Class clazz = Class.forName(VIEW2DCELL_FACTORY_CLASS_DEFAULT, true, classLoader);
            Constructor constructor = clazz.getConstructor();
            view2DCellFactory = (View2DCellFactory) constructor.newInstance();
        } catch(Exception e) {
            logger.severe("Error instantiating app base 2D cell view factory " +
                          VIEW2DCELL_FACTORY_CLASS_DEFAULT + ", Exception = " + e);
        }
        view2DCellFactory.initialize();

        if (view2DCellFactory == null) {
            logger.severe("Error instantiating app base 2D view cell factory " +
                          VIEW2DCELL_FACTORY_CLASS_DEFAULT);
        } else {
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.appbase.client.cell.view.View2DCellFactory

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.