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

Examples of org.jdesktop.wonderland.modules.appbase.common.cell.App2DCellServerState


     * {@inheritDoc}
     */
    @Override
    public void setServerState(CellServerState state) {
        super.setServerState(state);
        App2DCellServerState serverState = (App2DCellServerState) state;
        pixelScale = new Vector2f(serverState.getPixelScaleX(), serverState.getPixelScaleY());

        ViewComponentServerState vcss =
                (ViewComponentServerState) serverState.getComponentServerState(ViewComponentServerState.class);
        logger.info("vcss = " + vcss);
        if (vcss != null) {
      creatorViewTransform = vcss.getCellTransform();
        }
  logger.info("Cell creator view transform = " + creatorViewTransform);
View Full Code Here


    public CellServerState getServerState(CellServerState stateToFill) {
        if (stateToFill == null) {
            return null;
        }

        App2DCellServerState state = (App2DCellServerState) stateToFill;
        state.setPixelScaleX(pixelScale.getX());
        state.setPixelScaleY(pixelScale.getY());

        return super.getServerState(stateToFill);
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.appbase.common.cell.App2DCellServerState

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.