Package gov.nasa.arc.mct.canvas.layout

Examples of gov.nasa.arc.mct.canvas.layout.CanvasLayoutManager


       
        this.renderedPanels = new HashMap<Integer, Panel>();
        this.selectedPanels = new LinkedHashSet<Panel>();           
        canvasPanel = new CanvasPanel();
        canvasPanel.getAccessibleContext().setAccessibleName("Canvas");
        canvasPanel.setLayout(new CanvasLayoutManager(CanvasLayoutManager.MIX));
       
        /*
         * Check to ensure that there are no other canvas manifestations being manifested above this
         * element, to avoid infinite recursion (tunnel of mirrors)
         */
 
View Full Code Here


        public boolean isOptimizedDrawingEnabled() {
            return false;
        }
       
        public int getGridSize() {
            CanvasLayoutManager layoutManager = (CanvasLayoutManager)getLayout();
            return layoutManager.getGridSize();
        }
View Full Code Here

            }
        }
       
        public void paintGrid(int gridSize) {
            if (gridSize != getGridSize()) {
                CanvasLayoutManager layoutManager = (CanvasLayoutManager)getLayout();
                layoutManager.setGridSize(gridSize);
                if (gridSize == ControlAreaFormattingConstants.NO_GRID_SIZE) {
                    grid = null;
                } else {
                    int w = ControlAreaFormattingConstants.MAJOR_GRID_LINE;
                    int h = ControlAreaFormattingConstants.MAJOR_GRID_LINE;
View Full Code Here

                repaint();
            }
        }
       
        public void enableSnap(boolean snapToGrid) {
            CanvasLayoutManager layoutManager = (CanvasLayoutManager)getLayout();
            layoutManager.enableSnap(snapToGrid);
        }
View Full Code Here

            CanvasLayoutManager layoutManager = (CanvasLayoutManager)getLayout();
            layoutManager.enableSnap(snapToGrid);
        }
       
        public boolean isSnapEnable() {
            CanvasLayoutManager layoutManager = (CanvasLayoutManager)getLayout();
            return layoutManager.isSnapEnable();
        }
View Full Code Here

            CanvasLayoutManager layoutManager = (CanvasLayoutManager)getLayout();
            return layoutManager.isSnapEnable();
        }
       
        public void retile() {
            CanvasLayoutManager layoutManager = (CanvasLayoutManager)getLayout();
            layoutManager.switchLayout(CanvasLayoutManager.TILE);
            doLayout();
            layoutManager.switchLayout(CanvasLayoutManager.MIX);
        }
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.canvas.layout.CanvasLayoutManager

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.