Package org.flexdock.docking

Examples of org.flexdock.docking.RegionChecker


        SwingUtility.translate(srcAxes, p, paintingTarget);
        return p;
    }

    protected Polygon createPolyRect(DockingPort port, Component dockable, String region) {
        RegionChecker regionChecker = port.getDockingProperties().getRegionChecker();
        if(regionChecker==null)
            regionChecker = new DefaultRegionChecker();

        Rectangle r = regionChecker.getSiblingBounds(dockable, region);
        return createPolyRect(r);
    }
View Full Code Here


     */
    public String getRegion(Point location) {
        if (location == null)
            return UNKNOWN_REGION;

        RegionChecker regionChecker = getRegionChecker();
        Dockable d = getDockableAt(location);
        Component regionTest = this;

        if (d != null) {
            regionTest = d.getComponent();
            location = SwingUtilities.convertPoint(this, location, regionTest);
        }

        return regionChecker.getRegion(regionTest, location);
    }
View Full Code Here

        }

        Dockable dockable = DockingManager.getDockable(elder);
        if (dockable != null) {
            // DockingSplitPane splitter = (DockingSplitPane)splitPane;
            RegionChecker rc = port.getDockingProperties().getRegionChecker();
            float prefSize = rc.getSiblingSize(dockable.getComponent(),
                                               getCreationRegion(splitPane));
            return isElderTopLeft(splitPane) ? 1f - prefSize : prefSize;
            // return prefSize;
        }
View Full Code Here

TOP

Related Classes of org.flexdock.docking.RegionChecker

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.