Package org.noos.xing.mydoggy.plaf.ui.cmp

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


    }


    protected void initComponents() {
        mainPanel = new JPanel();
        sheet = new TranslucentPanel(new ExtendedTableLayout(new double[][]{{2, TableLayout.FILL, 2}, {2, TableLayout.FILL, 2}}));
        border = new SlidingBorder();
        slidingAnimation = new SlidingAnimation();

        layeredPane = descriptor.getManager().getLayeredPane();
    }
View Full Code Here


    public MenuToolWindowTitleButtonPanelUI() {
    }


    protected void installComponents() {
        toolWindowTitleButtonPanel.setLayout(containerLayout = new ExtendedTableLayout(new double[][]{{0, 0}, {1, 14, 1}}, false));
        toolWindowTitleButtonPanel.setOpaque(false);

        descriptor.getToolWindow().addToolWindowAction(new PopupAction());

        // Add the default set of actions
View Full Code Here

        viewport.setView(container);
        viewport.addMouseWheelListener(new WheelScroller());

        switch (orientation) {
            case JSplitPane.VERTICAL_SPLIT:
                toolWindowScrollBar.setLayout(toolWindowScrollBarLayout = new ExtendedTableLayout(new double[][]{{TableLayout.FILL}, {0, 1, TableLayout.FILL, 10}}));
                toolWindowScrollBar.add(renderArrow(Direction.LEFT, MyDoggyKeySpace.TOOL_SCROLL_BAR_UP), "0,0,c,c");
                toolWindowScrollBar.add(viewport, "0,2,FULL,FULL");
                toolWindowScrollBar.add(renderArrow(Direction.RIGHT, MyDoggyKeySpace.TOOL_SCROLL_BAR_DOWN), "0,4,c,c");

                break;
            case JSplitPane.HORIZONTAL_SPLIT:
                toolWindowScrollBar.setLayout(toolWindowScrollBarLayout = new ExtendedTableLayout(new double[][]{{0, 1, TableLayout.FILL, 1, 0}, {TableLayout.FILL}}));
                toolWindowScrollBar.add(renderArrow(Direction.LEFT, MyDoggyKeySpace.TOOL_SCROLL_BAR_LEFT), "0,0,c,c");
                toolWindowScrollBar.add(viewport, "2,0,FULL,FULL");
                toolWindowScrollBar.add(renderArrow(Direction.RIGHT, MyDoggyKeySpace.TOOL_SCROLL_BAR_RIGHT), "4,0,c,c");

                break;
View Full Code Here

        removeNotifyDragListener.cleanup();
        descriptor.getManager().removeRemoveNotifyListener(removeNotifyDragListener);
    }

    protected void installComponents() {
        toolWindowTitleBarLayout = new ExtendedTableLayout(new double[][]{{3, TableLayout.FILL, 2, -2, 3},
                                                                          {0, SwingUtil.getInt("ToolWindowTitleBarUI.length", 16), 0}}, false);

        toolWindowTitleBar.setLayout(toolWindowTitleBarLayout);
        toolWindowTitleBar.add(toolWindowTitleBar.getToolWindowTabPanel(), "1,1");
        toolWindowTitleBar.add(toolWindowTitleBar.getToolWindowTitleButtonPanel(), "3,1,right,c");
View Full Code Here

                        GlassPanel glassPane = descriptor.getManager().getGlassPanel();

                        if (previewPanel != null)
                            glassPane.remove(previewPanel);

                        previewPanel = new TranslucentPanel(new ExtendedTableLayout(new double[][]{{2, TableLayout.FILL, 2}, {2, TableLayout.FILL, 2}}));
                        previewPanel.setAlphaModeRatio(dockedTypeDescriptor.getPreviewTransparentRatio());
                        previewPanel.setSize(width + 4, height + 4);

                        Container mainContainer = descriptor.getManager();
                        switch (descriptor.getToolWindow().getAnchor()) {
View Full Code Here

        uninstallListeners();
    }

    protected void installComponents() {
        toolWindowTabPanel.setLayout(new ExtendedTableLayout(new double[][]{{TableLayout.FILL, 1, 14},
                                                                            {0, TableLayout.FILL, 0}},
                                                             false));
        toolWindowTabPanel.setFocusable(false);
        toolWindowTabPanel.setBorder(null);
        toolWindowTabPanel.setOpaque(false);
View Full Code Here

        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

        SwingUtil.repaint(componentContainer);
    }


    protected void installComponents() {
        toolWindowPanel.setLayout(toolWindowPanelLayout = new ExtendedTableLayout(new double[][]{{TableLayout.FILL},
                                                                                                 {SwingUtil.getInt("ToolWindowTitleBarUI.length", 16), TableLayout.FILL}},
                                                                                  false));
        toolWindowPanel.setBorder(new LineBorder(Color.GRAY, 1, true, 3, 3));

        JPanel componentContainer = toolWindowPanel.getComponentContainer();
        componentContainer.setLayout(new ExtendedTableLayout(new double[][]{{-1}, {-1}}));
        componentContainer.removeAll();
        componentContainer.add(toolWindowPanel.getToolWindowDescriptor().getComponent(), "0,0,FULL,FULL");
        componentContainer.setBorder(null);

        toolWindowPanel.removeAll();
View Full Code Here

        installListeners();
    }

    protected void installComponents() {
        // Define the layout
        toolWindowTitleButtonPanel.setLayout(containerLayout = new ExtendedTableLayout(new double[][]{{0, 0}, {1, 14, 1}}, false));
        toolWindowTitleButtonPanel.setOpaque(false);

        // Add the default set of actions
        focusable = null;
View Full Code Here

                dockedContainer.getResourceManager().getBoolean("dialog.owner.enabled", true) ? descriptor.getWindowAnchestor() : null,
                null,
                false);
        window.setName("toolWindow.floating.window." + toolWindow.getId());

        JPanel contentPane = new JPanel(new ExtendedTableLayout(new double[][]{{1, TableLayout.FILL, 1}, {1, TableLayout.FILL, 1}}));
        contentPane.setBorder(BorderFactory.createLineBorder(Color.GRAY));
        window.setContentPane(contentPane);
    }
View Full Code Here

TOP

Related Classes of org.noos.xing.mydoggy.plaf.ui.cmp.ExtendedTableLayout

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.