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

Examples of org.jdesktop.wonderland.modules.xremwin.common.cell.AppCellXrwServerState


    /**
     * @inheritDoc()
     */
    public <T extends CellServerState> T getDefaultCellServerState(Properties props) {

        AppCellXrwServerState serverState = new AppCellXrwServerState();
        serverState.setAppName(appName);

        // don't set a command -- the server will derive the command from
        // the app name
        serverState.setCommand(null);
       
        serverState.setLaunchLocation("server");

        if (doAppInitialPlacement) {
            // Disable system initial placement for app cells. Because cell bounds are
            // fixed at cell creation time we need to give app cells a huge bounds
            // (see the comment in App2DCellMO()). We won't know the right location to
            // place an app cell until it's first window is made visible. Therefore,
            // we disable system placement and will perform the initial placement ourselves
            // later.
            logger.info("doAppInitialPlacement: disable system placement");
            BoundingVolumeHint hint = new BoundingVolumeHint(false, null);
            serverState.setBoundingVolumeHint(hint);
        }

        return (T) serverState;
    }
View Full Code Here


     * {@inheritDoc}
     */
    @Override
    public CellServerState getServerState(CellServerState state) {
        if (state == null) {
            state = new AppCellXrwServerState();
        }
        return super.getServerState(state);
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.xremwin.common.cell.AppCellXrwServerState

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.