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

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


            public void run() {
                frame.setSize(640, 480);
                frame.setLocation(100, 100);
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

                frame.getContentPane().setLayout(new ExtendedTableLayout(new double[][]{{-1}, {-1}}));
                frame.getContentPane().add(myDoggyToolWindowManager, "0,0,");

                frame.setVisible(true);
            }
        });
View Full Code Here


        viewport = new JViewport();
        viewport.setView(container);

        switch (orientation) {
            case JSplitPane.VERTICAL_SPLIT:
                setLayout(new ExtendedTableLayout(new double[][]{{TableLayout.FILL}, {0, TableLayout.FILL, 0}}));
                add(renderArrow("U", "arrowUp"), "0,0,c,c");
                add(viewport, "0,1,FULL,FULL");
                add(renderArrow("D", "arrowDown"), "0,2,c,c");

                break;
            case JSplitPane.HORIZONTAL_SPLIT:
                setLayout(new ExtendedTableLayout(new double[][]{{0, TableLayout.FILL, 0}, {TableLayout.FILL}}));
                add(renderArrow("U", "arrowLeft"), "0,0,c,c");
                add(viewport, "1,0,FULL,FULL");
                add(renderArrow("D", "arrowRight"), "2,0,c,c");

                break;
View Full Code Here

    public MultiSplitContainer(int orientation) {
        this.orientation = orientation;
        this.components = new ArrayList<Component>();

        setLayout(new ExtendedTableLayout(new double[][]{{-1}, {-1}}));
    }
View Full Code Here


    private void initFloatingComponents() {
        window = new JModalWindow(descriptor.getWindowAnchestor(), null, false);

        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

        applicationBarMouseAdapter = new ApplicationBarMouseAdapter();
        ActionListener applicationBarActionListener = new ApplicationBarActionListener();

        // Container
        container = new JPanel(new ExtendedTableLayout(new double[][]{{TableLayout.FILL}, {16, TableLayout.FILL}}, false));
        container.setBorder(new LineBorder(Color.GRAY, 1, true, 3, 3));
        container.setFocusCycleRoot(false);

    // Application Bar
        applicationBar = new JPanel(new ExtendedTableLayout(new double[][]{{3, TableLayout.FILL, 3, 15, 2, 15, 2, 15, 2, 15, 3}, {1, 14, 1}}, false)) {
            public void setUI(PanelUI ui) {
                if (ui instanceof ApplicationBarPanelUI)
                    super.setUI(ui);
            }
        };
View Full Code Here

        contentPane.setFocusable(false);
        contentPane.setFocusCycleRoot(true);

        if (anchor == ToolWindowAnchor.LEFT || anchor == ToolWindowAnchor.RIGHT) {
            horizontal = false;
            contentPane.setLayout(new ExtendedTableLayout(new double[][]{COLUMNS, {0}}));
            orientation = JSplitPane.VERTICAL_SPLIT;
        } else if (anchor == ToolWindowAnchor.TOP || anchor == ToolWindowAnchor.BOTTOM) {
            horizontal = true;
            contentPane.setLayout(new ExtendedTableLayout(new double[][]{{0}, ROWS}));
            orientation = JSplitPane.HORIZONTAL_SPLIT;
        }

        toolScrollBar = new JToolScrollBar(orientation, contentPane);
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

        return tabContainer;
    }


    protected void initComponents() {
        setLayout(new ExtendedTableLayout(new double[][]{{TableLayout.FILL, 1, 14}, {0, TableLayout.FILL, 0}}, false));
        setFocusable(false);

        tabContainer = new JPanel(containerLayout = new TableLayout(new double[][]{{0}, {14}}));
        tabContainer.setOpaque(false);
        tabContainer.setBorder(null);
View Full Code Here

    }


    private void initSlidingComponents() {
        mainPanel = new JPanel();
        sheet = new TranslucentPanel(new ExtendedTableLayout(new double[][]{{2, TableLayout.FILL, 2}, {2, TableLayout.FILL, 2}}));
        border = new SlidingBorder();

        Window anchestor = descriptor.getWindowAnchestor();
        if (anchestor instanceof RootPaneContainer) {
            glassPane = (Container) ((RootPaneContainer) anchestor).getGlassPane();
View Full Code Here

    public MultiSplitContainer(int orientation) {
        this.orientation = orientation;
        this.contents = new ArrayList<Component>();

        setLayout(new ExtendedTableLayout(new double[][]{{-1}, {-1}}));
    }
View Full Code Here

TOP

Related Classes of org.noos.xing.mydoggy.plaf.ui.layout.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.