Examples of ExtendedTableLayout


Examples of org.noos.xing.mydoggy.plaf.ui.cmp.ExtendedTableLayout

    protected JComponent createControl() {
        // At startup create the main component and set the mydoggy specific
        // layout manager.      
        Assert.isNull(rootComponent, "Should not being initialized twice.");
        rootComponent = new JPanel();
        rootComponent.setLayout(new ExtendedTableLayout(new double[][]{{0, -1, 0}, {0, -1, 0}}));
        rootComponent.add(toolWindowManager, "1,1,");

        return rootComponent;
    }
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.cmp.ExtendedTableLayout

        ViewContext viewContext = new MapViewContext();
        viewContext.put(ToolWindowManager.class, toolWindowManager);
        viewContext.put("windowAncestor", parentComponent);

        JPanel panel = new JPanel();
        panel.setLayout(new ExtendedTableLayout(new double[][]{{3, -1, 3, 200, 3}, {3, -1, 3}}));
        panel.add(new GroupsTableView(viewContext).getComponent(), "1,1,FULL,FULL");
        panel.add(new ToolsInGroupTableView(viewContext).getComponent(), "3,1,FULL,FULL");

        return panel;
    }
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.cmp.ExtendedTableLayout

        for (int i = 0, index = 1; i < rows; i++) {
            layoutRows[index] = -2;
            layoutRows[index + 1] = 3;
            index += 2;
        }
        setLayout(new ExtendedTableLayout(new double[][]{layoutCols, layoutRows}));
    }
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.cmp.ExtendedTableLayout

        protected boolean restore;

        public LensPanel() {
            setBorder(BorderFactory.createLineBorder(Color.BLUE));
            setAlphaModeRatio(0.15f);
            setLayout(new ExtendedTableLayout(new double[][]{{2, -1, 2}, {2, -1, 2}}));
            setFocusable(true);

            FloatingResizeMouseInputHandler floatingResizeMouseInputHandler = new FloatingResizeMouseInputHandler(this);
            floatingResizeMouseInputHandler.setMinimumSize(new Dimension(40,40));
            addMouseListener(floatingResizeMouseInputHandler);
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.cmp.ExtendedTableLayout

        viewContext.put(ToolBarKey.LEFT_TOOLBAR, toolWindowManager.getToolWindowBar(ToolWindowAnchor.LEFT));
        viewContext.put(ToolBarKey.RIGHT_TOOLBAR, toolWindowManager.getToolWindowBar(ToolWindowAnchor.RIGHT));
        viewContext.put(ToolBarKey.TOP_TOOLBAR, toolWindowManager.getToolWindowBar(ToolWindowAnchor.TOP));

        JPanel panel = new JPanel();
        panel.setLayout(new ExtendedTableLayout(new double[][]{{-1}, {100, 3, 150, 3, -1}}));
        panel.add(new ToolWindowManagerDescriptorView(viewContext).getComponent(), "0,0,FULL,FULL");
        panel.add(new ToolWindowBarsView(toolWindowManager).getComponent(), "0,2,FULL,FULL");
        panel.add(new PersistenceDelegateView(viewContext).getComponent(), "0,4,FULL,FULL");

        viewContext.put(ToolWindowManagerDescriptor.class, toolWindowManager.getToolWindowManagerDescriptor());
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.cmp.ExtendedTableLayout

            viewContext.put(ToolWindowManager.class, toolWindowManager);
        }


        protected Component initComponent() {
            mainPanel = new JPanel(new ExtendedTableLayout(new double[][]{{-1}, {20, 3, -1}}));
            mainPanel.setBorder(new TitledBorder("ToolWindowManager#getToolWindowBar(ToolWindowAnchor)"));

            mainPanel.add(new ToolWindowBarView(viewContext).getComponent(), "0,2,FULL,FULL");
            mainPanel.add(new ToolWindowAnchorSelectorView(viewContext).getComponent(), "0,0,FULL,FULL");
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.cmp.ExtendedTableLayout

                super(viewContext);
            }


            protected Component initComponent() {
                JPanel panel = new JPanel(new ExtendedTableLayout(new double[][]{{3, 150, 3, -1, 3}, {-1}}));

                anchors = new JComboBox(new Object[]{
                        ToolWindowAnchor.LEFT,
                        ToolWindowAnchor.RIGHT,
                        ToolWindowAnchor.TOP,
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.cmp.ExtendedTableLayout

            super(viewContext);
        }


        protected Component initComponent() {
            JPanel panel = new JPanel(new ExtendedTableLayout(new double[][]{{3, 100, 3, -1, 3}, {3, 20, 3, 20, 3, 20, 3, -1, 3}}));
            panel.setBorder(new TitledBorder("ToolWindowManager#getPersistenceDelegate()"));

            JButton save = new JButton("Save ->");
            save.addActionListener(new ViewContextAction(viewContext, "save"));
            panel.add(save, "1,1,FULL,FULL");
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.cmp.ExtendedTableLayout

        if (lastPosition != null && lastPosition.equals(newPosition))
            return lastIndex;

        int index = -1;

        ExtendedTableLayout tableLayout = (ExtendedTableLayout) container.getLayout();
        double sum = 0;
        int position;
        int[] intervals;
        int direction;

        switch (anchor) {
            case TOP:
            case BOTTOM:
                position = newPosition.x;
                intervals = tableLayout.getColsInPixel();

                if (lastPosition == null)
                    direction = 1;
                else if (newPosition.x > lastPosition.x)
                    direction = 1;
                else
                    direction = -1;
                break;
            case LEFT:
            case RIGHT:
                position = newPosition.y;
                intervals = tableLayout.getRowsInPixel();

                if (lastPosition == null)
                    direction = 1;
                else if (newPosition.y > lastPosition.y)
                    direction = 1;
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.cmp.ExtendedTableLayout

    public NullTypeDescriptorView(ViewContext viewContext) {
        super(viewContext);
    }

    protected Component initComponent() {
        return new JPanel(new ExtendedTableLayout(new double[][]{{-1},{-1}}));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.