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

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


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

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


            }
        });

        // Init gui
        contentPane = new JPanel();
        contentPaneLayout = new ExtendedTableLayout(new double[][]{{0, TableLayout.FILL, 0}, {0, TableLayout.FILL, 0}});
        setLayout(contentPaneLayout);

        // Register bars, one for every anchor
        addBar(LEFT, JSplitPane.HORIZONTAL_SPLIT, "0,1", "0,0,c,c");
        mainSplitPane = addBar(RIGHT, JSplitPane.HORIZONTAL_SPLIT, "2,1", "2,0,c,c");
        mainSplitPane.addPropertyChangeListener("UI", new UpdateUIChangeListener());

        mainContainer = new JPanel();
        mainContainer.setBackground(Color.GRAY);
        mainContainer.setLayout(new ExtendedTableLayout(new double[][] {{-1},{-1}}));
        mainContainer.setFocusCycleRoot(true);


        mainSplitPane.setLeftComponent(mainContainer);
View Full Code Here

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

    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);

    resizeMouseInputHandler = new FloatingResizeMouseInputHandler(window);
    moveMouseInputHandler = new FloatingMoveMouseInputHandler(window, applicationBarTitle);
View Full Code Here

    private int showPosition(DropTargetDragEvent dtde) {
        Point dtdeLocation = dtde.getLocation();
        int index = -1;

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

        switch (anchor) {
            case TOP:
            case BOTTOM:
                position = dtdeLocation.x;
                intervals = tableLayout.getColsInPixel();
                break;
            case LEFT:
            case RIGHT:
                position = dtdeLocation.y;
                intervals = tableLayout.getRowsInPixel();
                break;
            default:
                throw new IllegalStateException("Invalid anchor");
        }
View Full Code Here

    private int showPosition(DropTargetDragEvent dtde) {
        Point dtdeLocation = dtde.getLocation();
        int index = -1;

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

        switch (anchor) {
            case TOP:
            case BOTTOM:
                position = dtdeLocation.x;
                intervals = tableLayout.getColsInPixel();
                break;
            case LEFT:
            case RIGHT:
                position = dtdeLocation.y;
                intervals = tableLayout.getRowsInPixel();
                break;
            default:
                throw new IllegalStateException("Invalid anchor");
        }
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

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.