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

Examples of org.jdesktop.wonderland.modules.appbase.client.cell.view.viewdefault.View2DCell


        return vFactory;
    }

    /** {@inheritDoc} */
    public synchronized View2D createView(Window2D window) {
        View2DCell view =
                (View2DCell) getViewFactory().createView(this, window);

        // This type of cell allows the app to fully control the visibility
        view.setVisibleUser(true);

        if (view != null) {
            views.add(view);
            window.addView(view);
        }
View Full Code Here


    /** Returns the user transform of this window in it's cell views. */
    public CellTransform getUserTransformCell() {
        // Note: only need to get the transform from the first cell because
        // syncUserTransformCell makes sure that the transform is the same in
        // all cell views.
        View2DCell cellView = null;
        synchronized (this) {
            try {
                cellView = cellViews.getFirst();
            } catch (NoSuchElementException ex) {
            }
        }
        if (cellView == null) {
            // Return identity. (This happens in the SAS).
            return new CellTransform(null, null);
        }

        return cellView.getUserTransformCell();
    }
View Full Code Here

TOP

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

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.